public boolean isProcessEnabled(String name, String version) { String[] versions = String.valueOf(getParameters().getOrDefault("process:" + name + ":versions","")).split(","); return MCollection.contains(versions, version); }
/** * Append the item to the end of the list using the separator if not already exists. * If list is empty the item will be the first element. * * @param list The list of items * @param separator The item separator * @param item New item to append * @return The new list */ public static String set(String list, char separator, String item) { if (item == null) return list; if (MString.isEmpty(list)) return item; if (contains(list, separator, item)) return list; return list + separator + item; }
/** * Enabled means the version can be instantiated. * @param name * @return true if it's allowed */ public boolean isProcessEnabled(String name) { String v = MString.afterIndex(name, ':'); String n = MString.beforeIndex(name, ':'); String[] versions = String.valueOf(getParameters().getOrDefault("process:" + n + ":versions","")).split(","); return MCollection.contains(versions, v); }
public void enableProcessVersion(String deployedName) { // add version String v = MString.afterIndex(deployedName, ':'); String n = MString.beforeIndex(deployedName, ':'); String[] versions = String.valueOf(getParameters().getOrDefault("process:" + n + ":versions","")).split(","); if (!MCollection.contains(versions, v)) { versions = MCollection.append(versions, v); getParameters().put("process:" + n + ":versions", MString.join(versions,',')); } }
MString.isEmpty(schema) && columnDef.schema().length == 0 || MCollection.contains(columnDef.schema(), schema) ) { int order = columnDef.order();
MString.isEmpty(schema) && columnDef.schema().length == 0 || MCollection.contains(columnDef.schema(), schema) ) { int order = columnDef.order();