Class ProcessInstanceMigrationCatchEventBehaviour
java.lang.Object
io.camunda.zeebe.engine.processing.processinstance.ProcessInstanceMigrationCatchEventBehaviour
-
Constructor Summary
ConstructorsConstructorDescriptionProcessInstanceMigrationCatchEventBehaviour(ProcessMessageSubscriptionState processMessageSubscriptionState, CatchEventBehavior catchEventBehavior, TypedCommandWriter commandWriter, CommandDistributionBehavior commandDistributionBehavior, DistributionState distributionState, StateWriter stateWriter, int currentPartitionId, RoutingInfo routingInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleCatchEvents(ElementInstance elementInstance, DeployedProcess targetProcessDefinition, Map<String, String> sourceElementIdToTargetElementId, ProcessInstanceRecord elementInstanceRecord, String targetElementId, long processInstanceKey, String elementId) Unsubscribes the element instance from unmapped catch events in the source process, and subscribes it to unmapped catch events in the target process.
-
Constructor Details
-
ProcessInstanceMigrationCatchEventBehaviour
public ProcessInstanceMigrationCatchEventBehaviour(ProcessMessageSubscriptionState processMessageSubscriptionState, CatchEventBehavior catchEventBehavior, TypedCommandWriter commandWriter, CommandDistributionBehavior commandDistributionBehavior, DistributionState distributionState, StateWriter stateWriter, int currentPartitionId, RoutingInfo routingInfo)
-
-
Method Details
-
handleCatchEvents
public void handleCatchEvents(ElementInstance elementInstance, DeployedProcess targetProcessDefinition, Map<String, String> sourceElementIdToTargetElementId, ProcessInstanceRecord elementInstanceRecord, String targetElementId, long processInstanceKey, String elementId) Unsubscribes the element instance from unmapped catch events in the source process, and subscribes it to unmapped catch events in the target process.It also migrates event subscriptions for mapped catch events.
-