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
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RemoteEventExecutionResult(boolean wasSuccessful, Vorgang formRecord, boolean wasFormRecordDeleted, IServletResponse servletResponse, IFormDataAdapter formDataAdapter, IMapDiff<String,Serializable> sessionAttributesMapDiff, String errorMessage, String[] stackTrace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorMessage()
IFormDataAdapter
getFormDataAdapter()
Vorgang
getFormRecord()
IServletResponse
getServletResponse()
IMapDiff<String,Serializable>
getSessionAttributesMapDiff()
String[]
getStackTrace()
boolean
isWasFormRecordDeleted()
boolean
isWasSuccessful()
-
-
-
Constructor Detail
-
RemoteEventExecutionResult
public RemoteEventExecutionResult(boolean wasSuccessful, Vorgang formRecord, boolean wasFormRecordDeleted, IServletResponse servletResponse, IFormDataAdapter formDataAdapter, IMapDiff<String,Serializable> sessionAttributesMapDiff, String errorMessage, String[] stackTrace)
-
-
Method Detail
-
isWasSuccessful
public boolean isWasSuccessful()
- Specified by:
isWasSuccessful
in interfaceIRemoteEventExecutionResult
- Returns:
- Whether the workflow execution was successful.
-
getErrorMessage
public String getErrorMessage()
- Specified by:
getErrorMessage
in interfaceIRemoteEventExecutionResult
- Returns:
- If the workflow execution was not successful: the error message. Empty string otherwise.
-
getStackTrace
public String[] getStackTrace()
- Specified by:
getStackTrace
in interfaceIRemoteEventExecutionResult
- Returns:
- If the workflow execution was not successful: the error call stack. Empty array otherwise.
-
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.
-
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.
-
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.
-
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.
-
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.
-
-