Package de.xima.fc.workflow.model
Class WorkflowResponseWrapper
- java.lang.Object
-
- de.xima.fc.workflow.model.WorkflowResponseWrapper
-
- All Implemented Interfaces:
IRemoteEventExecutionResult
,Serializable
public final class WorkflowResponseWrapper extends Object implements IRemoteEventExecutionResult
Wrapper to treat aIWorkflowResponse
as aITaskExecutionResult
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WorkflowResponseWrapper(IWorkflowResponse wfResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorMessage()
IFormDataAdapter
getFormDataAdapter()
Vorgang
getFormRecord()
IMapDiff<Serializable,Serializable>
getFrqSessionAttributesMapDiff()
IServletResponse
getServletResponse()
IMapDiff<String,Serializable>
getSessionAttributesMapDiff()
String[]
getStackTrace()
boolean
isWasFormRecordDeleted()
boolean
isWasSuccessful()
-
-
-
Constructor Detail
-
WorkflowResponseWrapper
public WorkflowResponseWrapper(IWorkflowResponse wfResponse)
-
-
Method Detail
-
getErrorMessage
public String getErrorMessage()
- Specified by:
getErrorMessage
in interfaceIRemoteEventExecutionResult
- Returns:
- If the workflow execution was not successful: the error message. Empty string otherwise.
-
getFormDataAdapter
public IFormDataAdapter getFormDataAdapter()
- Specified by:
getFormDataAdapter
in interfaceIRemoteEventExecutionResult
- Returns:
- The current form data of the form record. The form data may have changed by some workflow node or action.
-
getFormRecord
public Vorgang getFormRecord()
- Specified by:
getFormRecord
in interfaceIRemoteEventExecutionResult
- Returns:
- The updated form record. The workflow execution may change the data of the form record, so this might be a different instance with different data than the form record passed in to the workflow executor.
-
getFrqSessionAttributesMapDiff
public IMapDiff<Serializable,Serializable> getFrqSessionAttributesMapDiff()
- Specified by:
getFrqSessionAttributesMapDiff
in interfaceIRemoteEventExecutionResult
- Returns:
- Changes to FRQ session attributes requested during workflow execution by some workflow node or action. These should be applied to the current FRQ session, if any.
-
getServletResponse
public IServletResponse getServletResponse()
- Specified by:
getServletResponse
in interfaceIRemoteEventExecutionResult
- Returns:
- The servlet response set by the workflow execution, i.e. the response to the HTTP request, if any.
null
if no response was set explicitly. This response, if set, should be returned.
-
getSessionAttributesMapDiff
public IMapDiff<String,Serializable> getSessionAttributesMapDiff()
- Specified by:
getSessionAttributesMapDiff
in interfaceIRemoteEventExecutionResult
- Returns:
- Changes to HTTP session attributes requested during workflow execution by some workflow node or action. These should be applied to the current HTTP session.
-
getStackTrace
public String[] getStackTrace()
- Specified by:
getStackTrace
in interfaceIRemoteEventExecutionResult
- Returns:
- If the workflow execution was not successful: the error call stack. Empty array otherwise.
-
isWasFormRecordDeleted
public boolean isWasFormRecordDeleted()
- Specified by:
isWasFormRecordDeleted
in interfaceIRemoteEventExecutionResult
- Returns:
true
when the form record was deleted by the workflow execution, i.e. when an action of typedelete form record
was executed.
-
isWasSuccessful
public boolean isWasSuccessful()
- Specified by:
isWasSuccessful
in interfaceIRemoteEventExecutionResult
- Returns:
- Whether the workflow execution was successful.
-
-