Search in sources :

Example 1 with RecordableProcessEngineFactory

use of org.activiti.crystalball.simulator.impl.RecordableProcessEngineFactory in project Activiti by Activiti.

the class AbstractPlaybackTest method initializeProcessEngine.

@Override
protected void initializeProcessEngine() {
    Clock clock = new DefaultClockImpl();
    ProcessEngineConfiguration processEngineConfiguration = ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault();
    processEngineConfiguration.setClock(clock);
    this.processEngine = (new RecordableProcessEngineFactory((ProcessEngineConfigurationImpl) processEngineConfiguration, listener)).getObject();
}
Also used : ProcessEngineConfiguration(org.activiti.engine.ProcessEngineConfiguration) DefaultClockImpl(org.activiti.engine.impl.util.DefaultClockImpl) ThreadLocalClock(org.activiti.crystalball.simulator.impl.clock.ThreadLocalClock) Clock(org.activiti.engine.runtime.Clock) ProcessEngineConfigurationImpl(org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl) RecordableProcessEngineFactory(org.activiti.crystalball.simulator.impl.RecordableProcessEngineFactory)

Aggregations

RecordableProcessEngineFactory (org.activiti.crystalball.simulator.impl.RecordableProcessEngineFactory)1 ThreadLocalClock (org.activiti.crystalball.simulator.impl.clock.ThreadLocalClock)1 ProcessEngineConfiguration (org.activiti.engine.ProcessEngineConfiguration)1 ProcessEngineConfigurationImpl (org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl)1 DefaultClockImpl (org.activiti.engine.impl.util.DefaultClockImpl)1 Clock (org.activiti.engine.runtime.Clock)1