Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345814

Summary: wrong init transition will be fired
Product: [Modeling] eTrice Reporter: Thomas Jung <tj>
Component: GeneratorsAssignee: Project Inbox <etrice.generators-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: hrr
Version: 0.1.0Flags: hrr: indigo+
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: 0.1.0
Attachments:
Description Flags
testmodel none

Description Thomas Jung CLA 2011-05-14 12:29:31 EDT
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.
Comment 1 Henrik Rentz-Reichert CLA 2011-05-18 05:14:25 EDT
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.
Comment 2 Henrik Rentz-Reichert CLA 2011-12-16 02:45:45 EST
closed resolved bug