log.error(outputMessage.toString()); ((ProcessEngineImpl) processEngine).getProcessEngineConfiguration().getCommandExecutor().execute(new Command<Object>() { public Object execute(CommandContext commandContext) { DbSqlSession dbSqlSession = commandContext.getDbSqlSession();
@Override public ProcessEngine buildProcessEngine() { init(); ProcessEngineImpl processEngine = new ProcessEngineImpl(this); postProcessEngineInitialisation(); return processEngine; }
@Override public ProcessEngine buildProcessEngine() { init(); ProcessEngineImpl processEngine = new ProcessEngineImpl(this); // trigger build of Activiti 5 Engine if (isActiviti5CompatibilityEnabled && activiti5CompatibilityHandler != null) { Context.setProcessEngineConfiguration(processEngine.getProcessEngineConfiguration()); activiti5CompatibilityHandler.getRawProcessEngine(); } postProcessEngineInitialisation(); return processEngine; }
RepositoryService repositoryService = defaultProcessEngine.getRepositoryService(); ProcessEngineConfiguration processEngineConfiguration = defaultProcessEngine.getProcessEngineConfiguration(); ProcessDiagramGenerator diagramGenerator = processEngineConfiguration.getProcessDiagramGenerator();
public void destroy() throws Exception { if (processEngine != null) { processEngine.close(); } }
protected void initializeProcessEngine() { if (cachedProcessEngine == null) { pluggableActivitiTestCaseLogger.info("No cached process engine found for test. Retrieving the default engine."); ProcessEngines.destroy(); // Just to be sure we're not getting any previously cached version cachedProcessEngine = ProcessEngines.getDefaultProcessEngine(); if (cachedProcessEngine == null) { throw new ActivitiException("no default process engine available"); } } processEngine = cachedProcessEngine; processEngineConfiguration = ((ProcessEngineImpl) processEngine).getProcessEngineConfiguration(); // Enable verbose execution tree debugging if needed if (this.getClass().isAnnotationPresent(EnableVerboseExecutionTreeLogging.class)) { swapCommandInvoker(true); } }
@Override public ProcessEngine buildProcessEngine() { init(); return new ProcessEngineImpl(this); }
CommandExecutor commandExecutor = ((ProcessEngineImpl) processEngine).getProcessEngineConfiguration().getCommandExecutor(); CommandConfig config = new CommandConfig().transactionNotSupported(); commandExecutor.execute(config, new Command<Object>() {
public ProcessEngine buildProcessEngine() { init(); return new ProcessEngineImpl(this); }
protected void initializeServices() { processEngineConfiguration = ((ProcessEngineImpl) processEngine).getProcessEngineConfiguration(); repositoryService = processEngine.getRepositoryService(); runtimeService = processEngine.getRuntimeService(); taskService = processEngine.getTaskService(); historicDataService = processEngine.getHistoryService(); managementService = processEngine.getManagementService(); }
public static void main(String[] args) { ProcessEngineImpl processEngine = (ProcessEngineImpl) ProcessEngines.getDefaultProcessEngine(); CommandExecutor commandExecutor = processEngine.getProcessEngineConfiguration().getCommandExecutor(); CommandConfig config = new CommandConfig().transactionNotSupported(); commandExecutor.execute(config, new Command<Object>() { public Object execute(CommandContext commandContext) { commandContext.getDbSqlSession().dbSchemaDrop(); return null; } }); } }
public static void main(String[] args) { ProcessEngineImpl processEngine = (ProcessEngineImpl) ProcessEngines.getDefaultProcessEngine(); CommandExecutor commandExecutor = processEngine.getProcessEngineConfiguration().getCommandExecutor(); CommandConfig config = new CommandConfig().transactionNotSupported(); commandExecutor.execute(config, new Command<Object>() { public Object execute(CommandContext commandContext) { commandContext.getDbSqlSession().dbSchemaUpdate(); return null; } }); }
public ActivitiMockSupport(ProcessEngine processEngine) { ProcessEngineConfigurationImpl processEngineConfiguration = ((ProcessEngineImpl) processEngine).getProcessEngineConfiguration(); ActivityBehaviorFactory existingActivityBehaviorFactory = processEngineConfiguration.getActivityBehaviorFactory(); this.testActivityBehaviorFactory = new TestActivityBehaviorFactory(existingActivityBehaviorFactory); processEngineConfiguration.setActivityBehaviorFactory(testActivityBehaviorFactory); processEngineConfiguration.getBpmnParser().setActivityBehaviorFactory(testActivityBehaviorFactory); }
protected void initializeServices() { processEngineConfiguration = ((ProcessEngineImpl) processEngine).getProcessEngineConfiguration(); repositoryService = processEngine.getRepositoryService(); runtimeService = processEngine.getRuntimeService(); taskService = processEngine.getTaskService(); historyService = processEngine.getHistoryService(); managementService = processEngine.getManagementService(); dynamicBpmnService = processEngine.getDynamicBpmnService(); }
private ProcessEngineConfigurationImpl doGetProcessEngineConfiguration() { ProcessEngineConfigurationImpl configuration = null; if (this.processEngine instanceof ProcessEngineImpl) { configuration = ((ProcessEngineImpl) this.processEngine).getProcessEngineConfiguration(); } return configuration; }
log.error(outputMessage.toString()); ((ProcessEngineImpl) processEngine).getProcessEngineConfiguration().getCommandExecutor().execute(new Command<Object>() { public Object execute(CommandContext commandContext) { DbSqlSession dbSqlSession = commandContext.getDbSqlSession();
.getProcessEngineConfiguration() .getCommandExecutorTxRequired() .execute(new Command<Object>() {
@Override protected void onShutdown(ApplicationEvent event) { if(workflowAdminService.isEngineEnabled(ActivitiConstants.ENGINE_ID) && ((ProcessEngineImpl)processEngine).getProcessEngineConfiguration().getJobExecutor().isActive()) { ((ProcessEngineImpl)processEngine).getProcessEngineConfiguration().getJobExecutor().shutdown(); } } }
@Override protected void onShutdown(ApplicationEvent event) { if(workflowAdminService.isEngineEnabled(ActivitiConstants.ENGINE_ID) && ((ProcessEngineImpl)processEngine).getProcessEngineConfiguration().getJobExecutor().isActive()) { ((ProcessEngineImpl)processEngine).getProcessEngineConfiguration().getJobExecutor().shutdown(); } } }
protected void initializeProcessEngine() { if (cachedProcessEngine == null) { pluggableActivitiTestCaseLogger.info("No cached process engine found for test. Retrieving the default engine."); ProcessEngines.destroy(); // Just to be sure we're not getting any previously cached version cachedProcessEngine = ProcessEngines.getDefaultProcessEngine(); if (cachedProcessEngine == null) { throw new ActivitiException("no default process engine available"); } } processEngine = cachedProcessEngine; processEngineConfiguration = ((ProcessEngineImpl) processEngine).getProcessEngineConfiguration(); // Enable verbose execution tree debugging if needed if (this.getClass().isAnnotationPresent(EnableVerboseExecutionTreeLogging.class)) { swapCommandInvoker(true); } }