1
Bugs and Issues / ESTM: completion transitions from composite states
« on: January 30, 2024, 07:53:18 pm »
Hi all,
we're using Executable State Machines (ESTM) for simulating State Machines STMs. Right now, we're reengineering our control system which is modeled by means of STM. The original code of the controller is working cyclically in opposite of event driven. Thus, all the transitions of the STMs are given as logical conditions, not as triggers. To consider this in STM-model one have to use guards to define completion transitions. Completion transitions utilize completion events, which are generated internally from automatic code generator of ESTM. Because of the fact that completion events are generated only once after the last action has had done and nothing has to be done in this situation, we add unconditioned loop transitions to each state in the model. This causes the for each state the cylic generation of completion events and so the (completion-) transitions will be evaluated this way too. This work very well with normal states, but it don't with composite states. The problem here is that an unconditioned loop transition on a composite state will not cause genarating cyclic completion events because it never fires. That means that group transitions directly from the composite state to an state outside won't work.
Have anyone any idea to solve the problem ?
Thanks in advance for your help.
BR NB_SMO
we're using Executable State Machines (ESTM) for simulating State Machines STMs. Right now, we're reengineering our control system which is modeled by means of STM. The original code of the controller is working cyclically in opposite of event driven. Thus, all the transitions of the STMs are given as logical conditions, not as triggers. To consider this in STM-model one have to use guards to define completion transitions. Completion transitions utilize completion events, which are generated internally from automatic code generator of ESTM. Because of the fact that completion events are generated only once after the last action has had done and nothing has to be done in this situation, we add unconditioned loop transitions to each state in the model. This causes the for each state the cylic generation of completion events and so the (completion-) transitions will be evaluated this way too. This work very well with normal states, but it don't with composite states. The problem here is that an unconditioned loop transition on a composite state will not cause genarating cyclic completion events because it never fires. That means that group transitions directly from the composite state to an state outside won't work.
Have anyone any idea to solve the problem ?
Thanks in advance for your help.
BR NB_SMO