Interface IWorkflowExecutionEnvironmentData
- All Superinterfaces:
IBaseEnvironmentData, 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
Modifier and TypeMethodDescriptiongetClock()default BenutzerDeprecated.default IUserGets theIFormDataAdapterfor the current form record that can be used to access the current form data.UsegetFormDataAdapter()unless you know what you are doing.getXForm()booleanMethods inherited from interface IBaseEnvironmentData
getClient, getEntityContext, getLocale, getUser, getUserModelMethods inherited from interface IBaseWorkflowEnvironmentData
getProject, getWorkflowVersion
-
Method Details
-
getClock
Clock getClock()- Returns:
- The clock to use for obtaining the current time.
- Since:
- 8.0.0
-
getEffectiveUser
Deprecated.UsegetEffectiveUserModel()instead.- Returns:
- An anonymous user when
isAnonymize()is set totrue, or the actualIBaseEnvironmentData.getUser()otherwise.
-
getEffectiveUserModel
- Returns:
- An anonymous user when
isAnonymize()is set totrue, or the actualIBaseEnvironmentData.getUserModel()otherwise.
-
getFormDataAdapter
IFormDataAdapter getFormDataAdapter()Gets theIFormDataAdapterfor 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
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:
-
getFormRecord
-
getXForm
-
getXFormRenderConfig
IXFormRenderConfig getXFormRenderConfig()- Returns:
- The configuration that was used for rendering the form for the current form record.
-
isAnonymize
boolean isAnonymize()- Returns:
trueif data related to individual persons must be anonymized.
-
getEffectiveUserModel()instead.