站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.1.7 cr1 API 英文版文档

EndTask (JBoss Seam API Documentation) - JBoss Seam 1.1.7 cr1 API 英文版文档


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