Package com.mendix.workflows
Interface WorkflowActivityRecord
public interface WorkflowActivityRecord
Represents a snapshot of a workflow activity.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the key that uniquely identifies the workflow activity instance.getActor()
Returns the user that performed the action to the workflow activity instance (if any), such as completing it.Returns the caption of the workflow activity instance.Returns the end time of the workflow activity instance (if any).Returns the microflow name for the workflow activity instance (if any).Returns the identifier in the model that uniquely identifies the workflow activity definition.Returns the outcome value of the workflow activity instance (if any).Returns the key that uniquely identifies the previous activity instance (if any).Returns the reason why the workflow activity instance failed or was aborted (if any).Returns the start time of the workflow activity instance.getState()
Returns the execution status of the workflow activity instance.Optional
<? extends WorkflowRecord> Returns the record of a sub-workflow for the workflow activity instance (if any).Returns the user task completion type of the workflow activity instance (if any).Returns the task description for the workflow activity instance (if any).Returns the time when the workflow activity instance is due (if any).Returns the key that uniquely identifies the (user) task for this activity instance (if any).Returns the task name for the workflow activity instance (if any).Returns the required number of targeted users that need to contribute to the user task (if any).getType()
Returns the workflow activity type of the workflow activity instance.Returns the user task instance of the workflow activity instance (if any).Optional
<? extends IMendixObject> Returns the user task definition of the workflow activity instance (if any).
-
Method Details
-
getModelGUID
UUID getModelGUID()Returns the identifier in the model that uniquely identifies the workflow activity definition. This identifier is stable across all instances of the same activity. If the activity is a user task, then the identifier is the same as theModelGUID
attribute of theSystem.WorkflowUserTaskDefinition
entity. For other activities there is no corresponding attribute. Note that it does not relate to theModelGUID
attributes of theSystem.WorkflowDefinition
entity in any way.- Returns:
- the workflow activity GUID in the model
-
getActivityKey
String getActivityKey()Returns the key that uniquely identifies the workflow activity instance. The value is the same asWorkflowActivity.getKey()
.The value cannot and should not be used for retrieving activities from the database.
- Returns:
- the workflow activity key
-
getPreviousActivityKey
Returns the key that uniquely identifies the previous activity instance (if any).- Returns:
- the key of the previous activity instance, or
Optional.empty()
if the activity instance is a Start activity
-
getType
WorkflowActivityType getType()Returns the workflow activity type of the workflow activity instance.- Returns:
- the type
WorkflowActivityType
-
getCaption
String getCaption()Returns the caption of the workflow activity instance.- Returns:
- the caption
-
getState
WorkflowActivityExecutionState getState()Returns the execution status of the workflow activity instance.- Returns:
- the status
WorkflowActivityExecutionState
-
getStartTime
Date getStartTime()Returns the start time of the workflow activity instance.- Returns:
- the start time
-
getEndTime
Returns the end time of the workflow activity instance (if any).- Returns:
- the end time, or
Optional.empty()
if not finished
-
getOutcome
Returns the outcome value of the workflow activity instance (if any).- Returns:
- the selected outcome, or
Optional.empty()
if the activity instance is not completed
-
getMicroflowName
Returns the microflow name for the workflow activity instance (if any).- Returns:
- the microflow name, or
Optional.empty()
if the activity instance is not a Call Microflow activity}
-
getTaskName
Returns the task name for the workflow activity instance (if any).- Returns:
- the task name, or
Optional.empty()
if the activity instance is not an active User Task activity
-
getTaskDescription
Returns the task description for the workflow activity instance (if any).- Returns:
- the task description, or
Optional.empty()
if the activity instance is not an active User Task activity
-
getTaskDueDate
Returns the time when the workflow activity instance is due (if any).- Returns:
- the due date, or
Optional.empty()
if the activity instance is not an active User Task activity or has no due date
-
getReason
Returns the reason why the workflow activity instance failed or was aborted (if any).- Returns:
- the reason, or
Optional.empty()
if not reason is set
-
getTaskCompletionType
Optional<UserTaskCompletionType> getTaskCompletionType()Returns the user task completion type of the workflow activity instance (if any).- Returns:
- the task completion type, or
Optional.empty()
if the activity instance is not an active User Task activity
-
getTaskRequiredUsers
Returns the required number of targeted users that need to contribute to the user task (if any).- Returns:
- the task completion type, or
Optional.empty()
if the activity instance is not an active User Task activity
-
getTaskKey
Returns the key that uniquely identifies the (user) task for this activity instance (if any). The value is the same asUserTask.getKey()
.The value cannot and should not be used for retrieving user tasks from the database.
- Returns:
- the user task key
-
getActor
Returns the user that performed the action to the workflow activity instance (if any), such as completing it.- Returns:
- the user object that performed the action, or
Optional.empty()
is no user actions has been taken
-
getSubWorkflow
Optional<? extends WorkflowRecord> getSubWorkflow()Returns the record of a sub-workflow for the workflow activity instance (if any).- Returns:
- the sub-workflow record, or
Optional.empty()
if the activity instance is not a Call Workflow activity
-
getUserTask
Returns the user task instance of the workflow activity instance (if any).- Returns:
- the corresponding user task instance, or
Optional.empty()
if the activity instance is not an active User Task activity
-
getUserTaskDefinition
Optional<? extends IMendixObject> getUserTaskDefinition()Returns the user task definition of the workflow activity instance (if any).- Returns:
- the user task definition, or
Optional.empty()
if the activity instance is not an active User Task activity
-