Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

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

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

Marks a method as causing jBPM `task` 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.

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` An empty outcome list is interpreted to mean any outcome except for the null (redisplay) outcome.
`String` | `transition` Specifies the transition that should be triggered by completing the task.

### ifOutcome

    public abstract String[] ifOutcome

  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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT