Package de.xima.fc.workflow.model
Class WorkflowTaskRunnerParams
java.lang.Object
de.xima.fc.workflow.model.WorkflowTaskRunnerParams
- All Implemented Interfaces:
IWorkflowTaskRunnerParams
POJO implementation of
IWorkflowTaskRunnerParams
with a builder.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A builder for creating theIWorkflowTaskRunnerParams
. -
Method Summary
-
Method Details
-
getClient
- Specified by:
getClient
in interfaceIWorkflowTaskRunnerParams
- Returns:
- The current client. This is required and must not be
null
.
-
getClock
- Specified by:
getClock
in interfaceIWorkflowTaskRunnerParams
- Returns:
- The clock to use for obtaining the current time.
-
getDefaultSystemState
- Specified by:
getDefaultSystemState
in interfaceIWorkflowTaskRunnerParams
- Returns:
- The default state to be set on a form record when, after workflow processing is complete, the
Vorgang.getCurrentWorkflowState()
is stillnull
. Must not beEWorkflowStateType.CUSTOM
(as that is not a system state).
-
getFormDataAdapter
- Specified by:
getFormDataAdapter
in interfaceIWorkflowTaskRunnerParams
- Returns:
- The adapter containing the form data of the form record.
-
getFormRecord
- Specified by:
getFormRecord
in interfaceIWorkflowTaskRunnerParams
- Returns:
- Form record for which a task is to be executed.
-
getFormRecordLockContext
- Specified by:
getFormRecordLockContext
in interfaceIWorkflowTaskRunnerParams
- Returns:
- the context that is locking the form record. May be
null
-
getHttpContextData
- Specified by:
getHttpContextData
in interfaceIWorkflowTaskRunnerParams
- Returns:
- Data of the current HTTP request. When no HTTP request is active, this will contain dummy data.
-
getLocale
- Specified by:
getLocale
in interfaceIWorkflowTaskRunnerParams
- Returns:
- Locale to use for locale-sensitive operations.
-
getProject
- Specified by:
getProject
in interfaceIWorkflowTaskRunnerParams
- Returns:
- The project to which the task belongs that is to be executed.
-
getUser
Deprecated.UsegetUserModel()
instead.- Specified by:
getUser
in interfaceIWorkflowTaskRunnerParams
- Returns:
- The user who initiated the workflow.
-
getUserModel
- Specified by:
getUserModel
in interfaceIWorkflowTaskRunnerParams
- Returns:
- The user who initiated the workflow execution. May be an anonymous or system user, but must not be
null
.
-
getWorkflowExecutionPostProcessors
Description copied from interface:IWorkflowTaskRunnerParams
Callback that is invoked after the workflow was executed. Lets you modify the workflow execution state before the final result is created.- Specified by:
getWorkflowExecutionPostProcessors
in interfaceIWorkflowTaskRunnerParams
- Returns:
- Post processor to apply, may be
null
or empty.
-
getWorkflowVersion
- Specified by:
getWorkflowVersion
in interfaceIWorkflowTaskRunnerParams
- Returns:
- The workflow version of the
Projekt.getWorkflowVersions()
that is to be executed.
-
getXForm
- Specified by:
getXForm
in interfaceIWorkflowTaskRunnerParams
- Returns:
- The form belonging to the form record.
-
getXFormRenderConfig
- Specified by:
getXFormRenderConfig
in interfaceIWorkflowTaskRunnerParams
- Returns:
- The configuration that was used to render the form.
-
isAnonymize
- Specified by:
isAnonymize
in interfaceIWorkflowTaskRunnerParams
- Returns:
true
if data related to individual persons or users must be anonymized. Whennull
, an appropriate default is used: (true
when theProjekt.isAnonymize()
requires it, orfalse
otherwise.)
-
isUnsafeSkipFormRecordLock
public boolean isUnsafeSkipFormRecordLock()Description copied from interface:IWorkflowTaskRunnerParams
Whether the form record should be locked for exclusive use, to ensure that a form record is not processed by multiple threads. This should normally be left at the defaultfalse
.- Specified by:
isUnsafeSkipFormRecordLock
in interfaceIWorkflowTaskRunnerParams
- Returns:
true
to skip locking, orfalse
to lock the form record for exclusive use before executing a task.
-
builder
- Parameters:
formRecord
- Form record for which a task is to be executed. Must not benull
.- Returns:
- A new builder for executing a task of the given form record.
-
getUserModel()
instead.