Package de.espirit.firstspirit.access
Interface WorkflowContext
public interface WorkflowContext
Context object for performing a task state change.
$Date$
- Since:
- 4.0.120
- Version:
- $Revision$
-
Method Summary
Modifier and TypeMethodDescriptioncreateWorkflowScriptContext(Script script, Transition transition, Activity activity, TaskState.Mode callMode, @Nullable FormData data) Create script context for executing a script.@Nullable IDProviderReturns the element ornullfor tasks with no context element.@Nullable TransitionParametersReturns workflow transition parameters, if already set.@NotNull TaskgetTask()Get the task.getUser()Get the owner User of this WorkflowContext@Nullable WorkflowableGet StoreElement.@Nullable TransitionParametersselectManualTransition(Transition transition) Select manual workflow transition parameters (show dialog).voidCalled to send a email if a new task state is reached.voidsendEMail(Transition transition) Called to send a email on transition activation.
-
Method Details
-
getTask
Get the task.- Since:
- 4.0.120
-
getElement
Returns the element ornullfor tasks with no context element. The given element may be the same asgetWorkflowable()- Since:
- 5.0.207
-
getWorkflowable
Get StoreElement. May be null for tasks with no context and my be the same as the StoreElement.- Since:
- 4.0.120
-
getUser
User getUser()Get the owner User of this WorkflowContext- Since:
- 4.0.120
-
createWorkflowScriptContext
WorkflowScriptContext createWorkflowScriptContext(Script script, Transition transition, Activity activity, TaskState.Mode callMode, @Nullable @Nullable FormData data) Create script context for executing a script.- Since:
- 5.2.21
-
selectManualTransition
Select manual workflow transition parameters (show dialog). Return null if transition was canceled.- Since:
- 4.0.120
-
sendEMail
Called to send a email on transition activation.- Since:
- 4.0.120
-
sendEMail
Called to send a email if a new task state is reached.- Since:
- 4.0.120
-
getTargetTransition
Returns workflow transition parameters, if already set.- Returns:
- the selected transition parameters or null
- Since:
- 4.2.451
-