Class PluginFormPreRespondParams
- java.lang.Object
-
- de.xima.fc.plugin.models.params.form.PluginFormPreRespondParams
-
- All Implemented Interfaces:
IPluginParameters
,IPluginFormPreRespondParams
,Serializable
public class PluginFormPreRespondParams extends Object implements IPluginFormPreRespondParams
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PluginFormPreRespondParams(IFormRequestContext context, Vorgang vorgang, IWorkflowResponse response, IRemoteEventExecutionResult taskExecutionResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IFormRequestContext
getFormRequestContext()
com.alibaba.fastjson.JSONObject
getLdapUserData()
Deprecated.IRemoteEventExecutionResult
getTaskExecutionResult()
A pre-respond plugin is executed after the workflow engine was run.com.alibaba.fastjson.JSONObject
getUserData()
Vorgang
getVorgang()
IWorkflowResponse
getWorkflowResponse()
Deprecated.
-
-
-
Constructor Detail
-
PluginFormPreRespondParams
public PluginFormPreRespondParams(IFormRequestContext context, Vorgang vorgang, IWorkflowResponse response, IRemoteEventExecutionResult taskExecutionResult)
-
-
Method Detail
-
getFormRequestContext
public IFormRequestContext getFormRequestContext()
- Specified by:
getFormRequestContext
in interfaceIPluginFormPreRespondParams
- Returns:
IExtendedFormRequestContext
The current form request context that may be used to access the submitted form data.
-
getTaskExecutionResult
public IRemoteEventExecutionResult getTaskExecutionResult()
Description copied from interface:IPluginFormPreRespondParams
A 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 executedWorkflowTask
were combined.- Specified by:
getTaskExecutionResult
in interfaceIPluginFormPreRespondParams
- Returns:
- The combined result from the workflow execution.
-
getVorgang
public Vorgang getVorgang()
- Specified by:
getVorgang
in 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 public IWorkflowResponse getWorkflowResponse()
Deprecated.Description copied from interface:IPluginFormPreRespondParams
A pre-respond plugin is executed after the workflow was run. This method returns the result of that workflow processing.- Specified by:
getWorkflowResponse
in interfaceIPluginFormPreRespondParams
- Returns:
- The result from the workflow execution.
-
getUserData
public com.alibaba.fastjson.JSONObject getUserData()
- Specified by:
getUserData
in interfaceIPluginFormPreRespondParams
-
getLdapUserData
@Deprecated public com.alibaba.fastjson.JSONObject getLdapUserData()
Deprecated.- Specified by:
getLdapUserData
in interfaceIPluginFormPreRespondParams
- Returns:
- A
JSONObject
with 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
-
-