Class MistralTaskExecution
- java.lang.Object
-
- org.openstack4j.openstack.workflow.domain.BaseExecution
-
- org.openstack4j.openstack.workflow.domain.MistralTaskExecution
-
- All Implemented Interfaces:
Serializable,Buildable<ExecutionBuilder>,ModelEntity,Execution,TaskExecution
public class MistralTaskExecution extends BaseExecution implements TaskExecution
Mistral task execution.- Author:
- Renat Akhmerov
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMistralTaskExecution.MistralTaskExecutionBuilderMistral task execution builder.static classMistralTaskExecution.MistralTaskExecutions-
Nested classes/interfaces inherited from class org.openstack4j.openstack.workflow.domain.BaseExecution
BaseExecution.BaseExecutionBuilder<T extends ExecutionBuilder<T,M>,M extends BaseExecution>
-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Constructor Summary
Constructors Constructor Description MistralTaskExecution()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MistralTaskExecution.MistralTaskExecutionBuilderbuilder()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()MistralTaskExecution.MistralTaskExecutionBuildertoBuilder()StringtoString()-
Methods inherited from class org.openstack4j.openstack.workflow.domain.BaseExecution
getCreatedAt, getDescription, getId, getState, getStateInfo, getTags, getUpdatedAt, getWorkflowName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openstack4j.model.workflow.Execution
getCreatedAt, getDescription, getId, getState, getStateInfo, getTags, getUpdatedAt, getWorkflowName
-
-
-
-
Method Detail
-
builder
public static MistralTaskExecution.MistralTaskExecutionBuilder builder()
-
toBuilder
public MistralTaskExecution.MistralTaskExecutionBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<ExecutionBuilder>
-
getName
public String getName()
- Specified by:
getNamein interfaceTaskExecution- Returns:
- The task name.
-
getType
public String getType()
Description copied from interface:TaskExecutionTODO: do we need a enum for task types?- Specified by:
getTypein interfaceTaskExecution- Returns:
- The task type.
-
getWorkflowDefinitionId
public String getWorkflowDefinitionId()
- Specified by:
getWorkflowDefinitionIdin interfaceTaskExecution- Returns:
- The ID of the workflow definition that this task belongs to.
-
getWorkflowExecutionId
public String getWorkflowExecutionId()
- Specified by:
getWorkflowExecutionIdin interfaceTaskExecution- Returns:
- The ID of the workflow execution that this task belongs to.
-
getRuntimeContext
public Map<String,Object> getRuntimeContext()
- Specified by:
getRuntimeContextin interfaceTaskExecution- Returns:
- The runtime context of the task.
-
getResult
public Object getResult()
- Specified by:
getResultin interfaceTaskExecution- Returns:
- The result of this task.
-
getPublished
public Map<String,Object> getPublished()
- Specified by:
getPublishedin interfaceTaskExecution- Returns:
- The variables published into workflow context by this task.
-
isProcessed
public Boolean isProcessed()
- Specified by:
isProcessedin interfaceTaskExecution- Returns:
Trueif this task is fully processed (all decisions made based on its result).
-
isReset
public Boolean isReset()
- Specified by:
isResetin interfaceTaskExecution- Returns:
Trueif "reset" flag of the task execution is set and its action executions should be dropped when rerunning the task.
-
getEnvironment
public Map<String,Object> getEnvironment()
- Specified by:
getEnvironmentin interfaceTaskExecution- Returns:
- The environment of the task execution.
-
-