Package de.xima.fc.exceptions
Class NodeTransferredControlException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.xima.fc.exceptions.AbstractXfcException
-
- de.xima.fc.exceptions.WorkflowProcessingException
-
- de.xima.fc.exceptions.AbstractAbruptCompletionException
-
- de.xima.fc.exceptions.AbstractSuccessAbruptCompletionException
-
- de.xima.fc.exceptions.NodeTransferredControlException
-
- All Implemented Interfaces:
IXfcException,IBaseCompletionResult,IControlTransferringCompletionResult,ISuccessResultData,Serializable
public final class NodeTransferredControlException extends AbstractSuccessAbruptCompletionException implements IControlTransferringCompletionResult
Used by a node to indicate that the node completed abruptly by issuing a break or continue statement that jumps out of the current loop iteration.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNodeTransferredControlException.BuilderA simple builder for configuring aNodeTransferredControlException.
-
Constructor Summary
Constructors Constructor Description NodeTransferredControlException(NodeTransferredControlException.Builder builder)Creates a new exception that should be thrown when a node wishes to transfer control.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NodeTransferredControlException.Builderbuilder(WorkflowNode node)StringgetControlTransferType()NodeKeygetTargetNode()-
Methods inherited from class de.xima.fc.exceptions.AbstractSuccessAbruptCompletionException
getSoftErrors, getSuccessValue
-
Methods inherited from class de.xima.fc.exceptions.AbstractAbruptCompletionException
getAlwaysValue, getAttachmentValue, getFileValue, getNode
-
Methods inherited from class de.xima.fc.exceptions.WorkflowProcessingException
getDefaultErrorCode, getDefaultMessageKey
-
Methods inherited from class de.xima.fc.exceptions.AbstractXfcException
getErrorCode, getExceptionData, getLocalizedMessage, getMessageKey, getMessageParams
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.xima.fc.interfaces.workflow.execution.IBaseCompletionResult
getAlwaysValue, getAttachmentValue, getFileValue, getNode
-
Methods inherited from interface de.xima.fc.interfaces.workflow.execution.ISuccessResultData
getSoftErrors, getSuccessValue
-
-
-
-
Constructor Detail
-
NodeTransferredControlException
public NodeTransferredControlException(NodeTransferredControlException.Builder builder)
Creates a new exception that should be thrown when a node wishes to transfer control.- Parameters:
builder- Builder with the data to set.
-
-
Method Detail
-
getControlTransferType
public String getControlTransferType()
- Specified by:
getControlTransferTypein interfaceIControlTransferringCompletionResult- Returns:
- The type of control transfer, see
EStandardControlTransferTypefor a list of built-in transfer types.
-
getTargetNode
@Nullable public NodeKey getTargetNode()
- Specified by:
getTargetNodein interfaceIControlTransferringCompletionResult- Returns:
- Optional
node keyof the node which is targeted by the control transfer. Whennull, the closest node is targeted.
-
builder
public static NodeTransferredControlException.Builder builder(WorkflowNode node)
- Parameters:
node- The node that did finish execution.- Returns:
- A new builder for a
NodeTransferredControlException.
-
-