Class FcThrowExceptionExecutor
java.lang.Object
de.xima.fc.workflow.executor.FcThrowExceptionExecutor
- All Implemented Interfaces:
IWorkflowActionExecutor
Handler for executing a workflow action of type
EWorkflowNodeType.FC_THROW_EXCEPTION.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IWorkflowExecutionContextprotected final IWorkflowExecutionEnvironmentDataprotected static final org.slf4j.Loggerprotected final WorkflowNodeprotected final INodeExecutionParams<FcThrowExceptionProps> protected final FcThrowExceptionProps -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new executor for executing a return file action with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidaddSoftError(EFcThrowExceptionSoftError code, String message, Throwable cause) protected final Mandantclient()protected final NodeThrewExceptionprotected final NodeThrewExceptioncreateException(EFcThrowExceptionError code, String message) protected final NodeThrewExceptioncreateException(EFcThrowExceptionError code, String message, Throwable cause) protected final NodeThrewExceptioncreateException(EFcThrowExceptionError code, String message, Throwable cause, Object value) protected final NodeThrewExceptioncreateException(EFcThrowExceptionError code, String message, Throwable cause, Consumer<IRecordValueBuilder> errorData) protected final NodeThrewExceptioncreateException(EFcThrowExceptionError code, String message, Consumer<IRecordValueBuilder> errorData) protected final NodeThrewExceptioncreateException(EFcThrowExceptionError code, Throwable cause) protected final NodeThrewExceptioncreateException(EFcThrowExceptionError code, Throwable cause, Object value) protected final NodeThrewExceptioncreateExceptionWithData(EFcThrowExceptionError code, Throwable cause, Object errorData) protected final IEntityContextec()execute()Executes the workflow action, and creates the result.protected final Vorgangprotected final StringgetCombinedFileName(List<IResolvedFile> files, String defaultFileName, String extension) protected final Localelocale()protected final Projektproject()
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG -
ctx
-
env
-
node
-
params
-
props
-
-
Constructor Details
-
FcThrowExceptionExecutor
Creates a new executor for executing a return file action with the given parameters.- 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:IWorkflowActionExecutorExecutes 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.
-
addSoftError
-
client
-
createException
-
createException
-
createException
protected final NodeThrewException createException(EFcThrowExceptionError code, String message, Consumer<IRecordValueBuilder> errorData) -
createException
protected final NodeThrewException createException(EFcThrowExceptionError code, String message, Throwable cause) -
createException
protected final NodeThrewException createException(EFcThrowExceptionError code, String message, Throwable cause, Consumer<IRecordValueBuilder> errorData) -
createException
-
createException
protected final NodeThrewException createException(EFcThrowExceptionError code, Throwable cause, Object value) -
createException
protected final NodeThrewException createException(EFcThrowExceptionError code, String message, Throwable cause, Object value) -
createExceptionWithData
protected final NodeThrewException createExceptionWithData(EFcThrowExceptionError 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
-