Search in sources :

Example 1 with UserTaskExecutionListener

use of org.activiti.crystalball.simulator.delegate.UserTaskExecutionListener in project Activiti by Activiti.

the class ReplayRunTest method getProcessEngineConfiguration.

private ProcessEngineConfigurationImpl getProcessEngineConfiguration() {
    ProcessEngineConfigurationImpl configuration = new org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration();
    configuration.setHistory("full").setDatabaseSchemaUpdate("drop-create").setJobExecutorActivate(false);
    configuration.setCustomDefaultBpmnParseHandlers(Arrays.<BpmnParseHandler>asList(new AddListenerUserTaskParseHandler(TaskListener.EVENTNAME_CREATE, new UserTaskExecutionListener(USER_TASK_COMPLETED_EVENT_TYPE, USER_TASK_COMPLETED_EVENT_TYPE, listener.getSimulationEvents()))));
    configuration.setEventListeners(Arrays.<ActivitiEventListener>asList(listener));
    return configuration;
}
Also used : AddListenerUserTaskParseHandler(org.activiti.crystalball.simulator.impl.bpmn.parser.handler.AddListenerUserTaskParseHandler) UserTaskExecutionListener(org.activiti.crystalball.simulator.delegate.UserTaskExecutionListener) ProcessEngineConfigurationImpl(org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl)

Aggregations

UserTaskExecutionListener (org.activiti.crystalball.simulator.delegate.UserTaskExecutionListener)1 AddListenerUserTaskParseHandler (org.activiti.crystalball.simulator.impl.bpmn.parser.handler.AddListenerUserTaskParseHandler)1 ProcessEngineConfigurationImpl (org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl)1