| Summary: | wrong init transition will be fired | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] eTrice | Reporter: | Thomas Jung <tj> | ||||
| Component: | Generators | Assignee: | Project Inbox <etrice.generators-inbox> | ||||
| Status: | CLOSED WORKSFORME | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | hrr | ||||
| Version: | 0.1.0 | Flags: | hrr:
indigo+
|
||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | 0.1.0 | ||||||
| Attachments: |
|
||||||
For the attached model the generator produces
public void executeInitTransition() {
int chain = CHAIN_TRANS_INITIAL_TO__blinking;
which is the right transition.
The chain starting at the initial transition of the sub-state 'blinking' would be CHAIN_blinking_TRANS_INITIAL_TO__off.
I've also verified in the code that the generator is picking the initial transition of the top level state machine.
closed resolved bug |
Created attachment 195647 [details] testmodel If a FSM has a State with substate, the substate init transition will be used as init transition instead of the top level init transition. Attached a model to reproduce the fault.