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 INormalCompletionResult
empty()
Object
getAlwaysValue()
IWorkflowFileValue
getFileValue()
WorkflowNode
getNode()
Object
getSuccessValue()
-
-
-
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:
getAlwaysValue
in 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:
getFileValue
in interfaceINormalCompletionResult
- Returns:
- The file returned by the node when executed normally. Must conform to the
IExecutionResultDescriptor.getFileValueDescriptor()
.
-
getNode
public WorkflowNode getNode()
- Specified by:
getNode
in interfaceINormalCompletionResult
- Returns:
- The node that created this result. May be
null
when no node is associated with this result.
-
getSuccessValue
public Object getSuccessValue()
- Specified by:
getSuccessValue
in 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.
-
-