Class EventExecutionResult
- java.lang.Object
-
- de.xima.fc.workflow.processor.model.EventExecutionResult
-
- All Implemented Interfaces:
IEventExecutionResult
,Serializable
public final class EventExecutionResult extends Object implements IEventExecutionResult
POJO implementation ofIEventExecutionResult
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IEventExecutionResult
forException(Exception exception)
static IEventExecutionResult
forSuccess(ITaskQueueExecutionResult result)
Exception
getException()
ITaskQueueExecutionResult
getResult()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.interfaces.workflow.execution.IEventExecutionResult
isHasException, isHasResult, isSuccessful
-
-
-
-
Method Detail
-
getException
public Exception getException()
- Specified by:
getException
in interfaceIEventExecutionResult
- Returns:
- The (unhandled) exception that is responsible when no
IEventExecutionResult.getResult()
at all (neither success nor error) could be obtained.null
whenIEventExecutionResult.isHasException()
isfalse
.
-
getResult
public ITaskQueueExecutionResult getResult()
- Specified by:
getResult
in interfaceIEventExecutionResult
- Returns:
- The result of executing the tasks of a form record.
null
ifIEventExecutionResult.isHasResult()
isfalse
.
-
forSuccess
public static IEventExecutionResult forSuccess(ITaskQueueExecutionResult result)
- Parameters:
result
- The result obtained upon successful execution of a task queue.- Returns:
- A new instance representing a success result.
-
forException
public static IEventExecutionResult forException(Exception exception)
- Parameters:
exception
- The exception raised during execution of a task queue.- Returns:
- A new instance representing an exceptional result.
-
-