Package de.xima.fc.workflow.event
Class FormSubmissionEventDataBuilder
java.lang.Object
de.xima.fc.workflow.event.FormSubmissionEventDataBuilder
- All Implemented Interfaces:
org.apache.commons.lang3.builder.Builder<IFormSubmissionEvent>
Builder for the event data for a form submission event, i.e. when the user clicked on a submit button. Create an
instance via the methods of
WorkflowEventDataFactory
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Boolean
protected Clock
protected final Vorgang
protected IFormRecordLockContext
protected Locale
protected IUser
protected List<IWorkflowExecutionPostProcessor>
-
Method Summary
Modifier and TypeMethodDescriptionaddWorkflowExecutionPostProcessor
(IWorkflowExecutionPostProcessor workflowExecutionPostProcessor) build()
defaultSystemState
(EWorkflowStateType defaultSytemState) Deprecated.formDataAdapter
(IFormDataAdapter formDataAdapter) formRecordLockContext
(IFormRecordLockContext formRecordLockContext) protected FormSubmissionEventDataBuilder
getThis()
httpContextData
(IHttpContextData httpContextData) submitButton
(String submitButton) submitButtonQualifier
(String submitButtonQualifier) Deprecated.Useuser(IUser)
instead.workflowExecutionPostProcessors
(Iterable<IWorkflowExecutionPostProcessor> workflowExecutionPostProcessors) xFormRenderConfig
(IXFormRenderConfig xFormRenderConfig)
-
Field Details
-
anonymize
-
clock
-
formRecord
-
formRecordLockContext
-
locale
-
user
-
workflowExecutionPostProcessors
-
-
Method Details
-
build
-
client
- Parameters:
client
- The client that owns the submitted form. When not set explicitly, the client is taken from the form.- Returns:
- This builder instance for chaining method calls.
-
defaultSystemState
@Deprecated public FormSubmissionEventDataBuilder defaultSystemState(EWorkflowStateType defaultSytemState) Deprecated.Add a post processor viaAFormRecordEventDataBuilder.addWorkflowExecutionPostProcessor(IWorkflowExecutionPostProcessor)
.- Parameters:
defaultSytemState
- The default state that is set when the form record has notstate
and no state was set by the executed workflow tasks.- Returns:
- This builder instance for chaining method calls.
-
formDataAdapter
- Parameters:
formDataAdapter
- The form data adapter with the form data that should be used.- Returns:
- This builder instance for chaining method calls.
-
httpContextData
- Parameters:
httpContextData
- The HTTP context where the workflow is executed. When not given, actions that require an HTTP context are not available, such as responding with an HTML template.- Returns:
- This builder for chaining method calls.
-
project
- Parameters:
project
- The project of the form record. When not specified explicitly, retrieves the project from the form record.- Returns:
- This builder for chaining method calls.
-
submitButton
- Parameters:
submitButton
- Submit button that was used to submit the form. When not set explicitly, the submit button is read from theformDataAdapter(IFormDataAdapter)
.- Returns:
- This builder instance for chaining method calls.
-
submitButtonQualifier
- Parameters:
submitButtonQualifier
- Qualifier of the submit button that was used to submit the form. When not set explicitly, the submit button is read from theformDataAdapter(IFormDataAdapter)
.- Returns:
- This builder instance for chaining method calls.
-
xForm
- Parameters:
xForm
- The form model of the form record. When not specified explicitly, retrieves the model from the current form version of the form record.- Returns:
- This builder for chaining method calls.
-
xFormRenderConfig
- Parameters:
xFormRenderConfig
- The form render config of the form record. When not specified explicitly, retrieves the model from the current form version of the form record.- Returns:
- This builder for chaining method calls.
-
getThis
-
addWorkflowExecutionPostProcessor
public FormSubmissionEventDataBuilder addWorkflowExecutionPostProcessor(IWorkflowExecutionPostProcessor workflowExecutionPostProcessor) -
anonymize
-
clock
-
formRecordLockContext
public FormSubmissionEventDataBuilder formRecordLockContext(IFormRecordLockContext formRecordLockContext) -
locale
-
user
-
workflowExecutionPostProcessors
public FormSubmissionEventDataBuilder workflowExecutionPostProcessors(Iterable<IWorkflowExecutionPostProcessor> workflowExecutionPostProcessors) -
user
Deprecated.Useuser(IUser)
instead.- Parameters:
user
- The user who started the workflow.- Returns:
- This builder instance for chaining method calls.
-
AFormRecordEventDataBuilder.addWorkflowExecutionPostProcessor(IWorkflowExecutionPostProcessor)
.