public interface IExecutionResult extends Serializable
IExecutable
execution results. An execution result might contains two parts :
Modifier and Type | Method and Description |
---|---|
ExecutionResultState |
getActionValidated()
If this executable contains sub-executables, returns
ExecutionResultState.OK if they are correctly executed. |
ExecutionResultState |
getConditionValidated()
If this executable contains conditions, returns
ExecutionResultState.OK if they are validated, ExecutionResultState.KO if not. |
IExecutionControlDirective |
getDirective()
Returns the directive to transmit to parent
IExecutable , so that they can make appropriate actions. |
Object |
getReturnedValue()
Any executable may return a value.
|
boolean |
isContainingDirective()
Tells if this result contains flow control directives, in which case in should be interpreted.
|
ExecutionResultState getConditionValidated()
ExecutionResultState.OK
if they are validated, ExecutionResultState.KO
if not.ExecutionResultState.NA
.ExecutionResultState.PARTIAL
.ExecutionResultState getActionValidated()
ExecutionResultState.OK
if they are correctly executed.ExecutionResultState.KO
if not.ExecutionResultState.PARTIAL
if some are correctly executed, others not.ExecutionResultState.NA
.IAction
)
will only return ExecutionResultState.OK
, as errors are handled via Exceptions.IExecutable
will handle correctly all types of results.boolean isContainingDirective()
getDirective()
can't return null.IExecutionControlDirective getDirective()
IExecutable
, so that they can make appropriate actions.isContainingDirective()
is true.Object getReturnedValue()