merge_EPN.alc 352 B

123456789101112131415161718
  1. include "primitives.alh"
  2. Boolean function main(model : Element):
  3. Element keys
  4. String key
  5. Element split
  6. Element tm
  7. tm = model["type_mapping"]
  8. keys = dict_keys(tm)
  9. while (read_nr_out(keys) > 0):
  10. key = set_pop(keys)
  11. split = string_split(tm[key], "/")
  12. dict_overwrite(tm, key, string_join("Encapsulated_PetriNet/", split[1]))
  13. return True!