Annotation Interface CompleteTask


@InterceptorBinding @Retention(RUNTIME) @Target({METHOD,TYPE}) public @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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Specifies whether the current conversation should be ended.
  • Element Details

    • endConversation

      boolean endConversation
      Specifies whether the current conversation should be ended.
      Default:
      false