Package org.openstack4j.model.workflow
Interface TaskExecution
-
- All Superinterfaces:
Buildable<ExecutionBuilder>,Execution,ModelEntity,Serializable
- All Known Implementing Classes:
MistralTaskExecution
public interface TaskExecution extends Execution
A task execution.- Author:
- Renat Akhmerov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Object>getEnvironment()StringgetName()Map<String,Object>getPublished()ObjectgetResult()Map<String,Object>getRuntimeContext()StringgetType()TODO: do we need a enum for task types?StringgetWorkflowDefinitionId()StringgetWorkflowExecutionId()BooleanisProcessed()BooleanisReset()-
Methods inherited from interface org.openstack4j.model.workflow.Execution
getCreatedAt, getDescription, getId, getState, getStateInfo, getTags, getUpdatedAt, getWorkflowName
-
-
-
-
Method Detail
-
getName
String getName()
- Returns:
- The task name.
-
getType
String getType()
TODO: do we need a enum for task types?- Returns:
- The task type.
-
getWorkflowDefinitionId
String getWorkflowDefinitionId()
- Returns:
- The ID of the workflow definition that this task belongs to.
-
getWorkflowExecutionId
String getWorkflowExecutionId()
- Returns:
- The ID of the workflow execution that this task belongs to.
-
getResult
Object getResult()
- Returns:
- The result of this task.
-
getPublished
Map<String,Object> getPublished()
- Returns:
- The variables published into workflow context by this task.
-
isProcessed
Boolean isProcessed()
- Returns:
Trueif this task is fully processed (all decisions made based on its result).
-
isReset
Boolean isReset()
- Returns:
Trueif "reset" flag of the task execution is set and its action executions should be dropped when rerunning the task.
-
-