public interface WorkflowScriptContext extends GuiScriptContext
BaseContext.Env
Modifier and Type | Method and Description |
---|---|
void |
doTransition(String transitionName) |
void |
doTransition(Transition transition) |
TaskState.Mode |
getCallMode() |
Data |
getData() |
TaskErrorInfo |
getErrorInfo()
Returns error info object if gotoErrorState was called during this script execution or null.
|
Map<Object,Object> |
getSession()
The contents of this map will be held persistant during the whole workflow process
|
StoreElement |
getStoreElement()
Deprecated.
since 5.1.104, use
ClientScriptContext.getElement() |
Task |
getTask()
Return the task object.
|
Transition |
getTransition()
Return result transtion of the script excution.
|
TransitionParameters |
getTransitionParameters() |
Transition[] |
getTransitions()
Returns all Transitions allowed for the current user, which points FROM the underlying
activity . |
Workflowable |
getWorkflowable() |
WorkflowContext |
getWorkflowContext()
Return the current workflow context.
|
void |
gotoErrorState(String comment,
Throwable throwable) |
void |
sendEMail(String receivers,
String subject,
String message) |
Transition |
showActionDialog()
Show ActionDialog and forward all values (including the selected transition) to the
TransitionParameters
object for this Task , if a target transition is selected. |
getGuiHost, getScript, isOnHomePage, showForm, showForm, showForm, showGui, showGui, showGui, showGui
getElement, getUser, getUserGroups
getProject, getUserService
getConnection, getProperties, getProperty, logDebug, logError, logError, logInfo, logWarning, removeProperty, setProperty
is
requestSpecialist, requireSpecialist
static final int MANUAL
static final int AUTOMATIC
@Deprecated StoreElement getStoreElement()
ClientScriptContext.getElement()
getStoreElement
in interface ClientScriptContext
Workflowable
Transition showActionDialog()
TransitionParameters
object for this Task
, if a target transition is selected.doTransition(Transition)
afterwards. You can read and manipulate the
selected values by using the getTransitionParameters()
method.null
void doTransition(String transitionName) throws IllegalAccessException
IllegalAccessException
void doTransition(Transition transition) throws IllegalAccessException
IllegalAccessException
Data getData()
@NotNull Transition[] getTransitions()
activity
.TaskState.Mode getCallMode()
Map<Object,Object> getSession()
Workflowable getWorkflowable()
@Nullable Transition getTransition()
null
if no transition was made.TransitionParameters getTransitionParameters()
void gotoErrorState(@Nullable String comment, @Nullable Throwable throwable) throws IllegalStateException
IllegalStateException
- If the workflow has no error stateTaskErrorInfo getErrorInfo()
Task getTask()
@NotNull WorkflowContext getWorkflowContext()
Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408