Skip to main content

Create a new workflow


  Building a workflow

  1. In the main window select New, or File>New, or the New Item icon.
  2. Select Workflow.
  3. In the next window indicate whether the workflow should be persistent or not, i.e. microworkflow.

Obraz 142

image

image

By default, a persistent workflow is created, i.e. one that is designed to build long-lasting workflows containing, for example, interaction with the user for whom information about its execution is saved in the database.

tip

If you want to create a workflow that will only exist in the memory for runtime, select Nonpersistent (microworkflow). In the case of a non-persistent workflow, no information about its status and execution path will be saved in the database.

After the workflow is created, the workflow designer is displayed. The Toolbox tab lists everything that you can use to create workflows.

image

In order to correctly define the workflow, its elements should be defined, and then links between them should be created.

When designing, you can use the following elements (workflow activities):

  1. Create a data element
  2. Check point
  3. Mapping
  4. State
  5. Decision
  6. Asynchronous and synchronous workflow
  7. Waiting for a workflow
  8. Multi-asynchronous workflows
  9. Multi-workflow synchronization
  10. Continue workflow
  11. Refresh data element
  12. Algorithm/Table
  13. Web service
  14. Show message
  15. Throw error

Elements placed on the workspace must be linked with each other. A link can be created between two elements. Each of the elements (except the Start and End elements) should have at least two connections with other elements of the workflow. These links indicate the workflow flow direction.

  1. Select the item you want to link to another workflow item.
  2. Place the cursor over the element at the black connection point.
  3. Press the left mouse button and drag the pointer over the black point on the element with which you want to connect the selected element.
  4. Release the mouse button.

Obraz 33

tip

You don't always have to create connections manually. If you drag a new activity from the Toolbox panel and drop it onto the preceding activity, it is connected to it automatically. Dropping an activity onto an existing connection inserts it into the flow between two elements. See: Inserting and removing activities in the flow.

  1. Connections can be given names. To add a name to a connection, select the line, then go to the Properties panel and enter the name in the Display name field.

Obraz 34

  1. The names of connections are also visible in the workflow preview mode after its execution.

Obraz 35

Defining output ports​

Output ports are outputs from a given element that indicate further steps in the workflow according to fixed paths.

tip

The Decision and State activities can be configured in such a way that they have several outputs: in the case of decisions, they are outputs related to the fulfillment of one of the conditions defined in the activity, in the case of the State activity further steps in the workflow depend on the action selected by the user on the form.

Apart from the outputs used in the regular workflow flow, activities can also have:

Output ports are defined by selecting the element and navigating to the Properties panel. For more information on defining output ports, see: State element and Decision element

Obraz 22

See also​

Workflow validation

The workflow execution tracking

Error handling workflow