public interface UserTaskWorkItemCompletionContext extends ProcessExecutionContext, DataContext
work item completion
.UserTask
ProcessExecutionContext.WorkflowPermission
Modifier and Type | Method and Description |
---|---|
boolean |
checkAllWorkItemMatchStrategy()
Returns
true if the work items match the
completion strategy as it is defined by the method
getCompletionStrategyProperty() . |
void |
completeUserTask()
Method to call when we consider that the user task is completed
so that the token is asynchronously positioned to the next node in the process.
|
int |
countAcceptedWorkItems()
Returns the number of work items that have been accepted.
|
int |
countAllWorkItems()
Returns the total number of work items that have been created.
|
int |
countRejectedWorkItems()
Returns the number of work items that have been rejected.
|
int |
countStartedWorkItems()
Returns the number of work items that have been started.
|
UserTask.WorkItem |
getCompletedWorkItem()
Returns the state of the work item that has
just been completed.
|
UserTask.CompletionStrategy |
getCompletionStrategyProperty()
Returns the user task completion strategy.
|
int |
getRejectionThresholdProperty()
Returns the rejection threshold.
|
createMailSpec, getProcessInstanceDescription, getProcessInstanceLabel, modifyProcessPriority
getProcessInstance, getProcessInstanceCreator, getProcessInstanceKey, getProfileForPermission, getPublishedProcessKey, getRepository, getSession
setVariableString
getVariableNames, getVariableString, isVariableDefined
void completeUserTask() throws OperationException
This method must be called regardless of the user task mode.
OperationException
int countStartedWorkItems()
int countRejectedWorkItems()
int countAcceptedWorkItems()
int countAllWorkItems()
UserTask.WorkItem getCompletedWorkItem()
boolean checkAllWorkItemMatchStrategy()
true
if the work items match the
completion strategy as it is defined by the method
getCompletionStrategyProperty()
. When the user task is in
default mode (single work item), this method always returns true
.UserTask.CompletionStrategy getCompletionStrategyProperty()
The returned value corresponds to the property
"Termination/Completion Strategy",
as it is specified on the current task definition.
If this property is not specified, the default value is
UserTask.CompletionStrategy.ALL_WORK_ITEMS_ACCEPTED
.
When the user task is in default mode (single work item), this method always returns
UserTask.CompletionStrategy.ALL_WORK_ITEMS_COMPLETED
.
int getRejectionThresholdProperty()
The returned integer corresponds to the property "Termination/Rejection Threshold", as it is specified on the current task definition If this property is not specified, the default value is zero.
When user task is in default mode, this method always returns 1.