/** * {@inheritDoc} */ public List<WorkflowDefinition> getAllDefinitions() { try { ProcessDefinitionQuery query = repoService.createProcessDefinitionQuery(); if(activitiUtil.isMultiTenantWorkflowDeploymentEnabled() && !TenantUtil.isCurrentDomainDefault()) { query.processDefinitionKeyLike("@" + TenantUtil.getCurrentDomain() + "%"); } return getValidWorkflowDefinitions(query.list()); } catch (ActivitiException ae) { String msg = messageService.getMessage(ERR_GET_WORKFLOW_DEF); if(logger.isDebugEnabled()) { logger.debug(msg, ae); } throw new WorkflowException(msg, ae); } }
processDefinitionQuery.processDefinitionKeyLike(allRequestParams.get("keyLike"));
public List<KickstartWorkflowInfo> findWorkflowInformation(boolean includeCounts) { List<ProcessDefinition> processDefinitions = repositoryService .createProcessDefinitionQuery() .processDefinitionKeyLike("adhoc_%") .orderByProcessDefinitionName().asc() .orderByProcessDefinitionVersion().desc().list(); return transformationService.convertToWorkflowInfoList(processDefinitions, includeCounts); }
/** * {@inheritDoc} */ public List<WorkflowDefinition> getAllDefinitions() { try { ProcessDefinitionQuery query = repoService.createProcessDefinitionQuery(); if(activitiUtil.isMultiTenantWorkflowDeploymentEnabled() && !TenantUtil.isCurrentDomainDefault()) { query.processDefinitionKeyLike("@" + TenantUtil.getCurrentDomain() + "%"); } return getValidWorkflowDefinitions(query.list()); } catch (ActivitiException ae) { String msg = messageService.getMessage(ERR_GET_WORKFLOW_DEF); if(logger.isDebugEnabled()) { logger.debug(msg, ae); } throw new WorkflowException(msg, ae); } }
/** * {@inheritDoc} */ public List<WorkflowDefinition> getDefinitions() { try { ProcessDefinitionQuery query = repoService.createProcessDefinitionQuery().latestVersion(); if(activitiUtil.isMultiTenantWorkflowDeploymentEnabled() && !TenantUtil.isCurrentDomainDefault()) { query.processDefinitionKeyLike("@" + TenantUtil.getCurrentDomain() + "%"); } return getValidWorkflowDefinitions(query.list()); } catch (ActivitiException ae) { String msg = messageService.getMessage(ERR_GET_WORKFLOW_DEF); if(logger.isDebugEnabled()) { logger.debug(msg, ae); } throw new WorkflowException(msg, ae); } }
/** * {@inheritDoc} */ public List<WorkflowDefinition> getDefinitions() { try { ProcessDefinitionQuery query = repoService.createProcessDefinitionQuery().latestVersion(); if(activitiUtil.isMultiTenantWorkflowDeploymentEnabled() && !TenantUtil.isCurrentDomainDefault()) { query.processDefinitionKeyLike("@" + TenantUtil.getCurrentDomain() + "%"); } return getValidWorkflowDefinitions(query.list()); } catch (ActivitiException ae) { String msg = messageService.getMessage(ERR_GET_WORKFLOW_DEF); if(logger.isDebugEnabled()) { logger.debug(msg, ae); } throw new WorkflowException(msg, ae); } }