Zeebe C# Client 2.7.0
C# Client to communicate with an Zeebe Gateway
|
The client to communicate with a Zeebe gateway/cluster. More...
Public Member Functions | |
IJobWorkerBuilderStep1 | NewWorker () |
Registers a new job worker for jobs of a given type. | |
IActivateJobsCommandStep1 | NewActivateJobsCommand () |
Command to activate multiple jobs of a given type. | |
IUpdateRetriesCommandStep1 | NewUpdateRetriesCommand (long jobKey) |
Command to update the retries of a job. | |
IUpdateJobTimeoutCommandStep1 | NewUpdateJobTimeoutCommand (long jobKey) |
Command to update the timeout of a job. | |
IDeployResourceCommandStep1 | NewDeployCommand () |
Command to deploy new resources, i.e. BPMN process models and DMN decision models. | |
IEvaluateDecisionCommandStep1 | NewEvaluateDecisionCommand () |
Command to evaluate a decision. | |
ICreateProcessInstanceCommandStep1 | NewCreateProcessInstanceCommand () |
Command to create/start a new instance of a process. | |
ICancelProcessInstanceCommandStep1 | NewCancelInstanceCommand (long processInstanceKey) |
Command to cancel a process instance. | |
ISetVariablesCommandStep1 | NewSetVariablesCommand (long elementInstanceKey) |
Command to update the variables of a process instance. | |
IResolveIncidentCommandStep1 | NewResolveIncidentCommand (long incidentKey) |
Command to resolve an existing incident. | |
IPublishMessageCommandStep1 | NewPublishMessageCommand () |
Command to publish a message which can be correlated to a process instance. | |
IModifyProcessInstanceCommandStep1 | NewModifyProcessInstanceCommand (long processInstanceKey) |
Command to modify a process instance. | |
ITopologyRequestStep1 | TopologyRequest () |
Request the current cluster topology. Can be used to inspect which brokers are available at which endpoint and which broker is the leader of which partition. | |
Public Member Functions inherited from Zeebe.Client.Api.Worker.IJobClient | |
ICompleteJobCommandStep1 | NewCompleteJobCommand (long jobKey) |
Command to complete a job. | |
ICompleteJobCommandStep1 | NewCompleteJobCommand (IJob activatedJob) |
Command to complete a job. | |
IFailJobCommandStep1 | NewFailCommand (long jobKey) |
Command to mark a job as failed. | |
IThrowErrorCommandStep1 | NewThrowErrorCommand (long jobKey) |
Command to report a business error (i.e. non-technical) that occurs while processing a job. | |
The client to communicate with a Zeebe gateway/cluster.
IActivateJobsCommandStep1 Zeebe.Client.IZeebeClient.NewActivateJobsCommand | ( | ) |
Command to activate multiple jobs of a given type.
The command will try to use maxJobsToActivate
for given jobType
. If less then the requested maxJobsToActivate
jobs of the jobType
are available for activation the returned list will have fewer elements.
ICancelProcessInstanceCommandStep1 Zeebe.Client.IZeebeClient.NewCancelInstanceCommand | ( | long | processInstanceKey | ) |
Command to cancel a process instance.
processInstanceKey | processInstanceKey the key which identifies the corresponding process instance |
ICreateProcessInstanceCommandStep1 Zeebe.Client.IZeebeClient.NewCreateProcessInstanceCommand | ( | ) |
Command to create/start a new instance of a process.
IDeployResourceCommandStep1 Zeebe.Client.IZeebeClient.NewDeployCommand | ( | ) |
Command to deploy new resources, i.e. BPMN process models and DMN decision models.
IEvaluateDecisionCommandStep1 Zeebe.Client.IZeebeClient.NewEvaluateDecisionCommand | ( | ) |
Command to evaluate a decision.
IModifyProcessInstanceCommandStep1 Zeebe.Client.IZeebeClient.NewModifyProcessInstanceCommand | ( | long | processInstanceKey | ) |
Command to modify a process instance.
processInstanceKey | The key which identifies the corresponding process instance. |
IPublishMessageCommandStep1 Zeebe.Client.IZeebeClient.NewPublishMessageCommand | ( | ) |
Command to publish a message which can be correlated to a process instance.
IResolveIncidentCommandStep1 Zeebe.Client.IZeebeClient.NewResolveIncidentCommand | ( | long | incidentKey | ) |
Command to resolve an existing incident.
incidentKey | incidentKey the key of the corresponding incident |
ISetVariablesCommandStep1 Zeebe.Client.IZeebeClient.NewSetVariablesCommand | ( | long | elementInstanceKey | ) |
Command to update the variables of a process instance.
elementInstanceKey | the key of the element instance to set the variables for |
IUpdateJobTimeoutCommandStep1 Zeebe.Client.IZeebeClient.NewUpdateJobTimeoutCommand | ( | long | jobKey | ) |
Command to update the timeout of a job.
If the job's timeout is zero, the job will be directly retried.
jobKey | the key of the job to update |
IUpdateRetriesCommandStep1 Zeebe.Client.IZeebeClient.NewUpdateRetriesCommand | ( | long | jobKey | ) |
Command to update the retries of a job.
If the given retries are greater than zero then this job will be picked up again by a job subscription and a related incident will be marked as resolved.
jobKey | the key of the job to update |
IJobWorkerBuilderStep1 Zeebe.Client.IZeebeClient.NewWorker | ( | ) |
Registers a new job worker for jobs of a given type.
After registration, the broker activates available jobs and assigns them to this worker. It then publishes them to the client. The given worker is called for every received job, works on them and eventually completes them.
Example JobHandler implementation:
The handler must be thread-safe.
ITopologyRequestStep1 Zeebe.Client.IZeebeClient.TopologyRequest | ( | ) |
Request the current cluster topology. Can be used to inspect which brokers are available at which endpoint and which broker is the leader of which partition.