Package org.flowable.external.worker
Interface WorkerResultBuilder
public interface WorkerResultBuilder
A builder that can be used to construct the appropriate
WorkerResult.- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionCreate a newWorkerResult.Successthat can be used as a return type for methods annotated with@FlowableWorker.Create a newWorkerResult.Successthat can be used as a return type for methods annotated with@FlowableWorker.Create a newWorkerResult.Successthat can be used as a return type for methods annotated with@FlowableWorkerThis result will lead to a CMMN termination of the external worker.failure()Create a newWorkerResult.Failurethat can be used as a return type for methods annotated with@FlowableWorkersuccess()Create a newWorkerResult.Successthat can be used as a return type for methods annotated with@FlowableWorker
-
Method Details
-
success
WorkerResult.Success success()Create a newWorkerResult.Successthat can be used as a return type for methods annotated with@FlowableWorker -
bpmnError
WorkerResult.Success bpmnError()Create a newWorkerResult.Successthat can be used as a return type for methods annotated with@FlowableWorker. This result will lead to a BPMN Error completion of the external worker.- See Also:
-
bpmnError
Create a newWorkerResult.Successthat can be used as a return type for methods annotated with@FlowableWorker. This result will lead to a BPMN Error completion of the external worker.- See Also:
-
cmmnTerminate
WorkerResult.Success cmmnTerminate()Create a newWorkerResult.Successthat can be used as a return type for methods annotated with@FlowableWorkerThis result will lead to a CMMN termination of the external worker. -
failure
WorkerResult.Failure failure()Create a newWorkerResult.Failurethat can be used as a return type for methods annotated with@FlowableWorker
-