Difference between revisions of "Template Variables in Workflows"

From LongJump Support Wiki
imported>Aeric
imported>Aeric
Line 9: Line 9:
:*<tt>$workflow.title</tt>
:*<tt>$workflow.title</tt>


:*<tt>$workflow.current_state</tt> Name of current state
:*<tt>$workflow.current_state</tt> - Name of current state
:*<tt>$workflow.previous_state</tt> Name of previous state  
:*<tt>$workflow.previous_state</tt> - Name of previous state  
:*<tt>$workflow.action_taken</tt> Name of Action Taken
:*<tt>$workflow.action_taken</tt> - Name of Action Taken
:*<tt>$workflow.available_actions_for_current_state</tt> Names of available actions in current state
:*<tt>$workflow.available_actions_for_current_state</tt> - Names of available actions in current state


:*<tt>$workflow.current_state_title</tt> Title (label) of current state
:*<tt>$workflow.current_state_title</tt> - Title (label) of current state
:*<tt>$workflow.previous_state_title</tt> Title (label) of previous state  
:*<tt>$workflow.previous_state_title</tt> - Title (label) of previous state  
:*<tt>$workflow.action_taken</tt> Title (label) of action taken
:*<tt>$workflow.action_taken</tt> - Title (label) of action taken
:*<tt>$workflow.available_action_titles_for_current_state</tt> Titles (labels) of available actions in current state
:*<tt>$workflow.available_action_titles_for_current_state</tt> - Titles (labels) of available actions in current state


:*<tt>$workflow.user_comments</tt>
:*<tt>$workflow.user_comments</tt>
:*<tt>$workflow.owner</tt> Current record owner(s)
:*<tt>$workflow.owner</tt> - Current record owner(s)
:*<tt>$workflow.history</tt> History of workflow (a table)
:*<tt>$workflow.history</tt> - History of workflow (a table)
:*<tt>$workflow.view_details_link</tt> Link to view record details
:*<tt>$workflow.view_details_link</tt> - Link to view record details

Revision as of 23:00, 30 May 2013

Template variables can be used in both subject and body of a template. All the template variables related to the record are shown.

The Template Variables section provides a lookup to variables that will personalize the message.

In addition to the typical field-based template variables, these workflow-based variables are also available:

  • $workflow.id
  • $workflow.name
  • $workflow.title
  • $workflow.current_state - Name of current state
  • $workflow.previous_state - Name of previous state
  • $workflow.action_taken - Name of Action Taken
  • $workflow.available_actions_for_current_state - Names of available actions in current state
  • $workflow.current_state_title - Title (label) of current state
  • $workflow.previous_state_title - Title (label) of previous state
  • $workflow.action_taken - Title (label) of action taken
  • $workflow.available_action_titles_for_current_state - Titles (labels) of available actions in current state
  • $workflow.user_comments
  • $workflow.owner - Current record owner(s)
  • $workflow.history - History of workflow (a table)
  • $workflow.view_details_link - Link to view record details