Package de.xima.fc.workflow.model
Class RemoteEventExecutionResult
- java.lang.Object
-
- de.xima.fc.workflow.model.RemoteEventExecutionResult
-
- All Implemented Interfaces:
IRemoteEventExecutionResult,Serializable
public final class RemoteEventExecutionResult extends Object implements IRemoteEventExecutionResult
Default POJO implementation ofIRemoteEventExecutionResult.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorMessage()IFormDataAdaptergetFormDataAdapter()VorganggetFormRecord()IMapDiff<Serializable,Serializable>getFrqSessionAttributesMapDiff()IServletResponsegetServletResponse()IMapDiff<String,Serializable>getSessionAttributesMapDiff()String[]getStackTrace()booleanisWasFormRecordDeleted()booleanisWasSuccessful()
-
-
-
Constructor Detail
-
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 Detail
-
getErrorMessage
public String getErrorMessage()
- Specified by:
getErrorMessagein interfaceIRemoteEventExecutionResult- Returns:
- If the workflow execution was not successful: the error message. Empty string otherwise.
-
getFormDataAdapter
public IFormDataAdapter getFormDataAdapter()
- Specified by:
getFormDataAdapterin 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:
getFormRecordin 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:
getFrqSessionAttributesMapDiffin 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:
getServletResponsein interfaceIRemoteEventExecutionResult- Returns:
- The servlet response set by the workflow execution, i.e. the response to the HTTP request, if any.
nullif no response was set explicitly. This response, if set, should be returned.
-
getSessionAttributesMapDiff
public IMapDiff<String,Serializable> getSessionAttributesMapDiff()
- Specified by:
getSessionAttributesMapDiffin 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:
getStackTracein interfaceIRemoteEventExecutionResult- Returns:
- If the workflow execution was not successful: the error call stack. Empty array otherwise.
-
isWasFormRecordDeleted
public boolean isWasFormRecordDeleted()
- Specified by:
isWasFormRecordDeletedin interfaceIRemoteEventExecutionResult- Returns:
truewhen the form record was deleted by the workflow execution, i.e. when an action of typedelete form recordwas executed.
-
isWasSuccessful
public boolean isWasSuccessful()
- Specified by:
isWasSuccessfulin interfaceIRemoteEventExecutionResult- Returns:
- Whether the workflow execution was successful.
-
-