Class NoTransactionalTimerResourcesCleanupAwareSchedulerServiceInterceptor

  • All Implemented Interfaces:
    org.jbpm.process.core.timer.SchedulerServiceInterceptor

    public class NoTransactionalTimerResourcesCleanupAwareSchedulerServiceInterceptor
    extends org.jbpm.process.core.timer.impl.DelegateSchedulerServiceInterceptor
    This is for transactional global service so it could remove non-transactional resources when the tx is rolled back
    • Constructor Detail

      • NoTransactionalTimerResourcesCleanupAwareSchedulerServiceInterceptor

        public NoTransactionalTimerResourcesCleanupAwareSchedulerServiceInterceptor​(org.kie.api.runtime.manager.RuntimeEnvironment environment,
                                                                                    org.kie.api.runtime.manager.RuntimeManager manager,
                                                                                    org.jbpm.process.core.timer.GlobalSchedulerService schedulerService)
    • Method Detail

      • internalSchedule

        public final void internalSchedule​(org.drools.core.time.impl.TimerJobInstance timerJobInstance)
        Specified by:
        internalSchedule in interface org.jbpm.process.core.timer.SchedulerServiceInterceptor
        Overrides:
        internalSchedule in class org.jbpm.process.core.timer.impl.DelegateSchedulerServiceInterceptor
      • hasEnvironmentEntry

        protected boolean hasEnvironmentEntry​(String name,
                                              Object value)
      • getTransactionManager

        protected org.drools.persistence.api.TransactionManager getTransactionManager​(org.drools.core.time.JobContext jobContext)
      • getEnvironment

        protected org.kie.api.runtime.Environment getEnvironment​(org.drools.core.time.JobContext jobContext)
      • getProcessInstancId

        protected Long getProcessInstancId​(org.drools.core.time.JobContext jobContext)