Assembly: OptimaJet.Workflow.Core

Class PredefinedActions

OptimaJet.Workflow.Core.PredefinedActions.PredefinedActions

Contains all predefined actions

public static class PredefinedActions

Methods

public static Task<bool> CheckAllSubprocessesCompletedAsync(ProcessInstance processInstance, WorkflowRuntime runtime) #
Check that all subprocesses was completed

Parameters

Name
Type
Description
processInstance
ProcessInstance
runtime
WorkflowRuntime

Returns

Type
Description
Task<Boolean>
true - if there are no active suprocesses
public static bool CheckAllSubprocessesCompleted(ProcessInstance processInstance, WorkflowRuntime runtime) #
Check that all subprocesses was completed

Parameters

Name
Type
Description
processInstance
ProcessInstance
runtime
WorkflowRuntime

Returns

Type
Description
Boolean
public static bool CheckAllSubprocessesAndParentProcessCompleted(ProcessInstance processInstance, WorkflowRuntime runtime) #
Checks whether a process and all of its direct subprocess branches have converged at the same subprocess merge activity.

Parameters

Name
Type
Description
processInstance
ProcessInstance
The ProcessInstance on which the outgoing transition from the merge activity is being evaluated.
runtime
WorkflowRuntime
The WorkflowRuntime used to inspect the active subprocess tree.

Returns

Type
Description
Boolean
true when ProcessInstance.CurrentActivity is the TransitionDefinition.From activity of ProcessInstance.ExecutedTransition and no direct subprocesses remain active; otherwise, false.

Remarks

Use this method as a condition on an outgoing transition from a subprocess merge activity. It permits that transition only after the process itself is waiting at the merge activity and every direct subprocess branch has finalized and merged into it.
public static Task<bool> CheckAllSubprocessesAndParentProcessCompletedAsync(ProcessInstance processInstance, WorkflowRuntime runtime) #
Checks whether a process and all of its direct subprocess branches have converged at the same subprocess merge activity.

Parameters

Name
Type
Description
processInstance
ProcessInstance
The ProcessInstance on which the outgoing transition from the merge activity is being evaluated.
runtime
WorkflowRuntime
The WorkflowRuntime used to inspect the active subprocess tree.

Returns

Type
Description
Task<Boolean>
true when ProcessInstance.CurrentActivity is the TransitionDefinition.From activity of ProcessInstance.ExecutedTransition and no direct subprocesses remain active; otherwise, false.

Remarks

Use this method as a condition on an outgoing transition from a subprocess merge activity. It permits that transition only after the process itself is waiting at the merge activity and every direct subprocess branch has finalized and merged into it.
public static Task<int> DeleteAllSubprocessesAsync(ProcessInstance processInstance, WorkflowRuntime runtime) #
Delete all subprocesses for process

Parameters

Name
Type
Description
processInstance
ProcessInstance
runtime
WorkflowRuntime

Returns

Type
Description
Task<Int32>
Count of deleted subprocesses
public static int DeleteAllSubprocesses(ProcessInstance processInstance, WorkflowRuntime runtime) #
Delete all subprocesses for process

Parameters

Name
Type
Description
processInstance
ProcessInstance
runtime
WorkflowRuntime

Returns

Type
Description
Int32
Count of deleted subprocesses