public ProcessFullDefinition getProcess(String packageId, String processId, String version) { for (Querier querier : queriers) { ProcessFullDefinition process = querier.getProcess(packageId, processId, version); if (process != null) { return process; } } return null; }
@Override public InternalProcessDefinition getProcess(final ProcessDefinitionUUID processUUID) { for (final Querier querier : queriers) { final InternalProcessDefinition process = querier.getProcess(processUUID); if (process != null) { return process; } } return null; }
@Override public InternalProcessDefinition getProcess(final String processId, final String version) { for (final Querier querier : queriers) { final InternalProcessDefinition process = querier.getProcess(processId, version); if (process != null) { return process; } } return null; }
public ProcessFullDefinition getProcess(ProcessDefinitionUUID processUUID) { for (Querier querier : queriers) { ProcessFullDefinition process = querier.getProcess(processUUID); if (process != null) { return process; } } return null; }
public ProcessFullDefinition getProcess(String packageId, String processId, String version) { for (Querier querier : queriers) { ProcessFullDefinition process = querier.getProcess(packageId, processId, version); if (process != null) { return process; } } return null; }
private static Map<String, Object> getProcessDatafieldsVariables(final ProcessDefinitionUUID processUUID, final Set<String> variablesToIgnore) throws InstanceNotFoundException, GroovyException { final Map<String, Object> processDatafieldsVariables = new HashMap<String, Object>(); if (processUUID != null) { final InternalProcessDefinition process = EnvTool.getAllQueriers().getProcess(processUUID); final Set<DataFieldDefinition> datafields = process.getDataFields(); processDatafieldsVariables.putAll(getMissingProcessDefinitionDataFields(datafields, variablesToIgnore, processUUID)); } return processDatafieldsVariables; }
private static Set<Performer> getPerformers(final ActivityDefinition activityDefinition) { final Set<String> performers = activityDefinition.getPerformers(); Set<Performer> result = null; if (!performers.isEmpty()) { final ProcessDefinition processDef = EnvTool.getJournalQueriers().getProcess( activityDefinition.getProcessDefinitionUUID()); result = new HashSet<Performer>(); for (final String performer : performers) { result.add(getPerformer(activityDefinition, processDef, performer)); } } return result; }
public static InternalProcessDefinition getProcessDefinition(final ProcessDefinitionUUID processUUID) throws ProcessNotFoundException { Misc.checkArgsNotNull(processUUID); final Querier journal = EnvTool.getJournalQueriers(); final InternalProcessDefinition process = (InternalProcessDefinition) journal.getProcess(processUUID); if (process == null) { throw new ProcessNotFoundException("bai_FU_1", processUUID); } return process; }
@Override public void updateMigrationDate(final ProcessDefinitionUUID processUUID, final Date migrationDate) throws ProcessNotFoundException { Misc.checkArgsNotNull(processUUID); final InternalProcessDefinition process = EnvTool.getAllQueriers().getProcess(processUUID); if (process == null) { throw new ProcessNotFoundException("bai_QDAPII_5", processUUID); } process.setMigrationDate(migrationDate); }
public ProcessDefinition getProcess(String packageId, String processId, String processVersion) throws ProcessNotFoundException { FacadeUtil.checkArgsNotNull(packageId, processId, processVersion); ProcessFullDefinition process = EnvTool.getAllQueriers().getProcess(packageId, processId, processVersion); if (process == null) { throw new ProcessNotFoundException(processId, processVersion); } return new ProcessDefinitionImpl(process); }
@Override public void deleteAllProcessInstances(final ProcessDefinitionUUID processUUID) throws ProcessNotFoundException, UndeletableInstanceException { FacadeUtil.checkArgsNotNull(processUUID); final Querier querier = EnvTool.getAllQueriers(); final ProcessDefinition process = querier.getProcess(processUUID); if (process == null) { throw new ProcessNotFoundException("bai_RAPII_5", processUUID); } deleteAllProcessInstances(process); }
@Override public void deleteProcessMetaData(final ProcessDefinitionUUID uuid, final String key) throws ProcessNotFoundException { FacadeUtil.checkArgsNotNull(uuid, key); final InternalProcessDefinition process = EnvTool.getAllQueriers().getProcess(uuid); if (process == null) { throw new ProcessNotFoundException("bai_RAPII_29", uuid); } process.deleteAMetaData(key); }
@Override public void addProcessMetaData(final ProcessDefinitionUUID uuid, final String key, final String value) throws ProcessNotFoundException { FacadeUtil.checkArgsNotNull(uuid, key, value); final InternalProcessDefinition process = EnvTool.getAllQueriers().getProcess(uuid); if (process == null) { throw new ProcessNotFoundException("bai_RAPII_29", uuid); } process.addAMetaData(key, value); }
public ProcessDefinition getProcess(ProcessDefinitionUUID processUUID) throws ProcessNotFoundException { FacadeUtil.checkArgsNotNull(processUUID); ProcessFullDefinition process = EnvTool.getAllQueriers().getProcess(processUUID); if (process == null) { throw new ProcessNotFoundException(processUUID); } return new ProcessDefinitionImpl(process); }
@Override public String getProcessMetaData(final ProcessDefinitionUUID uuid, final String key) throws ProcessNotFoundException { FacadeUtil.checkArgsNotNull(uuid, key); final ProcessDefinition process = EnvTool.getAllQueriers(getQueryList()).getProcess(uuid); if (process == null) { throw new ProcessNotFoundException("bai_QDAPII_19", uuid); } return process.getAMetaData(key); }
@Override public Date getMigrationDate(final ProcessDefinitionUUID processUUID) throws ProcessNotFoundException { FacadeUtil.checkArgsNotNull(processUUID); final InternalProcessDefinition process = EnvTool.getAllQueriers(getQueryList()).getProcess(processUUID); if (process == null) { throw new ProcessNotFoundException("bai_QDAPII_5", processUUID); } return process.getMigrationDate(); }
@Override public LightProcessDefinition setProcessCategories(final ProcessDefinitionUUID aProcessUUID, final Set<String> aCategoriesName) throws ProcessNotFoundException { FacadeUtil.checkArgsNotNull(aProcessUUID); final InternalProcessDefinition internalProcess = EnvTool.getAllQueriers().getProcess(aProcessUUID); if (internalProcess == null) { throw new ProcessNotFoundException("web_1", aProcessUUID); } internalProcess.setCategories(aCategoriesName); return new LightProcessDefinitionImpl(internalProcess); }
public Set<ParticipantDefinition> getProcessParticipants(ProcessDefinitionUUID processUUID) throws ProcessNotFoundException { FacadeUtil.checkArgsNotNull(processUUID); ProcessFullDefinition process = EnvTool.getAllQueriers().getProcess(processUUID); if (process == null) { throw new ProcessNotFoundException(processUUID); } Set<ParticipantDefinition> participants = process.getParticipants(); return getParticipantCopy(participants); }
public Set<DataFieldDefinition> getProcessDataFields(ProcessDefinitionUUID processDefinitionUUID) throws ProcessNotFoundException { FacadeUtil.checkArgsNotNull(processDefinitionUUID); ProcessFullDefinition process = EnvTool.getAllQueriers().getProcess(processDefinitionUUID); if (process == null) { throw new ProcessNotFoundException(processDefinitionUUID); } Set<DataFieldDefinition> datafields = process.getDataFields(); return getDataFieldCopy(datafields); }
@Override public Set<ActivityDefinition> getProcessActivities(final ProcessDefinitionUUID processUUID) throws ProcessNotFoundException { FacadeUtil.checkArgsNotNull(processUUID); final ProcessDefinition process = EnvTool.getAllQueriers(getQueryList()).getProcess(processUUID); if (process == null) { throw new ProcessNotFoundException("bai_QDAPII_7", processUUID); } final Set<ActivityDefinition> activities = process.getActivities(); return getActivityCopy(activities); }