rcasteran / jarvis4se

JARVIS for Systems Engineers
https://regis-casteran.gitbook.io/jarvis4se/
MIT License
3 stars 1 forks source link

Message order in sequence diagram #4

Closed rcasteran closed 2 years ago

rcasteran commented 2 years ago

Impacted version jarvis4se version: 1.1.1

Describe the bug Message order in sequence diagram is wrong

To Reproduce Execute the following commands:

%%jarvis
with test
EF1 is a function
EF2 is a function
MF is a function

a is a data
EF1 produces a
MF consumes a

b is a data
MF produces b
EF2 consumes b

F1 is a function
F2 is a function
F3 is a function
F4 is a function
F5 is a function
F6 is a function

MF is composed of F1
MF is composed of F2
MF is composed of F3
MF is composed of F4
MF is composed of F5
MF is composed of F6

F3 consumes a
F1 produces b

c is a data
The type of c is "Flow"
F2 produces c
F4 consumes c
F6 consumes c

d is a data
The type of d is "Flow"
F5 produces d
F3 consumes d

e is a data
The type of c is "Flow"
F3 produces e
F1 consumes e
F4 consumes e

f is a data
The type of f is "Flow"
F6 produces f
F3 consumes f

g is a data
The type of g is "Flow"
F4 produces g
F1 consumes g
%%jarvis
with test
under TEST

f implies c
e implies f
e implies a
e implies d
g implies e
b implies e
b implies g

show sequence EF1, F2, F5, F6, F3, F4, F1, EF2

Expected behavior Message order must be stable for all executions, but it does not. Message order does not respect the implication order for some execution. For example:

Screenshots Generated diagram as an example: http://www.plantuml.com/plantuml/svg/TPBT3i8W34Rl-nJr0RXWRFWJi-nLSElCeh9bOvhuz9OO58pSGSxvsjBGBCxCRhrTORaC5kTn8TXCipdV33eQd-ZcbM1YPsY7oLY7VO77uselTdpOkawHpgCgZrGUbLb4lSp7yeX-nZUj6-x64JyhEfV0cgXz_mDAWMt4T62QMU5PH_-hA637cufD9R1FJ1sP5V1-WbaAx1AJgVfCKmcaA2a3ayoqPso5-rRWEQbKVfEyF_0x35rt0atiUXv7LHmju9tqsppWNk0fSMLQg826RCT_x0K=

Desktop (please complete the following information):