Assembly: OptimaJet.Workflow.Core

Class ActivityDto

OptimaJet.Workflow.Core.Model.ApprovalMap.ActivityDto

Represents an ActivityDefinition and its outgoing TransitionDto entries in an approval map or pre-execution simulation result.

public class ActivityDto

Constructors

public ActivityDto(ActivityDefinition activity, ProcessDefinition scheme) #
Initializes a new ActivityDto from an ActivityDefinition in a ProcessDefinition.

Parameters

Name
Type
Description
activity
ActivityDefinition
The ActivityDefinition to represent.
scheme
ProcessDefinition

Properties

public string Activity { get; set; } #
Gets or sets the name of the represented ActivityDefinition.
public string State { get; set; } #
Gets or sets the business state associated with the represented ActivityDefinition, as defined by ActivityDefinition.State.
public bool IsCurrent { get; set; } #
Gets or sets a value indicating whether the activity is active in the process tree used to build an approval map or is the starting activity of a pre-execution simulation.
public bool IsFinal { get; set; } #
Gets or sets a value indicating whether the represented ActivityDefinition is marked as final by ActivityDefinition.IsFinal.
public bool IsInitial { get; set; } #
Gets or sets a value indicating whether the represented ActivityDefinition is the process entry point identified by ActivityDefinition.IsInitial.
public int? SubprocessLevel { get; set; } #
Gets or sets the subprocess nesting level of the represented ActivityDefinition, as defined by ActivityDefinition.NestingLevel.
public string LocalizedState { get; set; } #
Gets or sets the localized name of the business state specified by ActivityDto.State.
public List<TransitionDto> Transitions { get; } #
Gets the outgoing TransitionDto entries that are available from this activity in an approval map or selected by a pre-execution simulation.

Methods

public static bool AddIfNotExistsTo(Dictionary<string, ActivityDto> result, ActivityDefinition? activity, ProcessDefinition scheme, out ActivityDto activityDto) #
Ensures that result contains an ActivityDto for activity when activity is not null.

Parameters

Name
Type
Description
result
Dictionary<String, ActivityDto>
The collection of ActivityDto instances keyed by activity name to search or update.
activity
ActivityDefinition
The ActivityDefinition to represent, or null to leave result unchanged.
scheme
ProcessDefinition
The ProcessDefinition used to initialize ActivityDto.LocalizedState when a new ActivityDto must be created.
activityDto
ActivityDto
When this method returns, the existing or newly created ActivityDto for activity, or null when activity is null.

Returns

Type
Description
Boolean
true when activity is not null; otherwise, false.