2022 June Release

COOWF@1.1:actdefbackgroundexpression Permanent link for this heading

Expression for Script Activities

Defines the expression that should be executed by a background job instead of executing a work item as a human. The evaluation of the background task is done by a background user which is calculated automatically for the organization of the object of the process. The expression can be used to perform long running calculations or modifications on the object of the process.
Note: This expression is evaluated in a secured mode for expression, so only attributes and actions which are tagged as secured can be used within this expression.

The local scope of this expression contains the following values:
object: the object on which the process is running
process: the process instance object
activity: the current activity instance which is executed in background

The values specified in the local scope are also accessible by the following transaction variables:
WFVAR_THIS: the object on which the process is running
WFVAR_PROCESS: the process instance object
WFVAR_ACTIVITY: the current activity instance which is executed in background

Example:
object.ObjectLock(true, true);<br/> object.bostate = #StateToVerify;

string[] COOWF@1.1:actdefbackgroundexpression (
  optional object object,
  optional ProcessInstance process,
  optional ActivityInstance activity)

Local Scope: dictionary

Name

Description

object

the object of the process

process

the process instance

activity

the current activity instance