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

StartTask (JBoss Seam API Documentation) - JBoss Seam 1.1.6 API 英文版文档


org.jboss.seam.annotations
Annotation Type StartTask


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

Marks a method as causing jBPM task to be started. The jBPM ContextInstance is associated with the BUSINESS_PROCESS scope and the TaskInstance is associated with a new conversation.

Note that both BeginTask and StartTask have effect before invocation of the intercepted method in that they are both about setting up appropriate ContextInstance for the current BusinessProcessContext; StartTask however, also has effect after method invocation as that is the time it actually marks the task as started.

See Also:
TaskInstance.start()

Optional Element Summary
 FlushModeType flushMode
          Set the FlushMode for any EntityManager used in this conversation.
 String id
          An EL expression for the conversation id.
 String pageflow
          The name of the jBPM process definition defining the page flow for this conversation.
 String taskIdParameter
          The name of the request parameter under which we should locate the the id of task to be started.
 

taskIdParameter

public abstract String taskIdParameter
The name of the request parameter under which we should locate the the id of task to be started.

Default:
"taskId"

pageflow

public abstract String pageflow
The name of the jBPM process definition defining the page flow for this conversation.

Default:
""

id

public abstract String id
An EL expression for the conversation id. If a conversation with the same id aready exists, Seam will redirect to that conversation.

Default:
""

flushMode

public abstract FlushModeType flushMode
Set the FlushMode for any EntityManager used in this conversation.

Default:
AUTO