tridion-sites-extensions-api-docs

Home > @tridion-sites/models > ActivityInstance

ActivityInstance class

Represents an Activity Instance: a current Activity which is part of a Process Instance.

Signature:

export declare class ActivityInstance extends Activity

Extends: Activity

Constructors

Constructor Modifiers Description
(constructor)({ backendModel, activityConstraints, activityDefinition, activityState, approvalStatus, processDefinition, workflowType, …activityArgs })   Constructs a new instance of the ActivityInstance class

Properties

Property Modifiers Type Description
_backendModel   BackendActivityInstance  
activityConstraints   ReadonlyArray<ActivityConstraints> | undefined Constraints of this activity.
activityDefinition   Link | undefined Activity Definition on which the Activity Instance is based.
activityState   ActivityState | undefined State of the Activity Instance.
approvalStatus   Link | undefined Approval Status for this Activity Instance.
getInternalModel   () => BackendActivityInstance  
isExpirationExecution   boolean | undefined Value, indicated whether this activity expired or not. This property is used by Workflow Agent while expiring the activity.
processDefinition   Link | undefined Process Definition on which the Activity Instance is based.
resumeBookmark   string | undefined Resume bookmark for suspended automated activities. During suspending of activity user can specify “ResumeBookmark” object. With its help script execution can be started in future from specific place, but not from the very beginning.
suspendOrFailReason   string | undefined Reason why this Activity was suspended or failed.
workflowType   Link | undefined Workflow type of the Process which contains this Activity.