Class ActivityRunResult
- java.lang.Object
-
- com.evolveum.midpoint.repo.common.activity.run.ActivityRunResult
-
- All Implemented Interfaces:
ShortDumpable
public class ActivityRunResult extends Object implements ShortDumpable
Result of an run of an activity.
-
-
Constructor Summary
Constructors Constructor Description ActivityRunResult()
ActivityRunResult(OperationResultStatus operationResultStatus, TaskRunResult.TaskRunResultStatus runResultStatus)
ActivityRunResult(OperationResultStatus operationResultStatus, TaskRunResult.TaskRunResultStatus runResultStatus, Throwable throwable)
-
Method Summary
-
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 Detail
-
ActivityRunResult
public ActivityRunResult()
-
ActivityRunResult
public ActivityRunResult(OperationResultStatus operationResultStatus, TaskRunResult.TaskRunResultStatus runResultStatus)
-
ActivityRunResult
public ActivityRunResult(OperationResultStatus operationResultStatus, TaskRunResult.TaskRunResultStatus runResultStatus, Throwable throwable)
-
-
Method Detail
-
createTaskRunResult
public TaskRunResult createTaskRunResult()
-
getThrowable
public Throwable getThrowable()
-
success
public static ActivityRunResult success()
-
interrupted
public static ActivityRunResult interrupted()
-
finished
public static ActivityRunResult finished(OperationResultStatus opResultStatus)
-
finished
public static ActivityRunResult finished(OperationResultStatusType opResultStatusBean)
-
waiting
public static ActivityRunResult waiting()
-
exception
public static ActivityRunResult exception(OperationResultStatus opStatus, TaskRunResult.TaskRunResultStatus runStatus, Throwable throwable)
-
shortDump
public void shortDump(StringBuilder sb)
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
public ActivityRunResult message(String message)
-
isError
public boolean isError()
-
isFinished
public boolean isFinished()
-
isWaiting
public boolean isWaiting()
-
isInterrupted
public boolean isInterrupted()
-
getSimplifiedRealizationState
public ActivitySimplifiedRealizationStateType getSimplifiedRealizationState()
-
getOperationResultStatusBean
public OperationResultStatusType getOperationResultStatusBean()
-
close
public void close(boolean canRun, OperationResultStatus status)
"Closes" the result by converting null or "in progress" values into finished/interrupted/success/default ones.
-
-