pytransitions/transitions-gui

Incorrect Event highlights on webpage

Bilby42 opened this issue · 0 comments

I'm taking advantage of the "conditions" and "unless" features within the transition table.
For instance;

transitions = [ {'trigger': 'select_ramp_direction', 'source': 'calc_step', 'dest': 'acquire_vboost', 'unless': 'Vtest_LT_target'}, {'trigger': 'select_ramp_direction', 'source': 'calc_step', 'dest': 'acquire_phase', 'conditions': 'Vtest_LT_target'}]

Firing the event "select_ramp_direction" will select one of two states based on the status of the callback "Test_LT_target".
When viewing this on the web client, the states correctly indicate program flow using highlighting. However the event lines highlight the wrong direction. I'm assuming this is because transitions recurses through the entire transition table but only highlights the first entry.

Obviously this display issue doesn't happen if there is only a single trigger value. Is this a bug, or am I simply using the transitions-gui incorrectly?