Package org.camunda.community.bpmndt.api
Class ExternalTaskClientHandler<T extends ExternalTaskHandler<?>>
java.lang.Object
org.camunda.community.bpmndt.api.ExternalTaskHandler<ExternalTaskClientHandler<?>>
org.camunda.community.bpmndt.api.ExternalTaskClientHandler<T>
- Type Parameters:
T- The handler implementation.
public class ExternalTaskClientHandler<T extends ExternalTaskHandler<?>>
extends ExternalTaskHandler<ExternalTaskClientHandler<?>>
Fluent API to handle external tasks, implemented through an external task client.
-
Field Summary
Fields inherited from class org.camunda.community.bpmndt.api.ExternalTaskHandler
fetchExtensionProperties, fetchLocalVariablesOnly, processEngine, WORKER_ID -
Constructor Summary
ConstructorsConstructorDescriptionExternalTaskClientHandler(org.camunda.bpm.engine.ProcessEngine processEngine, String activityId, String topicName) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteExternalTask(BiConsumer<org.camunda.bpm.client.task.ExternalTask, org.camunda.bpm.client.task.ExternalTaskService> action) Executes a custom action that handles the external task, which has been queried (by process instance ID, activity ID and topic name) and locked before, when the process instance is waiting at the corresponding activity.Methods inherited from class org.camunda.community.bpmndt.api.ExternalTaskHandler
apply, complete, complete, customize, execute, executeExternalTask, executeLockedExternalTask, handleBpmnError, handleBpmnError, isWaitingForBoundaryEvent, verify, verifyTask, waitForBoundaryEvent, withErrorMessage, withFetchExtensionProperties, withFetchLocalVariablesOnly, withLocalVariable, withLocalVariables, withLocalVariableTyped, withLockDuration, withVariable, withVariables, withVariableTyped, withWorkerId
-
Constructor Details
-
ExternalTaskClientHandler
-
-
Method Details
-
executeExternalTask
public void executeExternalTask(BiConsumer<org.camunda.bpm.client.task.ExternalTask, org.camunda.bpm.client.task.ExternalTaskService> action) Executes a custom action that handles the external task, which has been queried (by process instance ID, activity ID and topic name) and locked before, when the process instance is waiting at the corresponding activity.
Please note: This method must be used when the external task has been implemented using an external task client.- Parameters:
action- A specific action that acceptsExternalTaskandExternalTaskService.
-