Class ProcessInstanceCreationCreateProcessor
java.lang.Object
io.camunda.zeebe.engine.processing.processinstance.ProcessInstanceCreationCreateProcessor
- All Implemented Interfaces:
CommandProcessor<ProcessInstanceCreationRecord>
public final class ProcessInstanceCreationCreateProcessor
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
ConstructorsConstructorDescriptionProcessInstanceCreationCreateProcessor
(ProcessState processState, KeyGenerator keyGenerator, Writers writers, BpmnBehaviors bpmnBehaviors, ProcessEngineMetrics metrics, AuthorizationCheckBehavior authCheckBehavior) -
Method Summary
Modifier and TypeMethodDescriptionboolean
onCommand
(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, wait
Methods inherited from interface io.camunda.zeebe.engine.processing.streamprocessor.CommandProcessor
afterAccept
-
Constructor Details
-
ProcessInstanceCreationCreateProcessor
public ProcessInstanceCreationCreateProcessor(ProcessState processState, KeyGenerator keyGenerator, Writers writers, BpmnBehaviors bpmnBehaviors, ProcessEngineMetrics metrics, AuthorizationCheckBehavior authCheckBehavior)
-
-
Method Details
-
onCommand
public boolean onCommand(TypedRecord<ProcessInstanceCreationRecord> command, CommandProcessor.CommandControl<ProcessInstanceCreationRecord> controller) - Specified by:
onCommand
in interfaceCommandProcessor<ProcessInstanceCreationRecord>
-
tryHandleError
public TypedRecordProcessor.ProcessingError tryHandleError(TypedRecord<ProcessInstanceCreationRecord> typedCommand, Throwable error) Description copied from interface:CommandProcessor
Try to handle an error that occurred during processing.- Specified by:
tryHandleError
in 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
.
-