Package de.xima.fc.workflow.executor
Class FcWhileLoopExecutor
- java.lang.Object
-
- de.xima.fc.workflow.executor.FcWhileLoopExecutor
-
- All Implemented Interfaces:
IWorkflowActionExecutor
public final class FcWhileLoopExecutor extends Object
Handler for executing a workflow node of typeEWorkflowNodeType.FC_WHILE_LOOP.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
Fields Modifier and Type Field Description static intCHILD_LOOP_BODYThe child that represents the body of the loop.protected IWorkflowExecutionContextctxprotected IWorkflowExecutionEnvironmentDataenvprotected static org.slf4j.LoggerLOGprotected WorkflowNodenodeprotected INodeExecutionParams<TData>paramsprotected TDataprops
-
Constructor Summary
Constructors Constructor Description FcWhileLoopExecutor(INodeExecutionParams<FcWhileLoopProps> params)Creates a new executor for executing a while loop node with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddSoftError(TSoftError code, String message)protected voidaddSoftError(TSoftError code, String message, Object data, Throwable cause)protected voidaddSoftError(TSoftError code, String message, Throwable cause)protected Mandantclient()protected NodeThrewExceptioncreateException(TError code)protected NodeThrewExceptioncreateException(TError code, String message)protected NodeThrewExceptioncreateException(TError code, String message, Throwable cause)protected NodeThrewExceptioncreateException(TError code, String message, Throwable cause, Consumer<IRecordValueBuilder> errorData)protected NodeThrewExceptioncreateException(TError code, String message, Consumer<IRecordValueBuilder> errorData)protected NodeThrewExceptioncreateException(TError code, Throwable cause)protected NodeThrewExceptioncreateException(TError code, Throwable cause, Consumer<IRecordValueBuilder> errorData)protected NodeThrewExceptioncreateException(TError code, Consumer<IRecordValueBuilder> errorData)protected NodeThrewExceptioncreateExceptionWithData(TError code, Throwable cause, Object errorData)protected IEntityContextec()INormalCompletionResultexecute()Executes the workflow action, and creates the result.protected VorgangformRecord()protected StringgetCombinedFileName(List<IResolvedFile> files, String defaultFileName, String extension)protected Localelocale()protected Projektproject()
-
-
-
Field Detail
-
CHILD_LOOP_BODY
public static final int CHILD_LOOP_BODY
The child that represents the body of the loop.- 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
-
FcWhileLoopExecutor
public FcWhileLoopExecutor(INodeExecutionParams<FcWhileLoopProps> params)
Creates a new executor for executing a while loop 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: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.AbstractAbruptCompletionException- When the action could not be completed normally for another reason (such as when it needs to return).
-
addSoftError
protected final void addSoftError(TSoftError code, String message)
-
addSoftError
protected final void addSoftError(TSoftError code, String message, Object data, Throwable cause)
-
client
protected final Mandant client()
-
createException
protected final NodeThrewException createException(TError code)
-
createException
protected final NodeThrewException createException(TError code, Consumer<IRecordValueBuilder> errorData)
-
createException
protected final NodeThrewException createException(TError code, String message)
-
createException
protected final 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)
-
createExceptionWithData
protected final NodeThrewException createExceptionWithData(TError code, Throwable cause, Object 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()
-
-