cepsdev / mermaid

Visualization, querying and transformation of ceps models
MIT License
2 stars 0 forks source link

Incoming and outgoing event information in the output from extract_events_transitively_and_group.ceps #2

Closed Abhishek2271 closed 1 year ago

Abhishek2271 commented 1 year ago

Ceps file version: 0.8.1

Currently, extract_events_transitively_and_group.ceps only traverses transitions to extract events within ceps. It would be nice to have it also extract the event information from outside the transitions (like from actions) so that we can then assign directions in the output json.

For example:

Current output:

{
  "components":
 [
    {"name":"S1", "events":["E1","E2"]},
    {"name":"S2", "events":["E3","E4","E5"]}
 ]
}

Could contain additional info like:

{
  "components":
 [
    {"name":"S1", "in_events":["E1","E2"], "out_events":["E3", "E4"]},
    {"name":"S2", "in_events":["E3","E4","E5"], "out_events":["E1", "E2"]}
 ]
}
cepsdev commented 1 year ago

Feature ready, see README. A bugfix in ceps-core was necessary, is included in ver. 8.1.1

cepsdev commented 1 year ago

Implemented.