Specifies execution mode. This is typically not specified, in which case the execution mode is determined by the TaskDefinition. Setting this attribute overrides the value in the TaskDefinition.
Allowed execMode values are:
Table 3–40 execMode Attribute Values (Process View)
Value |
Description |
---|---|
sync |
Specifies synchronous or foreground execution |
async |
Specifies asynchronous or background execution |
asyncImmediate |
Specifies asynchronous with immediate thread launch |
Use the asyncImmediate execution mode only for special system tasks that must pass non-serializable values into the task through the view. The task thread is started immediately. The default behavior is to save the TaskInstance temporarily in the repository and have the Scheduler resume it later.