Question & Answer
Question
How do you access argument of an event when it triggers a transition using IBM Rational Rhapsody in Java?
Cause
If an event has an argument, then Rational Rhapsody in C/C++ provides a pointer called params that can be used on the transition where the event occurs to get access to the argument.
However Rational Rhapsody in Java does not support pointers.
Answer
In order to access argument of an event using Rational Rhapsody in Java you can use the pointer params as shown below.
Example : params.<event argument name>
Note: A sample model has been attached to demonstrate the usage of params with Rational Rhapsody in Java
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21638054