2024 December Release

FSCDIAGRAMEDITOR@1.1001:wfbackgroundexpression Permanent link for this heading

Expression

This property stores an expression that should be executed by a background job (instead of executing a work item as user). 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: Only properties and actions that are tagged as secure can be used within this expression.

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

Explanation:
Defines an app.ducx expression that is executed in the background instead of a work item (see also wfbackgroundexpression).

private string[] FSCDIAGRAMEDITOR@1.1001:wfbackgroundexpression (
  optional object object,
  optional ProcessInstance process,
  optional ActivityInstance activity)

Name

Description

object

the object on which the process is running (also accessible via WFVAR_THIS)

process

the process instance (also accessible via WFVAR_PROCESS)

activity

the activity instance which is executed in background (also accessible via WFVAR_ACTIVITY)