public interface ProcessExecutionInfoContext
| Modifier and Type | Method and Description |
|---|---|
ProcessInstance |
getProcessInstance()
Returns information about the current process instance.
|
UserReference |
getProcessInstanceCreator()
Returns the creator of the current process instance.
|
ProcessInstanceKey |
getProcessInstanceKey()
Returns the current process instance Key.
|
Profile |
getProfileForPermission(ProcessExecutionContext.WorkflowPermission workflowPermission)
Returns the profile that is associated with the specified workflow permission.
|
PublishedProcessKey |
getPublishedProcessKey()
Returns the current publication key.
|
Repository |
getRepository()
Returns the current repository where this workflow is executed.
|
Session |
getSession()
Returns a system-user session (not an authenticated user session).
|
Repository getRepository()
Session getSession()
This is the case even for a UserTaskWorkItemCompletionContext.
Consequently, this session cannot be used for accessing
interactions properties.
If the returned session is used for executing
a Procedure, it is equivalent to a
ProcedureContext.setAllPrivileges(boolean):
all operations done within this session need no particular credentials.
Hence, it must be used with caution.
ProcessInstance getProcessInstance()
Returns null if
process instance is undefined.
The returned object is rebuilt at each call of this method.
ProcessInstanceKey getProcessInstanceKey()
Returns null if
process instance is undefined.
To get only the process instance key, it is recommended, for more efficiency, to use this method
instead of getProcessInstance().
PublishedProcessKey getPublishedProcessKey()
To get only the publication key, it is recommended, for more efficiency, to use this method
instead of getProcessInstance().
UserReference getProcessInstanceCreator()
Returns null if
process instance is undefined.
To get only the process instance creator, it is recommended, for more efficiency, to use this method
instead of getProcessInstance().
Profile getProfileForPermission(ProcessExecutionContext.WorkflowPermission workflowPermission)
null.ActionPermissionsOnWorkflow