I am using Rhapsody in C.
Imagine a statechart with 3 states: state 1, state 2 and state 3.
Assume that I am in state 1.
How can I implement the following scenario? I mean, I dont know where should I write these conditions so that following scenario is satisfied.
Scenario: I enter state 1. Now,
if (condition 1)
if (condition 2)
myVariable = 10; //set the value of a variable
if (condition 3)
goto state 2
goto state 3
Can someone attach a sample project illustrating this?
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
4 replies Latest Post - 2013-02-07T15:08:38Z by SystemAdmin
Pinned topic Nested if for transition in statemachine
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-02-07T15:08:38Z at 2013-02-07T15:08:38Z by SystemAdmin
shanz9903 270003S6R4268 Posts