public Boolean apply(String engineId) { return workflowAdminService.isEngineEnabled(engineId); } });
public Boolean apply(String engineId) { return workflowAdminService.isEngineEnabled(engineId); } });
private String getModeratedDefinitionName() { if(workflowAdminService.isEngineEnabled(ActivitiConstants.ENGINE_ID)) { return moderatedInvitationWorkflowId; } throw new IllegalStateException("None of the Workflow engines supported by the InvitationService are currently enabled!"); }
private String getNominatedExternalDefinitionName() { if(workflowAdminService.isEngineEnabled(ActivitiConstants.ENGINE_ID)) { return nominatedInvitationExternalWorkflowId; } throw new IllegalStateException("None of the Workflow engines supported by the InvitationService are currently enabled!"); }
private String getNominatedDefinitionName() { if(workflowAdminService.isEngineEnabled(ActivitiConstants.ENGINE_ID)) { return nominatedInvitationWorkflowId; } throw new IllegalStateException("None of the Workflow engines supported by the InvitationService are currently enabled!"); }
private String getModeratedDefinitionName() { if(workflowAdminService.isEngineEnabled(ActivitiConstants.ENGINE_ID)) { return moderatedInvitationWorkflowId; } throw new IllegalStateException("None of the Workflow engines supported by the InvitationService are currently enabled!"); }
private String getNominatedExternalDefinitionName() { if(workflowAdminService.isEngineEnabled(ActivitiConstants.ENGINE_ID)) { return nominatedInvitationExternalWorkflowId; } throw new IllegalStateException("None of the Workflow engines supported by the InvitationService are currently enabled!"); }
private String getNominatedDefinitionName() { if(workflowAdminService.isEngineEnabled(ActivitiConstants.ENGINE_ID)) { return nominatedInvitationWorkflowId; } throw new IllegalStateException("None of the Workflow engines supported by the InvitationService are currently enabled!"); }
/** * Gets a specific BPM Engine Task Component * * @param engineId engine id * @return the Workflow Component */ public TaskComponent getTaskComponent(String engineId) { if(false == workflowAdminService.isEngineEnabled(engineId)) { if(logger.isDebugEnabled()) { logger.debug("Ignoring disabled TaskComponent: "+engineId); } return null; } return taskComponents.get(engineId); }
/** * Gets a specific BPM Engine Workflow Component * * @param engineId engine id * @return the Workflow Component */ public WorkflowComponent getWorkflowComponent(String engineId) { if(false == workflowAdminService.isEngineEnabled(engineId)) { if(logger.isDebugEnabled()) { logger.debug("Ignoring disabled WorkflowComponent: "+engineId); } return null; } return workflowComponents.get(engineId); }
/** * Gets a specific BPM Engine Workflow Component * * @param engineId engine id * @return the Workflow Component */ public WorkflowComponent getWorkflowComponent(String engineId) { if(false == workflowAdminService.isEngineEnabled(engineId)) { if(logger.isDebugEnabled()) { logger.debug("Ignoring disabled WorkflowComponent: "+engineId); } return null; } return workflowComponents.get(engineId); }
/** * Gets a specific BPM Engine Task Component * * @param engineId engine id * @return the Workflow Component */ public TaskComponent getTaskComponent(String engineId) { if(false == workflowAdminService.isEngineEnabled(engineId)) { if(logger.isDebugEnabled()) { logger.debug("Ignoring disabled TaskComponent: "+engineId); } return null; } return taskComponents.get(engineId); }
@Override protected void onBootstrap(ApplicationEvent event) { this.processEngine = getApplicationContext().getBean(ProcessEngine.class); if (workflowAdminService.isEngineEnabled(ActivitiConstants.ENGINE_ID)) { ((ProcessEngineImpl)processEngine).getProcessEngineConfiguration().getJobExecutor().start(); } }
@Override protected void onBootstrap(ApplicationEvent event) { this.processEngine = getApplicationContext().getBean(ProcessEngine.class); if (workflowAdminService.isEngineEnabled(ActivitiConstants.ENGINE_ID)) { ((ProcessEngineImpl)processEngine).getProcessEngineConfiguration().getJobExecutor().start(); } }
if (workflowAdminService.isEngineEnabled(engineId))
if (workflowAdminService.isEngineEnabled(engineId))
if (workflowAdminService.isEngineEnabled(engineId))
if(workflowAdminService.isEngineEnabled(ActivitiConstants.ENGINE_ID))
@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(); } } }