Class PredefinedActions
OptimaJet.Workflow.Core.PredefinedActions.PredefinedActions
Contains all predefined actions
Namespace: OptimaJet.Workflow.Core.PredefinedActions
public static class PredefinedActionsMethods
public static Task<bool> CheckAllSubprocessesCompletedAsync(ProcessInstance processInstance, WorkflowRuntime runtime) #Check that all subprocesses was completed
Parameters
Name
Type
Description
processInstanceProcessInstanceruntimeWorkflowRuntimeReturns
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
processInstanceProcessInstanceruntimeWorkflowRuntimeReturns
Type
Description
Booleanpublic 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
processInstanceProcessInstanceThe ProcessInstance on which the outgoing transition from the merge activity is being evaluated.
Returns
Type
Description
Booleantrue 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
processInstanceProcessInstanceThe ProcessInstance on which the outgoing transition from the merge activity is being evaluated.
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
processInstanceProcessInstanceruntimeWorkflowRuntimeReturns
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
processInstanceProcessInstanceruntimeWorkflowRuntimeReturns
Type
Description
Int32Count of deleted subprocesses