Designer 10.7 | webMethods BPM Task Development Help | Working with Task Expressions | About Condition Expressions
 
About Condition Expressions
You can create a condition expression to test for a wide range of task characteristics, including:
*Current status or previous status
*Priority
*Input and output values
*Escalation
*Dates and times associated with the task
*Current user
For example, this condition expression tests for a task status of active:
#{currentTask.taskInfo.status} == "active"
The results are returned a simple Boolean true or false. This simple expression was built by clicking the Add Field and Add Operator buttons on the Edit Expression dialog box. For more information about building expressions, see Configuring Advanced Task Expressions and Building a Sample Task Expression.
This more complex statement tests for the expiration of an active task:
#{currentTask.taskInfo.status} == "active" && (#{System.currentDateTime} +
(ExpirationThresholdDays * 86400000)) > #{currentTask.taskInfo.expireDate}
You can view the available data fields and operators by clicking the Add Field and Add Operator buttons on the Edit Expression dialog box.
Related Topics