Package de.xima.fc.workflow.model
Class WorkflowTaskRunnerParams
- java.lang.Object
-
- de.xima.fc.workflow.model.WorkflowTaskRunnerParams
-
- All Implemented Interfaces:
IWorkflowTaskRunnerParams
public final class WorkflowTaskRunnerParams extends Object implements IWorkflowTaskRunnerParams
POJO implementation ofIWorkflowTaskRunnerParamswith a builder.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkflowTaskRunnerParams.BuilderA builder for creating theIWorkflowTaskRunnerParams.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkflowTaskRunnerParams.Builderbuilder(Vorgang formRecord)MandantgetClient()EWorkflowStateTypegetDefaultSystemState()IFormDataAdaptergetFormDataAdapter()VorganggetFormRecord()IHttpContextDatagetHttpContextData()LocalegetLocale()ProjektgetProject()BenutzergetUser()WorkflowVersiongetWorkflowVersion()IXFormgetXForm()IXFormRenderConfiggetXFormRenderConfig()BooleanisAnonymize()booleanisUnsafeSkipFormRecordLock()Whether the form record should be locked for exclusive use, to ensure that a form record is not processed by multiple threads.
-
-
-
Method Detail
-
getClient
public Mandant getClient()
- Specified by:
getClientin interfaceIWorkflowTaskRunnerParams- Returns:
- The current client. This is required and must not be
null.
-
getDefaultSystemState
public EWorkflowStateType 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
public IFormDataAdapter getFormDataAdapter()
- Specified by:
getFormDataAdapterin interfaceIWorkflowTaskRunnerParams- Returns:
- The adapter containing the form data of the form record.
-
getFormRecord
public Vorgang getFormRecord()
- Specified by:
getFormRecordin interfaceIWorkflowTaskRunnerParams- Returns:
- Form record for which a task is to be executed.
-
getHttpContextData
public IHttpContextData getHttpContextData()
- Specified by:
getHttpContextDatain interfaceIWorkflowTaskRunnerParams- Returns:
- Data of the current HTTP request. When no HTTP request is active, this will contain dummy data.
-
getLocale
public Locale getLocale()
- Specified by:
getLocalein interfaceIWorkflowTaskRunnerParams- Returns:
- Locale to use for locale-sensitive operations.
-
getProject
public Projekt getProject()
- Specified by:
getProjectin interfaceIWorkflowTaskRunnerParams- Returns:
- The project to which the task belongs that is to be executed.
-
getUser
public Benutzer getUser()
- Specified by:
getUserin interfaceIWorkflowTaskRunnerParams- Returns:
- The user who initiated the workflow execution. May be an anonymous or system user, but must not be
null.
-
getWorkflowVersion
public WorkflowVersion getWorkflowVersion()
- Specified by:
getWorkflowVersionin interfaceIWorkflowTaskRunnerParams- Returns:
- The workflow version of the
Projekt.getWorkflowVersions()that is to be executed.
-
getXForm
public IXForm getXForm()
- Specified by:
getXFormin interfaceIWorkflowTaskRunnerParams- Returns:
- The form belonging to the form record.
-
getXFormRenderConfig
public IXFormRenderConfig getXFormRenderConfig()
- Specified by:
getXFormRenderConfigin interfaceIWorkflowTaskRunnerParams- Returns:
- The configuration that was used to render the form.
-
isAnonymize
public Boolean 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
public static WorkflowTaskRunnerParams.Builder builder(Vorgang formRecord)
- 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.
-
-