/**
* Parse Model BPMN properties.
- * <p>
* Example json: {"policy" :[{"id":"Policy_0oxeocn", "from":"StartEvent_1"}]}
*/
public class ModelBpmn {
private List<String> bpmnElementIds;
/**
- * Create ModelBpmn and populate maps from json
+ * Create ModelBpmn and populate maps from json.
*
- * @param modelBpmnPropText
- * @return
+ * @param modelBpmnPropText The model bpmn properties text
+ * @return The model bpmn
*/
public static ModelBpmn create(String modelBpmnPropText) {
try {
/**
* Add entry to both maps.
*
- * @param entry
+ * @param entry The model bpmn entry.
*/
private void addEntry(ModelBpmnEntry entry) {
addEntry(entriesByType, entry, entry.getType());
/**
* Add an entry to provided map with provided key.
*
- * @param map
- * @param entry
- * @param key
+ * @param map The map to add the model bpmn entry
+ * @param entry The model bmpn entry
+ * @param key The key
*/
private static void addEntry(Map<String, List<ModelBpmnEntry>> map, ModelBpmnEntry entry, String key) {
List<ModelBpmnEntry> list = map.computeIfAbsent(key, k -> new ArrayList<>());
}
/**
+ * Get the id.
* @return the id field given the ModelElement type
*/
public String getId(String type) {
}
/**
+ * Get the form id.
* @return the fromId field given the ModelElement type
*/
public String getFromId(String type) {
}
/**
+ * Get the type.
* @return the ModelElement type given the ModelElement id
*/
public String getType(String id) {
}
/**
+ * Get the bpmn element ids.
* @return list of elementIds from bpmn
*/
public List<String> getBpmnElementIds() {