Annotation Type CompleteTask
-
@InterceptorBinding @Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface CompleteTaskAnnotation signaling that a task is to be completed after the annotated method returns. Requires that the current unit of work (conversation or request) is associated with a task. This has the same effect as callingBusinessProcess.completeTask(). Example: after this method returns, the current task is completed
If the annotated method throws an exception, the task is not completed.@CompleteTaskpublic void respond(String response, Message message) { message.setResponse(response); }- Author:
- Daniel Meyer
- See Also:
BusinessProcess.startTask(String),BusinessProcess.completeTask()
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanendConversationSpecifies whether the current conversation should be ended.
-