Class RestExternalWorkerClient
java.lang.Object
org.flowable.external.client.impl.RestExternalWorkerClient
- All Implemented Interfaces:
ExternalWorkerClient
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.fasterxml.jackson.databind.ObjectMapperprotected final RestInvokerprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionRestExternalWorkerClient(String workerId, RestInvoker restInvoker, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionstatic ExternalWorkerClientcreate(String workerId, RestInvoker restInvoker) static ExternalWorkerClientcreate(String workerId, RestInvoker restInvoker, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Create a builder that can be used to complete the given jobCreate a builder that can be used to fail the given jobCreate a builder that can be used to acquire jobs from a Flowable application.
-
Field Details
-
workerId
-
restInvoker
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
RestExternalWorkerClient
public RestExternalWorkerClient(String workerId, RestInvoker restInvoker, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
createJobAcquireBuilder
Description copied from interface:ExternalWorkerClientCreate a builder that can be used to acquire jobs from a Flowable application.- Specified by:
createJobAcquireBuilderin interfaceExternalWorkerClient
-
createCompletionBuilder
Description copied from interface:ExternalWorkerClientCreate a builder that can be used to complete the given job- Specified by:
createCompletionBuilderin interfaceExternalWorkerClient- Parameters:
job- the job that should be completed
-
createFailureBuilder
Description copied from interface:ExternalWorkerClientCreate a builder that can be used to fail the given job- Specified by:
createFailureBuilderin interfaceExternalWorkerClient- Parameters:
job- the job that should be failed
-
create
-
create
public static ExternalWorkerClient create(String workerId, RestInvoker restInvoker, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-