Class CreateProcessInstanceProcessor
java.lang.Object
io.camunda.zeebe.engine.processing.processinstance.CreateProcessInstanceProcessor
- All Implemented Interfaces:
CommandProcessor<ProcessInstanceCreationRecord>
public final class CreateProcessInstanceProcessor
extends Object
implements CommandProcessor<ProcessInstanceCreationRecord>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.engine.processing.streamprocessor.CommandProcessor
CommandProcessor.CommandControl<T> -
Constructor Summary
ConstructorsConstructorDescriptionCreateProcessInstanceProcessor(ProcessState processState, KeyGenerator keyGenerator, Writers writers, BpmnBehaviors bpmnBehaviors, ProcessEngineMetrics metrics) -
Method Summary
Modifier and TypeMethodDescriptionbooleanonCommand(TypedRecord<ProcessInstanceCreationRecord> command, CommandProcessor.CommandControl<ProcessInstanceCreationRecord> controller) tryHandleError(TypedRecord<ProcessInstanceCreationRecord> typedCommand, Throwable error) Try to handle an error that occurred during processing.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.engine.processing.streamprocessor.CommandProcessor
afterAccept
-
Constructor Details
-
CreateProcessInstanceProcessor
public CreateProcessInstanceProcessor(ProcessState processState, KeyGenerator keyGenerator, Writers writers, BpmnBehaviors bpmnBehaviors, ProcessEngineMetrics metrics)
-
-
Method Details
-
onCommand
public boolean onCommand(TypedRecord<ProcessInstanceCreationRecord> command, CommandProcessor.CommandControl<ProcessInstanceCreationRecord> controller) - Specified by:
onCommandin interfaceCommandProcessor<ProcessInstanceCreationRecord>
-
tryHandleError
public TypedRecordProcessor.ProcessingError tryHandleError(TypedRecord<ProcessInstanceCreationRecord> typedCommand, Throwable error) Description copied from interface:CommandProcessorTry to handle an error that occurred during processing.- Specified by:
tryHandleErrorin interfaceCommandProcessor<ProcessInstanceCreationRecord>- Parameters:
typedCommand- The command that was being processed when the error occurrederror- The error that occurred, and the processor should attempt to handle- Returns:
- The type of the processing error. Default:
TypedRecordProcessor.ProcessingError.UNEXPECTED_ERROR.
-