Class FlowConditionalGateway
Base class for BPMN elements containing conditional flows.
Inheritance
Inherited Members
Namespace: Terrasoft.Core.Process
Assembly: Terrasoft.Core.dll
Syntax
public class FlowConditionalGateway : FlowElement, IFlowElement
Constructors
FlowConditionalGateway(FlowElement, ConditionEvalStrategy)
Initializes a new instance of the FlowConditionalGateway class.
Declaration
protected FlowConditionalGateway(FlowElement flowElement, ConditionEvalStrategy conditionEvalStrategy)
Parameters
Type | Name | Description |
---|---|---|
FlowElement | flowElement | The instance of the flow element. |
ConditionEvalStrategy | conditionEvalStrategy | The conditional flows evaluation strategy. |
FlowConditionalGateway(FlowSchema, String, ConditionEvalStrategy)
Initializes a new instance of the FlowConditionalGateway class using the flow schema.
Declaration
protected FlowConditionalGateway(FlowSchema flowSchema, string bpmnElementName, ConditionEvalStrategy conditionEvalStrategy)
Parameters
Type | Name | Description |
---|---|---|
FlowSchema | flowSchema | The flow schema. |
System.String | bpmnElementName | Name of the BPMN element. |
ConditionEvalStrategy | conditionEvalStrategy | The conditional flows evaluation strategy. |
Properties
ConditionEvalStrategy
Gets the conditional flows evaluation strategy.
Declaration
public ConditionEvalStrategy ConditionEvalStrategy { get; }
Property Value
Type | Description |
---|---|
ConditionEvalStrategy |
ShouldRemoveDefSequenceFlowOnVisited
Gets a value indicating whether the default sequence flow should be removed on OnVisited(FlowElement) event when conditional flows exist in Terrasoft.Core.Process.FlowConditionalGateway.ResultSequenceFlows.
Declaration
protected virtual bool ShouldRemoveDefSequenceFlowOnVisited { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
Accept(FlowVisitor, FlowElement)
Declaration
public override void Accept(FlowVisitor visitor, FlowElement previousFlowElement = null)
Parameters
Type | Name | Description |
---|---|---|
FlowVisitor | visitor | |
FlowElement | previousFlowElement |
Overrides
OnVisited(FlowElement)
Called when Visited event fired.
Declaration
protected virtual IEnumerable<FlowElement> OnVisited(FlowElement flowElement)
Parameters
Type | Name | Description |
---|---|---|
FlowElement | flowElement | The flow element. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<FlowElement> | The elements that should be executed in the flow after the current gateway. |