Class WorkflowNodeResult
- java.lang.Object
 - 
- de.xima.fc.workflow.processor.model.WorkflowNodeResult
 
 
- 
- All Implemented Interfaces:
 IWorkflowNodeResult
public final class WorkflowNodeResult extends Object implements IWorkflowNodeResult
POJO implementation ofIWorkflowNodeResult.- Since:
 - 7.0.0
 - Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractAbruptCompletionExceptiongetAbruptCompletionException()ENodeCompletionTypegetCompletionType()INormalCompletionResultgetNormalCompletionResult()static IWorkflowNodeResultnormal(INormalCompletionResult result)static IWorkflowNodeResultnormalEmpty()static IWorkflowNodeResultreturning(NodeReturnedException e)static IWorkflowNodeResultthrowing(NodeThrewException e)- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface de.xima.fc.interfaces.workflow.execution.IWorkflowNodeResult
getAlwaysResultValue, getErrorResultData, getFileValue, getNode, getReturningException, getSoftErrors, getSuccessResultData, getSuccessResultValue, getThrowingException, isHasHardError, isHasSoftErrors, isHasSoftOrHardErrors, isWasSuccessful 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getCompletionType
public ENodeCompletionType getCompletionType()
- Specified by:
 getCompletionTypein interfaceIWorkflowNodeResult- Returns:
 - How the execution of the workflow node completed.
 
 
- 
getAbruptCompletionException
public AbstractAbruptCompletionException getAbruptCompletionException()
- Specified by:
 getAbruptCompletionExceptionin interfaceIWorkflowNodeResult- Returns:
 - The exception that was thrown by the workflow node, or 
nullwhen the node did not complete abruptly. - See Also:
 IWorkflowNodeResult.getCompletionType()
 
- 
getNormalCompletionResult
public INormalCompletionResult getNormalCompletionResult()
- Specified by:
 getNormalCompletionResultin interfaceIWorkflowNodeResult- Returns:
 - The result returned by the workflow node upon execution, or 
nullwhen the node did not complete normally. - See Also:
 IWorkflowNodeResult.getCompletionType()
 
- 
normal
public static IWorkflowNodeResult normal(INormalCompletionResult result)
- Parameters:
 result- Result obtained after a node was executed successfully.- Returns:
 - A new node result for a successful execution.
 
 
- 
throwing
public static IWorkflowNodeResult throwing(NodeThrewException e)
- Parameters:
 e- Exception that occurred and cause the node's execution to fail.- Returns:
 - A new node result for a failed execution.
 
 
- 
returning
public static IWorkflowNodeResult returning(NodeReturnedException e)
- Parameters:
 e- Returning exception issued by the node.- Returns:
 - A new node result for a successful execution of a node that wishes to issue a return statement.
 
 
- 
normalEmpty
public static IWorkflowNodeResult normalEmpty()
- Returns:
 - A new node result for a successful execution with no content.
 
 
 - 
 
 -