Searching Knowledge Base for v2


Knowledge Base for v3


Forums


Marketplace


Translations


Hash Variables

Skip to end of metadata
Go to start of metadata

Hash Variable is a special hash-escaped keyword that can be used in the following areas to return value of some useful runtime variables from Workflow Engine.

  1. Form Builder (beginning from v2-Beta 1)
  2. Supported plugin configuration properties
  3. Activity name in Workflow Designer
  4. External Form URL, when mapping an activity to an external form


Figure 1: Using Hash Variables in Form Builder


Figure 2: Using Hash Variables in Workflow Designer

Assignment

To get workflow activity information of the current assignment.

  • #assignment.processId#
  • #assignment.processDefId#
  • #assignment.processName#
  • #assignment.processName#
  • #assignment.processVersion#
  • #assignment.processRequesterId#
  • #assignment.description#
  • #assignment.activityId#
  • #assignment.activityName#
  • #assignment.activityDefId#
  • #assignment.assigneeId#

Performer

To get user information of the performer of an activity.

  • #performer.activityDefId.id#
  • #performer.activityDefId.username#
  • #performer.activityDefId.firstName#
  • #performer.activityDefId.lastName#
  • #performer.activityDefId.email#
  • #performer.activityDefId.active#
  • #performer.activityDefId.timeZone#

To get activityDefId (activity definition ID), mouse-over on the activity name in Activity Mapping tab (Workflow Management Console), and there will be an overlay showing the ID.

Form

To get data from form table.

  • #form.formDataTableName.fieldName#
  • #form.fieldName# (used in Form Builder, or plugin configuration when the form data table name is already specified)

For examples: 

#form.registration.registeredDate#
#form.issuedDate#

Workflow Variable

To get the value of a workflow variable.

  • #variable.variableName#

For example:

 #variable.approvalStatus#

Date

To get date time according to a specified format.

For examples: 

#date.h:mm a# // 12:08 PM
#date.EEE, d MMM yyyy h:mm:ss a# // Wed, 4 Jul 2009 12:08:56 PM

User (v2.0.0 and above)

To get user information based on username.

  • #user.username.id#
  • #user.username.username#
  • #user.username.firstName#
  • #user.username.lastName#
  • #user.username.email#
  • #user.username.active#
  • #user.username.timeZone#

For example:

#user.admin.email#
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.