Running Business Processes and Composite Applications 10.4 | Running Business Processes and Composite Applications | webMethods Task Engine User’s Guide | Task Expression Reference | About Global Rule Expressions | Expressions for Default Global Rules | Infinite Loop Rule
 
Infinite Loop Rule
This rule places a task in Error status when the one-hundredth version of the task is created. You can edit the expression for this rule to specify a different number. For more information, see Working with Global Task Rules.
Condition Expression:
#{oldTask.taskInfo.taskVersionNumber} == 99 &&
#{newTask.taskInfo.taskVersionNumber} == 100
Result Expression:
#{currentTask.taskInfo.status} = "error";
#{currentTask.taskInfo.errorCode} = "task.error.infinite.loop";
#{currentTask.taskInfo.errorMessage} = "Task has
reached maximum number of modifications"; #{currentTask.applyChanges}

Copyright © 2019 | 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