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


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

Marks a method as causing a jBPM task to be resumed. The jBPM ContextInstance is associated with the BUSINESS_PROCESS scope and the TaskInstance is associated with a new conversation, unless the annotated method returns a null outcome.

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.

Author:
Steve Ebersole

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

taskIdParameter

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

Default:
""

taskId

public abstract String taskId
An EL expression that evaluates to the task id.

Returns:
an EL expression
Default:
"#{param.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
Deprecated. use in pages.xml

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:
org.jboss.seam.annotations.FlushModeType.AUTO


Copyright © 2011 Seam Framework. All Rights Reserved.