Copyright © Cloud Software Group, Inc. All rights reserved. |
See TIBCO iProcess Expressions and Functions Reference Guide for full details of allowable expressions.
•
• True Block is a sequence of script statements which are executed if Condition 1 is true.
• Elseif Block is a sequence of script statements which are executed if Condition 1 is false and Condition 2 is true.
• Else Block is a sequence of script statements which are executed if Condition 1 and Condition 2 are both false.
•
• WHILE Condition
While Block
WENDCondition is any expression which returns type boolean, such as REPLY="Yes".While Block is a sequence of script statements that are executed repeatedly for as long as Condition is true. (The conditional expression is re-evaluated each time.)A script can contain iProcess variables with the names in the format $ARGn where n is a positive integer. To pass parameter values into a script, the SCRIPT function must be used to execute the script.See “Script” in TIBCO iProcess Expressions and Functions Reference Guide for more information and an example.You can define fields from within the script editor in the same way as in a form. See “Defining Fields” in TIBCO iProcess Modeler Basic Design for further information on how to do this.To save the current script file, choose Script > Save Changes.
This does NOT update the Procedure Definition; to do this, choose Procedure > Save from the iProcess Modeler window.
• Structure errors, for example an IF without a corresponding ENDIF, are reported in a message box. On clicking OK, you are returned to the Script Editor window to correct the error.
You cannot leave the Script Editor window until you have corrected all structure errors.
• Expression errors are also reported, but in this case you have the option of returning to correct the error, ignoring it and continuing to check for others, and ignoring them all. If you choose to correct the error, you are shown the line on which the error occurred. Scripts with expression errors will run, but may not produce the desired result.To exit the Script Editor window, choose Script > Exit. If the current script has been changed, you are prompted to Save it first.To edit a script, right click on the script in your iProcess Modeler layout and select Script. You are taken to the script which you can then edit and amend as required.
Copyright © Cloud Software Group, Inc. All rights reserved. |