Parameters
Parameters tab
Required parameters list
Columns | Remarks |
Parameter | Name of the application or sub-process parameter required by the action; a link displays the parameter form in edit mode |
Direction | Parameter direction |
Value | Process data associated to the parameter; a link displays the parameter form in edit mode |
Additional parameters list
Columns | Remarks |
Parameter | Parameter name; a link displays the parameter form in edit mode The Add link displays a blank parameter form to add new data. |
Direction | Parameter direction |
Value | Data associated to the parameter |
Deletion | Clicking |
Invalid parameters list
If there are parameters that are no longer required by the selected sub-process, they become invalid and will appear in this list and can be deleted manually.
Parameter editing screen
Fields | Remarks |
Parameter | Unique identifier for the parameter; must respect nomenclature and be limited to 30 characters (required field) Application parameters such as Note: Parameter names should respect the following XML naming rules:
For more information, see https://www.w3schools.com/xml/xml_elements.asp. |
Browse | This button is only visible for actions that have at least one default application parameter defined |
Direction | Parameter direction:
|
Send the value of | The IN value to send to the parameter Depending on the type of data to be associated, this value can be process data, a macro or a freeform text value. |
Receive the value into | The process data where the OUT value of the parameter is stored |
Save button | Save changes |
Save and close button | Save changes and close the screen |
Add button | Save the current parameter and display a blank form to add a new parameter |
Delete button | Allow the deletion of the current parameter |
Close button | Close the screen without saving |
Editing parameter expressions
WorkflowGen supports VBScript and JavaScript expressions in action parameters, which can be created either directly as action parameter values, or in TEXT type process data mapped to action parameters as IN values.
Creating an expression as an action parameter value
Under Send the value of in the Edit parameter panel, choose a text and place the expression in the text area.
Next to Scripting, check Enable, then choose either JavaScript or VBScript.
Creating an expression as a TEXT process data
In the Edit data panel, place the expression in the Default value text area.
Tip: Click the pencil icon next to the Default value text area to open a larger text editor that includes JavaScript and VBScript syntax highlighting.
Specify the language either on the Mapping tab in the Form Designer, or in the Edit parameter panel:
In the Edit parameter panel, check Enable next to Scripting, then choose either JavaScript or VBScript.
OR
On the Mapping tab in the Form Designer, choose the data's Value IN button, select the expression from the Data drop-down list, check Enable next to Scripting, then choose either JavaScript or VBScript.
All WorkflowGen macros (except notification macros) are fully supported in both languages and are enclosed by < >
(e.g. <WF_PROCESS_INST_ID>
for the request number).
In both languages, the expected result must be either a number, a string, or a date.
Examples
This example would return the request number plus 5 in both JavaScript and VBScript:
No return
keyword is needed for expressions, with the exception of JavaScript inside a function. However, you cannot directly return the function; instead, it must be invoked and must return something like the following example, which would get tomorrow's date:
OR
Last updated