Annotation Interface CompleteTask
Annotation 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
calling
BusinessProcess.completeTask()
.
Example: after this method returns, the current task is completed
@CompleteTask
public void respond(String response, Message message) {
message.setResponse(response);
}
If the annotated method throws an exception, the task is not completed.- Author:
- Daniel Meyer
- See Also:
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Specifies whether the current conversation should be ended.
-
Element Details
-
endConversation
boolean endConversationSpecifies whether the current conversation should be ended.- Default:
- false
-