Class NormalCompletionResult
- java.lang.Object
-
- de.xima.fc.workflow.processor.model.NormalCompletionResult
-
- All Implemented Interfaces:
INormalCompletionResult
public final class NormalCompletionResult extends Object implements INormalCompletionResult
POJO implementation ofINormalCompletionResult.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description NormalCompletionResult(WorkflowNode node, Object alwaysValue, Object successValue, IWorkflowFileValue fileValue)Creates a new POJO with the given data.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static INormalCompletionResultempty()ObjectgetAlwaysValue()IWorkflowFileValuegetFileValue()WorkflowNodegetNode()ObjectgetSuccessValue()
-
-
-
Constructor Detail
-
NormalCompletionResult
public NormalCompletionResult(WorkflowNode node, Object alwaysValue, Object successValue, IWorkflowFileValue fileValue)
Creates a new POJO with the given data.- Parameters:
node- The value returned byINormalCompletionResult.getNode()alwaysValue- The value returned byINormalCompletionResult.getAlwaysValue()successValue- The value returned byINormalCompletionResult.getSuccessValue()fileValue- The value returned byINormalCompletionResult.getFileValue()
-
-
Method Detail
-
getAlwaysValue
public Object getAlwaysValue()
- Specified by:
getAlwaysValuein interfaceINormalCompletionResult- Returns:
- The value that is always returned, whether or not the node completed normally. Must conform to the
IExecutionResultDescriptor.getAlwaysValueDescriptor(IValueDescriptorFactory)IExecutionResultDescriptor#getAlwaysValueDescriptor.
-
getFileValue
public IWorkflowFileValue getFileValue()
- Specified by:
getFileValuein interfaceINormalCompletionResult- Returns:
- The file returned by the node when executed normally. Must conform to the
IExecutionResultDescriptor.getFileValueDescriptor().
-
getNode
public WorkflowNode getNode()
- Specified by:
getNodein interfaceINormalCompletionResult- Returns:
- The node that created this result. May be
nullwhen no node is associated with this result.
-
getSuccessValue
public Object getSuccessValue()
- Specified by:
getSuccessValuein interfaceINormalCompletionResult- Returns:
- The value that is returned when node completed normally. Must conform to the
IExecutionResultDescriptor.getSuccessValueDescriptor(IValueDescriptorFactory)IExecutionResultDescriptor#getSuccessValueDescriptor.
-
empty
public static INormalCompletionResult empty()
- Returns:
- An empty success result with no data.
-
-