tridion-sites-extensions-api-docs

Home > @tridion-sites/models > ActivityDefinition

ActivityDefinition class

Signature:

export declare class ActivityDefinition extends WorkflowObject

Extends: WorkflowObject

Constructors

Constructor Modifiers Description
(constructor)({ backendModel, activityConstraints, assignee, processDefinition, …workflowObjectArgs })   Constructs a new instance of the ActivityDefinition class

Properties

Property Modifiers Type Description
_backendModel   BackendActivityDefinition  
activityConstraints   ActivityConstraints | undefined  
assignee   Link | undefined <p>Gets or sets the User or Group to which the Workflow activity will be assigned.</p><p>Depending on the character of activity this property has some limitations: Assignee of the first activity in the process might not be set explicitly. In that case activity will be assigned to everyone. Automatic activities (activities with “TridionActivityDefinition.Script” property set) should be assigned to the workflow agent user (Id of this user can be found in Content Manager configuration under the ‘Automatic Trustee ID’ setting in the Workflow settings node).</p><p>If this property is not set or set to null, the value depends on the kind of activity: For normal activity the everyone group will be assigned. For decision activity a performer of the previous activity will be assigned. For automatic activity (activity with “TridionActivityDefinition.Script” property set) the workflow agent user will be assigned.</p>
description   string | undefined The description of the Activity Definition.
getInternalModel   () => BackendActivityDefinition  
processDefinition   Link | undefined Gets or sets the Workflow Process Definition that contains this activity. Will be undefined if the Activity Definition is read in the context of a Process Definition. If read stand-alone it will be set.