Gå til indhold

Execute activities automatically

Dette indhold er ikke tilgængeligt i dit sprog endnu.

To reduce the manual work that a user has to do in a case activity list, you can configure activities to be executed automatically. You can apply automatic execution in two ways by assigning either the AUTO role or the L-AUTO role to the activity, depending on when you want the activity to be executed. The activity will be executed by a system user.

Activities with the AUTO role assigned will be executed automatically once as soon as the activity is included. This means:

  • If an AUTO activity is successfully executed automatically, it will be set to manual for any additional executions.
  • If an AUTO activity fails to be executed automatically, it will be set to manual for any additional executions.

If an activity fails to execute automatically, it will stay active and the user can execute it manually. If the activity is executed manually, the default values as set in the DCR process are shown in the form. The user can then change the values and execute the activity.

Activities with the L-AUTO role assigned are executed soon as they are included, enabled, and pending. Pending in this context means that the activity is required before the process can be considered completed. If the activities become pending again later in the process, they will be executed automatically again.

You can also assign the L-AUTO role to activities if you want to align the behavior of your WorkZone case activities with the simulation in DCR Design Portal using the lazy user role. See the DCR documentation.

The L-AUTO role itself does not execute an activity automatically. You need to design the process so that the activity becomes included and pending (the Pending check box is selected on the activity or the activity has a Response connection—a blue arrow in the process).

Robots are activities with special roles. Those activities are run automatically. You can use them to automatically perform follow-up activities, such as calculating values or executing activity effects. You can only apply roles to advanced effects that call external web services.

See Create advanced activity effects and read more about DCR Robots in the DCR documentation.