public interface JobClient
Modifier and Type | Method and Description |
---|---|
CompleteJobCommandStep1 |
newCompleteCommand(long jobKey)
Command to complete a job.
|
FailJobCommandStep1 |
newFailCommand(long jobKey)
Command to mark a job as failed.
|
CompleteJobCommandStep1 newCompleteCommand(long jobKey)
long jobKey = ..; jobClient .newCompleteCommand(jobKey) .payload(json) .send();
If the job is linked to a workflow instance then this command will complete the related activity and continue the flow.
jobKey
- the key which identifies the jobFailJobCommandStep1 newFailCommand(long jobKey)
long jobKey = ..; jobClient .newFailCommand(jobKey) .retries(3) .send();
If the given retries are greater than zero then this job will be picked up again by a job subscription. Otherwise, an incident is created for this job.
jobKey
- the key which identifies the jobCopyright © 2017–2019 camunda services GmbH. All rights reserved.