org.jboss.seam.annotations.bpm
Annotation Type EndTask


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface EndTask

Marks a method as causing a jBPM task instance to be ended. The current conversation also ends. If a list of outcomes is specified, the task ends only if the outcome is in the list. A null outcome never ends the task.

Author:
Gavin King
See Also:
TaskInstance.end(String)

Optional Element Summary
 boolean beforeRedirect
          Should the conversation be destroyed before any redirect? (The default behavior is to propagate the conversation across the redirect and then destroy it at the end of the redirected request.)
 String[] ifOutcome
          Deprecated. use BusinessProcess.instance().end("...") and Conversation.instance().end()
 String transition
          Specifies the transition that should be triggered by completing the task.
 

ifOutcome

public abstract String[] ifOutcome
Deprecated. use BusinessProcess.instance().end("...") and Conversation.instance().end()

An empty outcome list is interpreted to mean any outcome except for the null (redisplay) outcome.

Default:
{}

transition

public abstract String transition
Specifies the transition that should be triggered by completing the task. If the transition needs to be specified dynamically, use the Seam transition component, calling Transition.setName().

Returns:
a transition name
Default:
""

beforeRedirect

public abstract boolean beforeRedirect
Should the conversation be destroyed before any redirect? (The default behavior is to propagate the conversation across the redirect and then destroy it at the end of the redirected request.)

Returns:
false by default
Default:
false