Creating functions

A function contains all the information that is needed to run a specific set of rules in a task model.

About this task

In a function, you define:
  • A reference to a ruleflow, which is going to be used as an entry point to run the task model. If a task model contains multiple rule flows, you can create several functions.
  • The input and output parameters that are needed to run the task model. You create parameters from any of the variables that are available in the task model. For more information about variables, see Creating a variable set.
You need to create functions to:

Procedure

  1. Open the Functions tab from your task model.
  2. Click the + button next to Functions.
  3. (Optional) Click the default name of the function to edit it.
  4. Select the ruleflow that you want to use as an entry point to the task model.
  5. Define input and output parameters for the function:
    1. Click Add in the Parameters section.
    2. Select the variable set that contains the variables you want to use as parameters in the left pane.
    3. Select the variables in the right pane, and set the direction of each parameter.
      The parameters can have three directions:
      IN
      The parameter value is provided as input to the ruleflow.
      OUT
      The parameter value is provided as output from the ruleflow when you run it.
      IN and OUT
      The parameter value is provided as input to the ruleflow and its value can be modified by the ruleflow and provided as output when you run it.
    4. Click Done.