IBM® Rational® Software Architect and IBM® Rational® Software Modeler provide a comprehensive API that allows you to retrieve information from models. If you are interested in creating a custom Model Driven Architecture solution, you might want to create sequence diagrams in the tool, and then retrieve the sequence of exchanged messages programmatically, in order to generate code from these diagrams.
This technote shows how you can write a simple pluglet to list all messages sent and received by a Lifeline, in the same order as they appear on the Sequence Diagram. It also shows the hierarchical structure of Fragments that the messages belong to.
[{"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Modeling","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"6.0","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}},{"Product":{"code":"SSCLKU","label":"Rational Software Modeler"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Modeling","Platform":[{"code":"","label":"RedHat Enterprise Linux WS"},{"code":"","label":"SuSe Linux"},{"code":"","label":"Windows 2000 Advanced Server"},{"code":"","label":"Windows 2000 Professional"},{"code":"","label":"Windows 2000 Server"},{"code":"","label":"Windows 2003"},{"code":"","label":"Windows XP Pro"}],"Version":"V6.0","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}},{"Product":{"code":"SSJP3D","label":"Rational Systems Developer"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Component":"Modeling","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.