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.
Namespace: OptimaJet.Workflow.Core.Model.ApprovalMap
public class ActivityDtoConstructors
public ActivityDto(ActivityDefinition activity, ProcessDefinition scheme) #Parameters
Name
Type
Description
schemeProcessDefinitionProperties
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) #Parameters
Name
Type
Description
resultDictionary<String, ActivityDto>The collection of ActivityDto instances keyed by activity name to search or update.
schemeProcessDefinitionThe ProcessDefinition used to initialize ActivityDto.LocalizedState when a new ActivityDto must be created.
activityDtoActivityDtoWhen this method returns, the existing or newly created ActivityDto for
activity, or null when activity is null.