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):
%3 workflow::case::action::notify workflow::case::action::notify (public) workflow::case::get_activity_text workflow::case::get_activity_text workflow::case::action::notify->workflow::case::get_activity_text ad_decode ad_decode (public) workflow::case::get_activity_text->ad_decode ad_html_text_convert ad_html_text_convert (public) workflow::case::get_activity_text->ad_html_text_convert workflow::case::get_activity_log_info workflow::case::get_activity_log_info (private) workflow::case::get_activity_text->workflow::case::get_activity_log_info

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

[ hide source ] | [ make this the default ]
Show another procedure: