Class LocalActivityRun<WD extends WorkDefinition,AH extends ActivityHandler<WD,AH>,BS extends AbstractActivityWorkStateType>   
java.lang.Object
com.evolveum.midpoint.repo.common.activity.run.AbstractActivityRun<WD,AH,BS>
  
com.evolveum.midpoint.repo.common.activity.run.LocalActivityRun<WD,AH,BS>  
- All Implemented Interfaces:
- ExecutionSupport,- DebugDumpable
- Direct Known Subclasses:
- AbstractCompositeActivityRun,- CleanupPartialActivityRun,- IterativeActivityRun
public abstract class LocalActivityRun<WD extends WorkDefinition,AH extends ActivityHandler<WD,AH>,BS extends AbstractActivityWorkStateType>   
extends AbstractActivityRun<WD,AH,BS>  
The "real" run of an activity - i.e. not a delegation nor a distribution.
 Responsibilities at this level of abstraction:
 1. records run start/stop + item progress in the tree state overview,
 2. records run start/stop in the item processing statistics (run records),
 3. updates progress information (clears uncommitted on start).
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.evolveum.midpoint.task.api.ExecutionSupportExecutionSupport.CountersGroup
- 
Field SummaryFields inherited from class com.evolveum.midpoint.repo.common.activity.run.AbstractActivityRunactivity, activityState, endTimestamp, startTimestamp, taskRunFields inherited from interface com.evolveum.midpoint.util.DebugDumpableINDENT_STRING
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedLocalActivityRun(@NotNull ActivityRunInstantiationContext<WD, AH> context) 
- 
Method SummaryModifier and TypeMethodDescription@NotNull ActivityReportingCharacteristicsThis method should be called only after the concrete instance is fully initialized.@NotNull OperationResultStatusTypeprotected @Nullable ObjectReferenceTypeReturns the value that should be put into task.objectRef.@NotNull TaskExecutionModebooleanTrue if the task is excluded from staleness checking while running this activity.protected @NotNull ActivityRunResultrunInternal(OperationResult result) Carries out the actual run of this activity.protected abstract @NotNull ActivityRunResultrunLocally(OperationResult result) booleanvoidUpdates item progress in the tree overview.Methods inherited from class com.evolveum.midpoint.repo.common.activity.run.AbstractActivityRunareActionsExecutedStatisticsSupported, areRunRecordsSupported, areStatisticsSupported, areSynchronizationStatisticsSupported, canRun, debugDump, debugDumpExtra, determineActivityStateDefinition, determineActivityStateForCounters, ensureFullExecution, ensureNoDryRun, ensureNoPreviewNorDryRun, getActivity, getActivityDefinition, getActivityExecutionMode, getActivityHandler, getActivityPath, getActivityState, getActivityStateDefinition, getBeans, getItemsProcessed, getLocalParentRun, getReportingCharacteristics, getRunningTask, getStartTimestampRequired, getTaskRun, getTreeStateOverview, getWorkDefinition, incrementCounters, incrementProgress, isBucketAnalysis, isDryRun, isFullExecution, isNoExecution, isNonScavengingWorker, isProgressSupported, isWorker, onActivityRealizationComplete, onActivityRealizationStart, recordIterativeOperationStart, run, setInstanceReady, shouldCreateWorkStateOnInitialization, standardRunResult, standardRunResult, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpabledebugDump, debugDumpLazily, debugDumpLazily
- 
Constructor Details- 
LocalActivityRun
 
- 
- 
Method Details- 
createReportingCharacteristicsDescription copied from class:AbstractActivityRunThis method should be called only after the concrete instance is fully initialized.- Overrides:
- createReportingCharacteristicsin class- AbstractActivityRun<WD extends WorkDefinition,- AH extends ActivityHandler<WD, - AH>, - BS extends AbstractActivityWorkStateType> 
 
- 
runInternal@NotNull protected @NotNull ActivityRunResult runInternal(OperationResult result) throws ActivityRunException Description copied from class:AbstractActivityRunCarries out the actual run of this activity.- Specified by:
- runInternalin class- AbstractActivityRun<WD extends WorkDefinition,- AH extends ActivityHandler<WD, - AH>, - BS extends AbstractActivityWorkStateType> 
- Throws:
- ActivityRunException
 
- 
getTaskExecutionMode- Throws:
- ConfigurationException
 
- 
getSimulationTransaction
- 
runLocally@NotNull protected abstract @NotNull ActivityRunResult runLocally(OperationResult result) throws ActivityRunException, CommonException - Throws:
- ActivityRunException
- CommonException
 
- 
updateItemProgressInTreeOverviewIfTimePassedpublic void updateItemProgressInTreeOverviewIfTimePassed(OperationResult result) throws SchemaException, ObjectNotFoundException Updates item progress in the tree overview. Assumes that the activity run is still in progress.
- 
shouldUpdateProgressInStateOverviewpublic boolean shouldUpdateProgressInStateOverview()
- 
getCurrentResultStatusBean
- 
isExcludedFromStalenessCheckingpublic boolean isExcludedFromStalenessChecking()True if the task is excluded from staleness checking while running this activity.
- 
getDesiredTaskObjectRefReturns the value that should be put into task.objectRef. Should be overridden by subclasses. It should be called _after_IterativeActivityRunSpecifics.beforeRun(OperationResult)method, in order to give the execution a chance to prepare data for this method.
 
-