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
ConstructorsConstructorDescriptionActivityRunResult(OperationResultStatus operationResultStatus, TaskRunResult.TaskRunResultStatus runResultStatus) ActivityRunResult(OperationResultStatus operationResultStatus, TaskRunResult.TaskRunResultStatus runResultStatus, Throwable throwable) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(boolean canRun, OperationResultStatus status) "Closes" the result by converting null or "in progress" values into finished/interrupted/success/default ones.static ActivityRunResultexception(OperationResultStatus opStatus, TaskRunResult.TaskRunResultStatus runStatus, Throwable throwable) static ActivityRunResultfinished(OperationResultStatus opResultStatus) static ActivityRunResultfinished(OperationResultStatusType opResultStatusBean) static ActivityRunResultbooleanisError()booleanbooleanbooleanvoidShow the content of the object intended for diagnostics.static ActivityRunResultsuccess()toString()static ActivityRunResultwaiting()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:ShortDumpableShow 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:
shortDumpin 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.
-