use of io.camunda.zeebe.engine.state.mutable.MutableElementInstanceState in project zeebe by camunda.
the class ProcessEventProcessors method addProcessInstanceCreationStreamProcessors.
private static void addProcessInstanceCreationStreamProcessors(final TypedRecordProcessors typedRecordProcessors, final MutableZeebeState zeebeState, final Writers writers, final VariableBehavior variableBehavior) {
final MutableElementInstanceState elementInstanceState = zeebeState.getElementInstanceState();
final KeyGenerator keyGenerator = zeebeState.getKeyGenerator();
final CreateProcessInstanceProcessor createProcessor = new CreateProcessInstanceProcessor(zeebeState.getProcessState(), keyGenerator, writers, variableBehavior);
typedRecordProcessors.onCommand(ValueType.PROCESS_INSTANCE_CREATION, ProcessInstanceCreationIntent.CREATE, createProcessor);
typedRecordProcessors.onCommand(ValueType.PROCESS_INSTANCE_CREATION, ProcessInstanceCreationIntent.CREATE_WITH_AWAITING_RESULT, new CreateProcessInstanceWithResultProcessor(createProcessor, elementInstanceState));
}
use of io.camunda.zeebe.engine.state.mutable.MutableElementInstanceState in project zeebe by zeebe-io.
the class ProcessEventProcessors method addProcessInstanceCreationStreamProcessors.
private static void addProcessInstanceCreationStreamProcessors(final TypedRecordProcessors typedRecordProcessors, final MutableZeebeState zeebeState, final Writers writers, final VariableBehavior variableBehavior) {
final MutableElementInstanceState elementInstanceState = zeebeState.getElementInstanceState();
final KeyGenerator keyGenerator = zeebeState.getKeyGenerator();
final CreateProcessInstanceProcessor createProcessor = new CreateProcessInstanceProcessor(zeebeState.getProcessState(), keyGenerator, writers, variableBehavior);
typedRecordProcessors.onCommand(ValueType.PROCESS_INSTANCE_CREATION, ProcessInstanceCreationIntent.CREATE, createProcessor);
typedRecordProcessors.onCommand(ValueType.PROCESS_INSTANCE_CREATION, ProcessInstanceCreationIntent.CREATE_WITH_AWAITING_RESULT, new CreateProcessInstanceWithResultProcessor(createProcessor, elementInstanceState));
}
use of io.camunda.zeebe.engine.state.mutable.MutableElementInstanceState in project zeebe by camunda-cloud.
the class ProcessEventProcessors method addProcessInstanceCreationStreamProcessors.
private static void addProcessInstanceCreationStreamProcessors(final TypedRecordProcessors typedRecordProcessors, final MutableZeebeState zeebeState, final Writers writers, final VariableBehavior variableBehavior) {
final MutableElementInstanceState elementInstanceState = zeebeState.getElementInstanceState();
final KeyGenerator keyGenerator = zeebeState.getKeyGenerator();
final CreateProcessInstanceProcessor createProcessor = new CreateProcessInstanceProcessor(zeebeState.getProcessState(), keyGenerator, writers, variableBehavior);
typedRecordProcessors.onCommand(ValueType.PROCESS_INSTANCE_CREATION, ProcessInstanceCreationIntent.CREATE, createProcessor);
typedRecordProcessors.onCommand(ValueType.PROCESS_INSTANCE_CREATION, ProcessInstanceCreationIntent.CREATE_WITH_AWAITING_RESULT, new CreateProcessInstanceWithResultProcessor(createProcessor, elementInstanceState));
}
Aggregations