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 classA builder for creating theIWorkflowTaskRunnerParams. -
Method Summary
-
Method Details
-
getClient
- Specified by:
getClientin interfaceIWorkflowTaskRunnerParams- Returns:
- The current client. This is required and must not be
null.
-
getClock
- Specified by:
getClockin interfaceIWorkflowTaskRunnerParams- Returns:
- The clock to use for obtaining the current time.
-
getDefaultSystemState
- Specified by:
getDefaultSystemStatein 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:
getFormDataAdapterin interfaceIWorkflowTaskRunnerParams- Returns:
- The adapter containing the form data of the form record.
-
getFormRecord
- Specified by:
getFormRecordin interfaceIWorkflowTaskRunnerParams- Returns:
- Form record for which a task is to be executed.
-
getFormRecordLockContext
- Specified by:
getFormRecordLockContextin interfaceIWorkflowTaskRunnerParams- Returns:
- the context that is locking the form record. May be
null
-
getHttpContextData
- Specified by:
getHttpContextDatain interfaceIWorkflowTaskRunnerParams- Returns:
- Data of the current HTTP request. When no HTTP request is active, this will contain dummy data.
-
getLocale
- Specified by:
getLocalein interfaceIWorkflowTaskRunnerParams- Returns:
- Locale to use for locale-sensitive operations.
-
getProject
- Specified by:
getProjectin interfaceIWorkflowTaskRunnerParams- Returns:
- The project to which the task belongs that is to be executed.
-
getUser
Deprecated.UsegetUserModel()instead.- Specified by:
getUserin interfaceIWorkflowTaskRunnerParams- Returns:
- The user who initiated the workflow.
-
getUserModel
- Specified by:
getUserModelin 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:IWorkflowTaskRunnerParamsCallback that is invoked after the workflow was executed. Lets you modify the workflow execution state before the final result is created.- Specified by:
getWorkflowExecutionPostProcessorsin interfaceIWorkflowTaskRunnerParams- Returns:
- Post processor to apply, may be
nullor empty.
-
getWorkflowVersion
- Specified by:
getWorkflowVersionin interfaceIWorkflowTaskRunnerParams- Returns:
- The workflow version of the
Projekt.getWorkflowVersions()that is to be executed.
-
getXForm
- Specified by:
getXFormin interfaceIWorkflowTaskRunnerParams- Returns:
- The form belonging to the form record.
-
getXFormRenderConfig
- Specified by:
getXFormRenderConfigin interfaceIWorkflowTaskRunnerParams- Returns:
- The configuration that was used to render the form.
-
isAnonymize
- Specified by:
isAnonymizein interfaceIWorkflowTaskRunnerParams- Returns:
trueif data related to individual persons or users must be anonymized. Whennull, an appropriate default is used: (truewhen theProjekt.isAnonymize()requires it, orfalseotherwise.)
-
isUnsafeSkipFormRecordLock
public boolean isUnsafeSkipFormRecordLock()Description copied from interface:IWorkflowTaskRunnerParamsWhether 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:
isUnsafeSkipFormRecordLockin interfaceIWorkflowTaskRunnerParams- Returns:
trueto skip locking, orfalseto 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.