Package de.xima.fc.workflow.executor
Class FcMultipleConditionExecutor
java.lang.Object
de.xima.fc.workflow.executor.FcMultipleConditionExecutor
- All Implemented Interfaces:
IWorkflowActionExecutor
Handler for executing a workflow node of type
EWorkflowNodeType.FC_MULTIPLE_CONDITION
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The child that represents the else-block.static final int
The child that represents the if-block.protected final IWorkflowExecutionContext
protected final IWorkflowExecutionEnvironmentData
protected static final org.slf4j.Logger
protected final WorkflowNode
protected final INodeExecutionParams<FcMultipleConditionProps>
protected final FcMultipleConditionProps
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new executor for executing a multiple condition node with the given params. -
Method Summary
Modifier and TypeMethodDescriptionprotected final Mandant
client()
protected final <T> NodeThrewException
protected final <T> NodeThrewException
createException
(EFcMultipleConditionError code, String message) protected final NodeThrewException
createException
(EFcMultipleConditionError code, String message, Throwable cause) protected final NodeThrewException
createException
(EFcMultipleConditionError code, String message, Throwable cause, Consumer<IRecordValueBuilder> errorData) protected final <T> NodeThrewException
createException
(EFcMultipleConditionError code, String message, Consumer<IRecordValueBuilder> errorData) protected final NodeThrewException
createException
(EFcMultipleConditionError code, Throwable cause) protected final NodeThrewException
createException
(EFcMultipleConditionError code, Throwable cause, Consumer<IRecordValueBuilder> errorData) protected final <T> NodeThrewException
createException
(EFcMultipleConditionError code, Consumer<IRecordValueBuilder> errorData) protected final NodeThrewException
createExceptionWithData
(EFcMultipleConditionError code, Throwable cause, Object errorData) protected final IEntityContext
ec()
execute()
Executes the workflow action, and creates the result.protected final Vorgang
protected final String
getCombinedFileName
(List<IResolvedFile> files, String defaultFileName, String extension) protected final Locale
locale()
protected final Projekt
project()
-
Field Details
-
CHILD_ALTERNATE
public static final int CHILD_ALTERNATEThe child that represents the else-block.- See Also:
-
CHILD_CONSEQUENT
public static final int CHILD_CONSEQUENTThe child that represents the if-block.- See Also:
-
LOG
protected static final org.slf4j.Logger LOG -
ctx
-
env
-
node
-
params
-
props
-
-
Constructor Details
-
FcMultipleConditionExecutor
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 Details
-
execute
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
-
createException
-
createException
protected final <T> NodeThrewException createException(EFcMultipleConditionError code, Consumer<IRecordValueBuilder> errorData) -
createException
protected final <T> NodeThrewException createException(EFcMultipleConditionError code, String message) -
createException
protected final <T> NodeThrewException createException(EFcMultipleConditionError code, String message, Consumer<IRecordValueBuilder> errorData) -
createException
protected final NodeThrewException createException(EFcMultipleConditionError code, String message, Throwable cause) -
createException
protected final NodeThrewException createException(EFcMultipleConditionError code, String message, Throwable cause, Consumer<IRecordValueBuilder> errorData) -
createException
-
createException
protected final NodeThrewException createException(EFcMultipleConditionError code, Throwable cause, Consumer<IRecordValueBuilder> errorData) -
createExceptionWithData
protected final NodeThrewException createExceptionWithData(EFcMultipleConditionError code, Throwable cause, Object errorData) -
ec
-
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
-
project
-