Class ActivityRunResult
java.lang.Object
com.evolveum.midpoint.repo.common.activity.run.ActivityRunResult
- All Implemented Interfaces:
ShortDumpable
Result of an run of an activity.
-
Constructor Summary
ConstructorDescriptionActivityRunResult
(OperationResultStatus operationResultStatus, TaskRunResult.TaskRunResultStatus runResultStatus) ActivityRunResult
(OperationResultStatus operationResultStatus, TaskRunResult.TaskRunResultStatus runResultStatus, Throwable throwable) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(boolean canRun, OperationResultStatus status) "Closes" the result by converting null or "in progress" values into finished/interrupted/success/default ones.static ActivityRunResult
exception
(OperationResultStatus opStatus, TaskRunResult.TaskRunResultStatus runStatus, Throwable throwable) static ActivityRunResult
finished
(OperationResultStatus opResultStatus) static ActivityRunResult
finished
(OperationResultStatusType opResultStatusBean) static ActivityRunResult
boolean
isError()
boolean
boolean
boolean
void
Show the content of the object intended for diagnostics.static ActivityRunResult
success()
toString()
static ActivityRunResult
waiting()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
Constructor Details
-
ActivityRunResult
public ActivityRunResult() -
ActivityRunResult
public ActivityRunResult(OperationResultStatus operationResultStatus, TaskRunResult.TaskRunResultStatus runResultStatus) -
ActivityRunResult
public ActivityRunResult(OperationResultStatus operationResultStatus, TaskRunResult.TaskRunResultStatus runResultStatus, Throwable throwable)
-
-
Method Details
-
createTaskRunResult
-
getThrowable
-
success
-
interrupted
-
finished
-
finished
-
waiting
-
exception
public static ActivityRunResult exception(OperationResultStatus opStatus, TaskRunResult.TaskRunResultStatus runStatus, Throwable throwable) -
toString
-
shortDump
Description copied from interface:ShortDumpable
Show the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Specified by:
shortDump
in interfaceShortDumpable
- Parameters:
sb
- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
message
-
isError
public boolean isError() -
isFinished
public boolean isFinished() -
isWaiting
public boolean isWaiting() -
isInterrupted
public boolean isInterrupted() -
getSimplifiedRealizationState
-
getOperationResultStatusBean
-
close
"Closes" the result by converting null or "in progress" values into finished/interrupted/success/default ones.
-