@Override public void addCasesToLabel(final String ownerName, final String labelName, final Set<ProcessInstanceUUID> caseList, final Map<String, String> options) throws RemoteException { getAPI(options).addCasesToLabel(ownerName, labelName, caseList); }
@Override public void deleteAllCases(final Map<String, String> options) throws RemoteException { getAPI(options).deleteAllCases(); }
@Override public Set<Category> getAllCategories(final Map<String, String> options) throws RemoteException { return getAPI(options).getAllCategories(); }
return webAPI.getAllCategoriesByUUIDExcept(exceptions); } else { return webAPI.getAllCategories(); final Set<Category> tempResult = webAPI.getCategoriesByUUIDs(exceptions); if (tempResult == null || tempResult.isEmpty()) { return Collections.emptySet();
@Override public void removeAllCasesFromLabels(final Set<ProcessInstanceUUID> caseList, final Map<String, String> options) throws RemoteException { getAPI(options).removeAllCasesFromLabels(caseList); }
public void removeLabels(String ownerName, List<String> labelNames, Map<String, String> options) throws RemoteException { getAPI(options).removeLabels(ownerName, labelNames); }
@Override public void removeAllLabelsExcept(final Set<String> labelNames, final Map<String, String> options) throws RemoteException { getAPI(options).removeAllLabelsExcept(labelNames); }
@Override public void removeCasesFromLabel(final String ownerName, final String labelName, final Set<ProcessInstanceUUID> caseList, final Map<String, String> options) throws RemoteException { getAPI(options).removeCasesFromLabel(ownerName, labelName, caseList); }
@Override public Set<Category> getCategoriesByUUIDs(final Set<CategoryUUID> uuids, final Map<String, String> options) throws RemoteException { return getAPI(options).getCategoriesByUUIDs(uuids); }
@Override public Set<Category> getAllCategoriesByUUIDExcept(final Set<CategoryUUID> uuids, final Map<String, String> options) throws RemoteException { return getAPI(options).getAllCategoriesByUUIDExcept(uuids); }
@Override public void addCategory(final String name, final String iconCSSStyle, final String previewCSSStyleName, final String cssStyleName, final Map<String, String> options) throws RemoteException, CategoryAlreadyExistsException { getAPI(options).addCategory(name, iconCSSStyle, previewCSSStyleName, cssStyleName); }
return webAPI.getAllCategoriesByUUIDExcept(exceptions); } else { return webAPI.getAllCategories(); final Set<Category> tempResult = webAPI.getCategoriesByUUIDs(exceptions); if (tempResult == null || tempResult.isEmpty()) { return Collections.emptySet();
@Override public Void execute(final Environment environment) throws Exception { final APIAccessor accessor = new StandardAPIAccessorImpl(); if (instancesUUIDs != null && !instancesUUIDs.isEmpty()) { final WebAPI webAPI = accessor.getWebAPI(); final Set<ProcessInstanceUUID> uuids = new HashSet<ProcessInstanceUUID>(); final Set<String> instanceUuidsAsString = new HashSet<String>(); for (final ProcessInstanceUUID uuid : instancesUUIDs) { uuids.add(uuid); instanceUuidsAsString.add(uuid.getValue()); if (uuids.size() == 100) { webAPI.removeAllCasesFromLabels(uuids); uuids.clear(); instanceUuidsAsString.clear(); } } webAPI.removeAllCasesFromLabels(uuids); accessor.getRuntimeAPI().deleteProcessInstances(instancesUUIDs); } return null; }
@Override public void removeLabels(final Set<String> labelNames, final Map<String, String> options) throws RemoteException { getAPI(options).removeLabels(labelNames); }
public Void execute(Environment environment) throws Exception { final APIAccessor accessor = new StandardAPIAccessorImpl(); final WebAPI webAPI = accessor.getWebAPI(); webAPI.removeAllLabelsExcept(labelNames); return null; }
public void removeCasesFromLabel(String ownerName, String labelName, Set<ProcessInstanceUUID> instanceUUIDs) { if (instanceUUIDs != null && !instanceUUIDs.isEmpty()) { final APIAccessor accessor = new StandardAPIAccessorImpl(); accessor.getWebAPI().removeCasesFromLabel(ownerName, labelName, instanceUUIDs); } } }
@Override public Void execute(final Environment environment) throws Exception { final APIAccessor accessor = new StandardAPIAccessorImpl(); if (instancesUUIDs != null && !instancesUUIDs.isEmpty()) { final WebAPI webAPI = accessor.getWebAPI(); final Set<ProcessInstanceUUID> uuids = new HashSet<ProcessInstanceUUID>(); final Set<String> instanceUuidsAsString = new HashSet<String>(); for (final ProcessInstanceUUID uuid : instancesUUIDs) { uuids.add(uuid); instanceUuidsAsString.add(uuid.getValue()); if (uuids.size() == 100) { webAPI.removeAllCasesFromLabels(uuids); uuids.clear(); instanceUuidsAsString.clear(); } } webAPI.removeAllCasesFromLabels(uuids); accessor.getRuntimeAPI().deleteProcessInstances(instancesUUIDs); } return null; }
public void removeLabels(String ownerName, Collection<String> labelNames, final Map<String, String> options) throws RemoteException { getAPI(options).removeLabels(ownerName, labelNames); }
public Void execute(Environment environment) throws Exception { final APIAccessor accessor = new StandardAPIAccessorImpl(); final WebAPI webAPI = accessor.getWebAPI(); webAPI.removeAllLabelsExcept(labelNames); return null; }
public void removeCasesFromLabel(String ownerName, String labelName, Set<ProcessInstanceUUID> instanceUUIDs) { if (instanceUUIDs != null && !instanceUUIDs.isEmpty()) { final APIAccessor accessor = new StandardAPIAccessorImpl(); accessor.getWebAPI().removeCasesFromLabel(ownerName, labelName, instanceUUIDs); } } }