public interface UserTaskBeforeWorkItemCompletionContext extends ProcessExecutionContext, DataContextReadOnly
UserTask.checkBeforeWorkItemCompletion(UserTaskBeforeWorkItemCompletionContext)
ProcessExecutionContext.WorkflowPermission
Modifier and Type | Method and Description |
---|---|
Session |
getSession()
Returns the authenticated session of the user who is doing the current interaction.
|
boolean |
isAcceptAction()
Returns
true if the incoming action is an 'accept',
returns false if it is a 'reject'. |
void |
reportMessage(UserMessage anErrorMessage)
Blocks the 'accept' or the 'reject' action of the end user and reports
the specified error message.
|
createMailSpec, getProcessInstanceDescription, getProcessInstanceLabel, modifyProcessPriority
getProcessInstance, getProcessInstanceCreator, getProcessInstanceKey, getProfileForPermission, getPublishedProcessKey, getRepository
getVariableNames, getVariableString, isVariableDefined
void reportMessage(UserMessage anErrorMessage)
This method can be invoked multiple times, in order to display multiple messages in the message box.
IllegalArgumentException
- if the specified message is not of the severity ERROR
.boolean isAcceptAction()
true
if the incoming action is an 'accept',
returns false
if it is a 'reject'.Session getSession()
The returned session is in a read-only state, meaning that the interaction's parameters cannot be modified.
getSession
in interface ProcessExecutionInfoContext
InteractionHelper.ParametersMap.setVariableString(String, String)
,
SessionInteraction.getInternalParameters()