Package org.flowable.engine.impl.test
Class JobTestHelper
java.lang.Object
org.flowable.engine.impl.test.JobTestHelper
- Author:
- Joram Barrez, Tijs Rademakers, Saeid Mirzaei
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
areJobsAvailable
(ManagementService managementService) static boolean
areJobsAvailable
(FlowableRule activitiRule) Deprecated, for removal: This API element is subject to removal in a future version.static boolean
areJobsOrExecutableTimersAvailable
(ManagementService managementService) static boolean
areJobsOrTimersAvailable
(ManagementService managementService) Returns true when there are any entries for the jobs or timers (unlikeareJobsOrExecutableTimersAvailable(ManagementService)
, which only take in account executable timers).static void
executeJobExecutorForTime
(ProcessEngineConfiguration processEngineConfiguration, long maxMillisToWait, long intervalMillis) static void
executeJobExecutorForTime
(FlowableRule activitiRule, long maxMillisToWait, long intervalMillis) Deprecated, for removal: This API element is subject to removal in a future version.protected static void
internalWaitForJobs
(ProcessEngineConfiguration processEngineConfiguration, ManagementService managementService, Predicate<ManagementService> jobsAvailablePredicate, long maxMillisToWait, long intervalMillis, boolean shutdownExecutorWhenFinished) static void
waitForJobExecutorOnCondition
(ProcessEngineConfiguration processEngineConfiguration, long maxMillisToWait, long intervalMillis, Callable<Boolean> condition) static void
waitForJobExecutorOnCondition
(FlowableRule activitiRule, long maxMillisToWait, long intervalMillis, Callable<Boolean> condition) Deprecated, for removal: This API element is subject to removal in a future version.static void
waitForJobExecutorToProcessAllJobs
(ProcessEngineConfiguration processEngineConfiguration, ManagementService managementService, long maxMillisToWait, long intervalMillis) static void
waitForJobExecutorToProcessAllJobs
(ProcessEngineConfiguration processEngineConfiguration, ManagementService managementService, long maxMillisToWait, long intervalMillis, boolean shutdownExecutorWhenFinished) static void
waitForJobExecutorToProcessAllJobs
(FlowableRule rule, long maxMillisToWait, long intervalMillis) Deprecated, for removal: This API element is subject to removal in a future version.static void
waitForJobExecutorToProcessAllJobsAndExecutableTimerJobs
(ProcessEngineConfiguration processEngineConfiguration, ManagementService managementService, long maxMillisToWait, long intervalMillis) static void
waitForJobExecutorToProcessAllJobsAndExecutableTimerJobs
(ProcessEngineConfiguration processEngineConfiguration, ManagementService managementService, long maxMillisToWait, long intervalMillis, boolean shutdownExecutorWhenFinished) static void
waitForJobExecutorToProcessAllJobsAndTimerJobs
(ProcessEngineConfiguration processEngineConfiguration, ManagementService managementService, long maxMillisToWait, long intervalMillis) static void
waitForJobExecutorToProcessAllJobsAndTimerJobs
(ProcessEngineConfiguration processEngineConfiguration, ManagementService managementService, long maxMillisToWait, long intervalMillis, boolean shutdownExecutorWhenFinished)
-
Constructor Details
-
JobTestHelper
public JobTestHelper()
-
-
Method Details
-
waitForJobExecutorToProcessAllJobs
@Deprecated(forRemoval=true, since="7.2.0") public static void waitForJobExecutorToProcessAllJobs(FlowableRule rule, long maxMillisToWait, long intervalMillis) Deprecated, for removal: This API element is subject to removal in a future version. -
waitForJobExecutorToProcessAllJobs
public static void waitForJobExecutorToProcessAllJobs(ProcessEngineConfiguration processEngineConfiguration, ManagementService managementService, long maxMillisToWait, long intervalMillis) -
waitForJobExecutorToProcessAllJobs
public static void waitForJobExecutorToProcessAllJobs(ProcessEngineConfiguration processEngineConfiguration, ManagementService managementService, long maxMillisToWait, long intervalMillis, boolean shutdownExecutorWhenFinished) -
waitForJobExecutorToProcessAllJobsAndExecutableTimerJobs
public static void waitForJobExecutorToProcessAllJobsAndExecutableTimerJobs(ProcessEngineConfiguration processEngineConfiguration, ManagementService managementService, long maxMillisToWait, long intervalMillis) -
waitForJobExecutorToProcessAllJobsAndExecutableTimerJobs
public static void waitForJobExecutorToProcessAllJobsAndExecutableTimerJobs(ProcessEngineConfiguration processEngineConfiguration, ManagementService managementService, long maxMillisToWait, long intervalMillis, boolean shutdownExecutorWhenFinished) -
waitForJobExecutorToProcessAllJobsAndTimerJobs
public static void waitForJobExecutorToProcessAllJobsAndTimerJobs(ProcessEngineConfiguration processEngineConfiguration, ManagementService managementService, long maxMillisToWait, long intervalMillis) -
waitForJobExecutorToProcessAllJobsAndTimerJobs
public static void waitForJobExecutorToProcessAllJobsAndTimerJobs(ProcessEngineConfiguration processEngineConfiguration, ManagementService managementService, long maxMillisToWait, long intervalMillis, boolean shutdownExecutorWhenFinished) -
waitForJobExecutorOnCondition
@Deprecated(forRemoval=true, since="7.2.0") public static void waitForJobExecutorOnCondition(FlowableRule activitiRule, long maxMillisToWait, long intervalMillis, Callable<Boolean> condition) Deprecated, for removal: This API element is subject to removal in a future version. -
waitForJobExecutorOnCondition
public static void waitForJobExecutorOnCondition(ProcessEngineConfiguration processEngineConfiguration, long maxMillisToWait, long intervalMillis, Callable<Boolean> condition) -
executeJobExecutorForTime
@Deprecated(forRemoval=true, since="7.2.0") public static void executeJobExecutorForTime(FlowableRule activitiRule, long maxMillisToWait, long intervalMillis) Deprecated, for removal: This API element is subject to removal in a future version. -
executeJobExecutorForTime
public static void executeJobExecutorForTime(ProcessEngineConfiguration processEngineConfiguration, long maxMillisToWait, long intervalMillis) -
areJobsAvailable
@Deprecated(forRemoval=true, since="7.2.0") public static boolean areJobsAvailable(FlowableRule activitiRule) Deprecated, for removal: This API element is subject to removal in a future version. -
areJobsAvailable
-
areJobsOrExecutableTimersAvailable
-
areJobsOrTimersAvailable
Returns true when there are any entries for the jobs or timers (unlikeareJobsOrExecutableTimersAvailable(ManagementService)
, which only take in account executable timers). -
internalWaitForJobs
protected static void internalWaitForJobs(ProcessEngineConfiguration processEngineConfiguration, ManagementService managementService, Predicate<ManagementService> jobsAvailablePredicate, long maxMillisToWait, long intervalMillis, boolean shutdownExecutorWhenFinished)
-
areJobsAvailable(ManagementService)