Class BpmnJobActivationBehavior
java.lang.Object
io.camunda.zeebe.engine.processing.bpmn.behavior.BpmnJobActivationBehavior
A behavior class which allows processors to activate a job. Use this anywhere a job should
become activated and processed by a job worker.
This behavior class will either push a job on a
JobStreamer.JobStream
or notify job workers that a job of a given type is available for processing. If a JobStream/code>
is available for a job with a given type, the job will be pushed on the JobStream/code>. If
no JobStream/code> is available for the given job type, a notification is used.
Both the job push and the job worker notification are executed through a SideEffectProducer
.
-
Constructor Summary
ConstructorDescriptionBpmnJobActivationBehavior
(JobStreamer jobStreamer, VariableState variableState, Writers writers, KeyGenerator keyGenerator, JobMetrics jobMetrics) -
Method Summary
Modifier and TypeMethodDescriptionvoid
notifyJobAvailableAsSideEffect
(JobRecord jobRecord) void
publishWork
(long jobKey, JobRecord jobRecord)
-
Constructor Details
-
BpmnJobActivationBehavior
public BpmnJobActivationBehavior(JobStreamer jobStreamer, VariableState variableState, Writers writers, KeyGenerator keyGenerator, JobMetrics jobMetrics)
-
-
Method Details
-
publishWork
-
notifyJobAvailableAsSideEffect
-