workflow::case::get_activity_text (private)
workflow::case::get_activity_text -case_id case_id
Defined in packages/workflow/tcl/case-procs.tcl
Get the activity log for a case as a text chunk
- Switches:
- -case_id (required)
- Author:
- Lars Pind
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set log_text {} foreach entry_arraylist [get_activity_log_info -case_id $case_id] { foreach { var value } $entry_arraylist { set $var $value } set entry_text "$creation_date_pretty $action_pretty_past_tense [ad_decode $log_title "" "" "$log_title "]by $user_first_names $user_last_name ($user_email)" if { $comment ne "" } { append entry_text ":\n\n [join [split [ad_html_text_convert -from $comment_mime_type -to "text/plain" -maxlen 66 -- $comment] "\n"] "\n "]" } lappend log_text $entry_text } return [join $log_text "\n\n"]Generic XQL file: packages/workflow/tcl/case-procs.xql
PostgreSQL XQL file: packages/workflow/tcl/case-procs-postgresql.xql
Oracle XQL file: packages/workflow/tcl/case-procs-oracle.xql