Class BpmnDecisionBehavior
java.lang.Object
io.camunda.zeebe.engine.processing.bpmn.behavior.BpmnDecisionBehavior
Provides decision behavior to the BPMN processors
-
Constructor Summary
ConstructorDescriptionBpmnDecisionBehavior
(DecisionEngine decisionEngine, ZeebeState zeebeState, EventTriggerBehavior eventTriggerBehavior, StateWriter stateWriter, KeyGenerator keyGenerator, ExpressionProcessor expressionBehavior, ProcessEngineMetrics metrics) -
Method Summary
Modifier and TypeMethodDescriptionevaluateDecision
(ExecutableCalledDecision element, BpmnElementContext context) Evaluate a decision during the processing of a bpmn element.
-
Constructor Details
-
BpmnDecisionBehavior
public BpmnDecisionBehavior(DecisionEngine decisionEngine, ZeebeState zeebeState, EventTriggerBehavior eventTriggerBehavior, StateWriter stateWriter, KeyGenerator keyGenerator, ExpressionProcessor expressionBehavior, ProcessEngineMetrics metrics)
-
-
Method Details
-
evaluateDecision
public Either<Failure,DecisionEvaluationResult> evaluateDecision(ExecutableCalledDecision element, BpmnElementContext context) Evaluate a decision during the processing of a bpmn element.- Parameters:
element
- the called decision of the current bpmn elementcontext
- process instance-related data of the element that is executed- Returns:
- either an evaluated decision's result or a failure
-