Administration Guide
Adding Functions
To add a Function, follow the steps below.
INFO: For information on Functions, see Functions.
- From the Sidebar, navigate to Workflow and Business Logic > [Module] > [Object Class] > Workflow > Components > Functions.
- Click New. The [FunctionName] dialog box opens.
- By default, the Name field is initialized with
ObjectClassFunctionSeqNo
(for example,WorkOrderFunction00001
). You can customize this name, if needed.NOTE: Note the unique auto-generated ID value. You can use this ID to quickly access the corresponding Function. For details, see Accessing Workflow Items or Components by ID.
- Specify how the Function affects the object itself and other participants of the business process:
- Click New > [Operation] and specify the operation details.
INFO: For details and instructions, see Adding Operations.
Repeat this step to add other operations as needed.
- By default, all operations are executed unconditionally. If needed, you can enclose your operation in conditional blocks.
INFO: For details, see Building Conditional Statements.
IMPORTANT: Any workflow operation within a Function, Action, or Trigger can be enabled or disabled. Only enabled operations will be executed. For details, see Disabling and Enabling Operations.
- Click New > [Operation] and specify the operation details.
- To supply parameters to the Function, click the Parameters tab and proceed as follows:
- Click New. The Parameter dialog box opens.
- Type a parameter name in the Name field.
- Select the data type from the Type list. For parameters of the Reference type, in the Reference to field, specify objects that will be available for selection.
- If you want to assign the default parameter value, enter this value under Default Value. In the most cases, you need to insert a dynamically calculated value (an SQL expression or script) using the Expression Builder.
INFO: For details, see Using the Expression Builder.
- Click OK.
Repeat these steps to assign other parameters as needed.
- Click OK.