Interface IWorkflowExecutionEnvironmentData
-
- All Superinterfaces:
IBaseEnvironmentData
,IBaseWorkflowEnvironmentData
public interface IWorkflowExecutionEnvironmentData extends IBaseWorkflowEnvironmentData
Data related to the current workflow execution, such as the form record or the locale.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description Clock
getClock()
default Benutzer
getEffectiveUser()
Deprecated.UsegetEffectiveUserModel()
instead.default IUser
getEffectiveUserModel()
IFormDataAdapter
getFormDataAdapter()
Gets theIFormDataAdapter
for the current form record that can be used to access the current form data.Vorgang
getFormRecord()
IFormDataAdapter
getRawFormDataAdapter()
UsegetFormDataAdapter()
unless you know what you are doing.IXForm
getXForm()
IXFormRenderConfig
getXFormRenderConfig()
boolean
isAnonymize()
-
Methods inherited from interface de.xima.fc.interfaces.workflow.execution.IBaseEnvironmentData
getClient, getEntityContext, getLocale, getUser, getUserModel
-
Methods inherited from interface de.xima.fc.interfaces.workflow.params.IBaseWorkflowEnvironmentData
getProject, getWorkflowVersion
-
-
-
-
Method Detail
-
getClock
Clock getClock()
- Returns:
- The clock to use for obtaining the current time.
- Since:
- 8.0.0
-
getEffectiveUser
@Deprecated default Benutzer getEffectiveUser()
Deprecated.UsegetEffectiveUserModel()
instead.- Returns:
- An anonymous user when
isAnonymize()
is set totrue
, or the actualIBaseEnvironmentData.getUser()
otherwise.
-
getEffectiveUserModel
default IUser getEffectiveUserModel()
- Returns:
- An anonymous user when
isAnonymize()
is set totrue
, or the actualIBaseEnvironmentData.getUserModel()
otherwise.
-
getFormDataAdapter
IFormDataAdapter getFormDataAdapter()
Gets theIFormDataAdapter
for the current form record that can be used to access the current form data. Note that changes to the form data (IFormDataAdapter.getRequestDataMap()
are saved automatically when workflow execution finishes and the form record is saved to the database. UseIWorkflowFormHandler.persistFormRecord()
if you need to save the changes immediately.- Returns:
- The adapter for accessing stored form data.
- See Also:
getRawFormDataAdapter()
-
getRawFormDataAdapter
IFormDataAdapter getRawFormDataAdapter()
UsegetFormDataAdapter()
unless you know what you are doing.Similar to
getFormDataAdapter()
, but provides access to the raw form data.For exampling, when iterating over a repeated form element (or repeated container) via a loop workflow node,
getFormDataAdapter()
will only return the value for the current repetition.Normally you should use
getFormDataAdapter()
, but there may be cases when you need to work with the original form data.- Returns:
- The form data adapter providing access to the raw form data.
- See Also:
getFormDataAdapter()
-
getFormRecord
Vorgang getFormRecord()
- Returns:
- The current
Vorgang
for which the workflow is executed.
-
getXFormRenderConfig
IXFormRenderConfig getXFormRenderConfig()
- Returns:
- The configuration that was used for rendering the form for the current form record.
-
isAnonymize
boolean isAnonymize()
- Returns:
true
if data related to individual persons must be anonymized.
-
-