141142143144145146147148
newTransaction(); // the timer executor creates its own JbpmSession. assertEquals(0, counter); new SchedulerThread().executeTimers(); assertEquals(1, counter); }
180181182183184185186187188189190
commitAndCloseSession(); // the timer executor creates its own JbpmSession. assertEquals(0, counter); new SchedulerThread().executeTimers(); assertEquals(1, counter); // begin another transaction beginSessionTransaction();
7374757677787980
JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance(jbpmConfigurationResource); commandExecutorThread = new CommandExecutorThread(jbpmConfiguration); commandExecutorThread.start(); schedulerThread = new SchedulerThread(jbpmConfiguration); schedulerThread.start(); }
848586878889909192939495
superContext.setVariable("b", "value b"); superInstance.signal(); commitAndCloseSession(); try { SchedulerThread schedulerThread = new SchedulerThread(jbpmConfiguration); schedulerThread.executeTimers(); } finally { beginSessionTransaction(); } superInstance = jbpmContext.loadProcessInstance(superInstance.getId());