Search in sources :

Example 1 with CreateProcessInstanceWithResultProcessor

use of io.camunda.zeebe.engine.processing.processinstance.CreateProcessInstanceWithResultProcessor 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));
}
Also used : MutableElementInstanceState(io.camunda.zeebe.engine.state.mutable.MutableElementInstanceState) CreateProcessInstanceProcessor(io.camunda.zeebe.engine.processing.processinstance.CreateProcessInstanceProcessor) CreateProcessInstanceWithResultProcessor(io.camunda.zeebe.engine.processing.processinstance.CreateProcessInstanceWithResultProcessor) KeyGenerator(io.camunda.zeebe.engine.state.KeyGenerator)

Example 2 with CreateProcessInstanceWithResultProcessor

use of io.camunda.zeebe.engine.processing.processinstance.CreateProcessInstanceWithResultProcessor 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));
}
Also used : MutableElementInstanceState(io.camunda.zeebe.engine.state.mutable.MutableElementInstanceState) CreateProcessInstanceProcessor(io.camunda.zeebe.engine.processing.processinstance.CreateProcessInstanceProcessor) CreateProcessInstanceWithResultProcessor(io.camunda.zeebe.engine.processing.processinstance.CreateProcessInstanceWithResultProcessor) KeyGenerator(io.camunda.zeebe.engine.state.KeyGenerator)

Example 3 with CreateProcessInstanceWithResultProcessor

use of io.camunda.zeebe.engine.processing.processinstance.CreateProcessInstanceWithResultProcessor 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));
}
Also used : MutableElementInstanceState(io.camunda.zeebe.engine.state.mutable.MutableElementInstanceState) CreateProcessInstanceProcessor(io.camunda.zeebe.engine.processing.processinstance.CreateProcessInstanceProcessor) CreateProcessInstanceWithResultProcessor(io.camunda.zeebe.engine.processing.processinstance.CreateProcessInstanceWithResultProcessor) KeyGenerator(io.camunda.zeebe.engine.state.KeyGenerator)

Aggregations

CreateProcessInstanceProcessor (io.camunda.zeebe.engine.processing.processinstance.CreateProcessInstanceProcessor)3 CreateProcessInstanceWithResultProcessor (io.camunda.zeebe.engine.processing.processinstance.CreateProcessInstanceWithResultProcessor)3 KeyGenerator (io.camunda.zeebe.engine.state.KeyGenerator)3 MutableElementInstanceState (io.camunda.zeebe.engine.state.mutable.MutableElementInstanceState)3