Package de.xima.fc.workflow.model
Class RemoteEventExecutionResult
java.lang.Object
de.xima.fc.workflow.model.RemoteEventExecutionResult
- All Implemented Interfaces:
IRemoteEventExecutionResult
,Serializable
Default POJO implementation of
IRemoteEventExecutionResult
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteEventExecutionResult
(boolean wasSuccessful, Vorgang formRecord, boolean wasFormRecordDeleted, IServletResponse servletResponse, IFormDataAdapter formDataAdapter, IMapDiff<String, Serializable> sessionAttributesMapDiff, IMapDiff<Serializable, Serializable> frqSessionAttributesMapDiff, String errorMessage, String[] stackTrace) Creates a new POJO with the given data. -
Method Summary
-
Constructor Details
-
RemoteEventExecutionResult
public RemoteEventExecutionResult(boolean wasSuccessful, Vorgang formRecord, boolean wasFormRecordDeleted, IServletResponse servletResponse, IFormDataAdapter formDataAdapter, IMapDiff<String, Serializable> sessionAttributesMapDiff, IMapDiff<Serializable, Serializable> frqSessionAttributesMapDiff, String errorMessage, String[] stackTrace) Creates a new POJO with the given data.- Parameters:
wasSuccessful
- The value as returned byisWasSuccessful()
.formRecord
- The value as returned bygetFormRecord()
.wasFormRecordDeleted
- The value as returned byisWasFormRecordDeleted()
.servletResponse
- The value as returned bygetServletResponse()
.formDataAdapter
- The value as returned bygetFormDataAdapter()
.sessionAttributesMapDiff
- The value as returned bygetSessionAttributesMapDiff()
.frqSessionAttributesMapDiff
- The value as returned bygetFrqSessionAttributesMapDiff()
.errorMessage
- The value as returned bygetErrorMessage()
.stackTrace
- The value as returned bygetStackTrace()
.
-
-
Method Details
-
getErrorMessage
- Specified by:
getErrorMessage
in interfaceIRemoteEventExecutionResult
- Returns:
- If the workflow execution was not successful: the error message. Empty string otherwise.
-
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
- 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
- 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
- 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
- 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
- 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.
-