process_enactment.rst 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. Process Enactment
  2. =================
  3. A final operation that is useful to modellers, is the enactment of process models.
  4. When enacting a process model, a series of operations on models is automatically executed.
  5. Finding process models
  6. ----------------------
  7. To find process models, you can easily query the Modelverse for models that conform to *ProcessModel*.
  8. All such models can be executed, given that the models and operations they refer to, exist.
  9. Enacting process models
  10. -----------------------
  11. To enact the process model, such as *query_state_space*, you must execute the following operation::
  12. >>> process_execute("query_state_space", "my_", {})
  13. There are three parameters to this function, the first obviously being the name of the process model, as shown in *model_list*.
  14. The second parameter is a prefix for the models used in the process model.
  15. When executing a process model, data is processed and produced.
  16. By providing a prefix, the names of these models are first prefixed with the prefix, before they are resolved.
  17. As such, it becomes possible to execute a process in different contexts.
  18. .. note::
  19. This behaviour is likely to change in the future, with the process taking a mapping from the terms in the process model, to actual names.
  20. The third parameter is a dictionary of callbacks.
  21. For each activity, it is possible for users to define a callback function.
  22. This function will be invoked when the specific activity is executed.
  23. For example, a manual operation will require user input, for which this callback function can then serve.
  24. Further details are given later.