webMethods and Intelligent Business Operations 10.2 | Running Business Processes and Composite Applications | webMethods Task Engine User’s Guide | Task Expression Reference | Understanding Task Expressions
 
Understanding Task Expressions
 
About Condition Expressions
About Filter Rule Expressions
About Results Expressions
About Expression Operators
About Date/Time Values in Rule Expressions
You can use task type rule expressions to define a condition that must be matched for the rule to be enforced, and to define a result that will be applied when the rule is enforced. In addition, you can define variables that can be used within a task expression, and attributes that apply to how or when a rule is evaluated. You can also create bindings from expression terms to run-time data associated with the task instance.
For conditions, a basic expression statement consists of the following:
[A data field] [An operator] [A data field]
For example:
#{currentTask.taskInfo.status} == "active"
This condition determines if the current task status is "active." When this condition is matched, any actions specified in the results expression will be applied.
Task type rules are configured as task assignments and task events in Software AG Designer. My webMethods provides read-only view for task type rule expressions. You can view available task type rules by clicking the appropriate rule type icon for a task type on the Task Engine Administration page. You can create global task rules in My webMethods. For specific instructions how to create global task rules, see Working with Global Task Rules.
When you create global task rules in My webMethods, you enter expression terms by typing, and by clicking the Add Operator button next to the expression field. You can then select an operator from the resulting display. Various operators such as AND and OR enable you to combine data tests in a single condition.
You can view the available operators by clicking the Add Operator button on the Global [RuleType] Rules page for each rule type. The available data fields vary depending on the rule type you are creating.
All expressions are checked for validity and syntax errors are displayed. Select a field or operator and click OK to add it to the expression field.
For more information about task rule expressions, see:
*About Condition Expressions
*About Filter Rule Expressions
*About Results Expressions
*About Expression Operators
*About Date/Time Values in Rule Expressions
You can also read about task expressions in webMethods BPM Task Development Help.

Copyright © 2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release