Class PluginFormPreRespondParams
java.lang.Object
de.xima.fc.plugin.models.params.form.PluginFormPreRespondParams
- All Implemented Interfaces:
IPluginParameters,IFormLifecycleExecuteParams,IPluginFormPreRespondParams,Serializable
Simple POJO implementation of
IPluginFormPreRespondParams.- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPluginFormPreRespondParams(IFormRequestContext context, Vorgang vorgang, IWorkflowResponse response, IRemoteEventExecutionResult taskExecutionResult) Creates a new POJO with the given data. -
Method Summary
Modifier and TypeMethodDescriptionGets the values stored in the currentFRQSession.com.alibaba.fastjson.JSONObjectDeprecated.Gets the values from the currentHttpSession.A pre-respond plugin is executed after the workflow engine was run.com.alibaba.fastjson.JSONObjectDeprecated.
-
Constructor Details
-
PluginFormPreRespondParams
public PluginFormPreRespondParams(IFormRequestContext context, Vorgang vorgang, IWorkflowResponse response, IRemoteEventExecutionResult taskExecutionResult) Creates a new POJO with the given data.- Parameters:
context- The value forIPluginFormPreRespondParams.getFormRequestContext()vorgang- The value forIPluginFormPreRespondParams.getVorgang()response- The value forIPluginFormPreRespondParams.getWorkflowResponse()taskExecutionResult- The value forIPluginFormPreRespondParams.getTaskExecutionResult()
-
-
Method Details
-
getFormRequestContext
- Specified by:
getFormRequestContextin interfaceIFormLifecycleExecuteParams- Specified by:
getFormRequestContextin interfaceIPluginFormPreRespondParams- Returns:
- The current form request context that may be used to access the submitted form data.
-
getTaskExecutionResult
Description copied from interface:IPluginFormPreRespondParamsA pre-respond plugin is executed after the workflow engine was run. This is the result of that workflow execution, after the individual results of all executedWorkflowTaskwere combined.- Specified by:
getTaskExecutionResultin interfaceIPluginFormPreRespondParams- Returns:
- The combined result from the workflow execution.
-
getVorgang
- Specified by:
getVorgangin interfaceIPluginFormPreRespondParams- Returns:
- The current
Vorgang, after the workflow was executed. It is newly created if the form was just submitted for the first time. When the form is resubmitted, this is the existingVorgang.Note that this is the current form record with the modification performed during workflow execution. In contrast,
IFormRequestContext.getVorgang()is the form record as it was when the form was submitted, without the modifications from the workflow.
-
getWorkflowResponse
Deprecated.Description copied from interface:IPluginFormPreRespondParamsA pre-respond plugin is executed after the workflow was run. This method returns the result of that workflow processing.- Specified by:
getWorkflowResponsein interfaceIPluginFormPreRespondParams- Returns:
- The result from the workflow execution.
-
getUserData
public com.alibaba.fastjson.JSONObject getUserData()- Specified by:
getUserDatain interfaceIFormLifecycleExecuteParams- Specified by:
getUserDatain interfaceIPluginFormPreRespondParams- Returns:
- A
JSONObjectwith the current data for the authenticated user. When the current form does not require authorization, this may return an emptyJSONObject
-
getLdapUserData
Deprecated.- Specified by:
getLdapUserDatain interfaceIFormLifecycleExecuteParams- Specified by:
getLdapUserDatain interfaceIPluginFormPreRespondParams- Returns:
- A
JSONObjectwith the current LDAP data for the authenticated user. When the current form does not require authorization, or when the current user did not authorize via LDAP, this may return an emptyJSONObject
-
getFrqSessionAttributeMap
Description copied from interface:IFormLifecycleExecuteParamsGets the values stored in the currentFRQSession. The servlet plugin may be executed on a different server that does not have direct access to the HTTP request: Please note that changes to this map are NOT reflected or saved in theFRQSession. To modify the FRQ session attributes, use theIPluginFormPrePersistRetVal.getFrqSessionAttributeMap()return value.- Specified by:
getFrqSessionAttributeMapin interfaceIFormLifecycleExecuteParams- Returns:
- Attributes from the form request session of the current request. If no such session exists, this is an empty map.
-
getSessionAttributeMap
Description copied from interface:IFormLifecycleExecuteParamsGets the values from the currentHttpSession. The servlet plugin may be executed on a different server that does not have direct access to the HTTP request: Please note that changes to this map are NOT reflected or saved in theHttpSession. To modify the session attributes, use theIPluginFormPreRenderRetVal.getSessionAttributes()return value.- Specified by:
getSessionAttributeMapin interfaceIFormLifecycleExecuteParams- Returns:
- A map
Mapwith all attributes of the currentHttpSession.
-