Package de.xima.fc.workflow.executor
Class FcMultipleConditionExecutor
- java.lang.Object
-
- de.xima.fc.workflow.executor.FcMultipleConditionExecutor
-
- All Implemented Interfaces:
IWorkflowActionExecutor
public final class FcMultipleConditionExecutor extends Object
Handler for executing a workflow node of typeEWorkflowNodeType.FC_MULTIPLE_CONDITION
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
Fields Modifier and Type Field Description static int
CHILD_ALTERNATE
The child that represents the else-block.static int
CHILD_CONSEQUENT
The child that represents the if-block.protected IWorkflowExecutionContext
ctx
protected IWorkflowExecutionEnvironmentData
env
protected static org.slf4j.Logger
LOG
protected WorkflowNode
node
protected INodeExecutionParams<TData>
params
protected TData
props
-
Constructor Summary
Constructors Constructor Description FcMultipleConditionExecutor(INodeExecutionParams<FcMultipleConditionProps> params)
Creates a new executor for executing a multiple condition node with the given params.
-
Method Summary
-
-
-
Field Detail
-
CHILD_ALTERNATE
public static final int CHILD_ALTERNATE
The child that represents the else-block.- See Also:
- Constant Field Values
-
CHILD_CONSEQUENT
public static final int CHILD_CONSEQUENT
The child that represents the if-block.- See Also:
- Constant Field Values
-
LOG
protected static final org.slf4j.Logger LOG
-
ctx
protected final IWorkflowExecutionContext ctx
-
env
protected final IWorkflowExecutionEnvironmentData env
-
node
protected final WorkflowNode node
-
params
protected final INodeExecutionParams<TData> params
-
props
protected final TData props
-
-
Constructor Detail
-
FcMultipleConditionExecutor
public FcMultipleConditionExecutor(INodeExecutionParams<FcMultipleConditionProps> params)
Creates a new executor for executing a multiple condition node with the given params.- Parameters:
params
- Parameters as provided the node handler, with the environment data and the action's properties model.
-
-
Method Detail
-
execute
public INormalCompletionResult execute() throws AbstractAbruptCompletionException
Description copied from interface:IWorkflowActionExecutor
Executes the workflow action, and creates the result.- Returns:
- The success result to be returned by the post action.
- Throws:
NodeThrewException
- When the workflow action failed, as described byTError
.AbstractAbruptCompletionException
- When the action could not be completed normally for another reason (such as when it needs to return).
-
client
protected final Mandant client()
-
createException
protected final <T> NodeThrewException createException(TError code)
-
createException
protected final <T> NodeThrewException createException(TError code, Consumer<IRecordValueBuilder> errorData)
-
createException
protected final <T> NodeThrewException createException(TError code, String message)
-
createException
protected final <T> NodeThrewException createException(TError code, String message, Consumer<IRecordValueBuilder> errorData)
-
createException
protected final NodeThrewException createException(TError code, String message, Throwable cause)
-
createException
protected final NodeThrewException createException(TError code, String message, Throwable cause, Consumer<IRecordValueBuilder> errorData)
-
createException
protected final NodeThrewException createException(TError code, Throwable cause)
-
createException
protected final NodeThrewException createException(TError code, Throwable cause, Consumer<IRecordValueBuilder> errorData)
-
ec
protected final IEntityContext ec()
-
formRecord
protected final Vorgang formRecord()
-
getCombinedFileName
protected final String getCombinedFileName(List<IResolvedFile> files, String defaultFileName, String extension)
- Parameters:
files
- File names to combine.defaultFileName
- Default file name to use.extension
- Extension of the combined file name.- Returns:
- A file name with the given extension. When there is exactly one input file, the name of that file is taken, otherwise the default file name is used.
-
locale
protected final Locale locale()
-
project
protected final Projekt project()
-
-