Administration Guide

Adding Functions

To add a Function, follow the steps below.

INFO: For information on Functions, see Functions.

  1. From the Sidebar, navigate to Workflow and Business Logic > [Module] > [Object Class] > Workflow > Components > Functions.
  2. Click New. The [FunctionName] dialog box opens.
  3. 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.

  4. Specify how the Function affects the object itself and other participants of the business process:
    1. 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.

    2. 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.

  5. To supply parameters to the Function, click the Parameters tab and proceed as follows:
    1. Click New. The Parameter dialog box opens.
    2. Type a parameter name in the Name field.
    3. 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.
    4. 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.

    5. Click OK.

    Repeat these steps to assign other parameters as needed.

  6. Click OK.