This demonstration introduces IBM Rational XDE and IBM WebSphere Studio working together to improve J2EE software development. Esta demostración presenta la combinación de IBM Rational XDE e IBM WebSphere Studio para mejorar el desarrollo del software J2EE. We will now see how JK Insurance uses Rational XDE to seamlessly integrate model driven development with traditional Studio IDE development. Ahora veremos cómo JK Insurance utiliza Rational XDE para integrar totalmente el desarrollo por modelos con el desarrollo de Studio IDE convencional. Here we see the modeling perspective opened on a pre-existing Claims Enterprise Application project. Aquí vemos la perspectiva de modelación abierta en un proyecto previo de aplicación empresarial de reclamaciones. We will now model the Policy, Claims and Payments processes of JK Insurance and then transform that model into Java EJBs. Ahora modelaremos los procesos de pólizas, reclamaciones y pagos de JK Insurance y convertiremos el modelo en Java EJB. First we drag a class object onto the diagram surface and label it as the Policy class. Primero arrastramos un objeto de clase hasta la superficie del diagrama y le ponemos la etiqueta de clase Póliza. Next, we continue by adding the Claim class and Payment class. A continuación, añadimos la clase Reclamación y la clase Pago. We now add associations between the Payment and Claim classes and the Policy and Claim classes. Ahora incorporamos asociaciones entre las clases Pago y Reclamación y las clases Póliza y Reclamación. Here, we use the Properties view to define the class relationships. This simply means that each policy may have multiple claims and each claim could have multiple payments. Visit: http://demos.dfw.ibm.com for more demonstrations Page 1 of 5
Aquí, utilizamos la vista Properties para definir las relaciones de clase. Es decir, que cada póliza puede tener varias reclamaciones y que cada reclamación puede tener varios pagos. Visit: http://demos.dfw.ibm.com for more demonstrations Page 2 of 5
IBM Rational XDE provides all of the essential elements of UML modeling in one robust product, it gives you and your team common tools for creating and maintaining UML models for your software project. IBM Rational XDE proporciona todos los elementos esenciales de la modelación UML en un potente producto para ofrecerle herramientas comunes de creación y mantenimiento de modelos UML para su proyecto de software. Rational XDE also includes support for user-defined code templates for common code segments and patterns in standard business applications. Rational XDE también incluye soporte para las plantillas de códigos definidas por el usuario que permiten crear patrones y segmentos de código comunes en aplicaciones empresariales estándar. We now make a right-click on the Policy class and use Add UML which provides attributes to the class diagram. We then Add insuredname as a String and policytype as an Integer. Ahora pulsamos con el botón derecho en la clase Póliza y utilizamos la función Add UML, que otorga atributos al diagrama de clases. A continuación, añadimos insuredname como cadena y policytype como entero. Next, we use Add UML to add the policyinsertproc operation. A continuación, utilizamos la función Add UML para añadir la operación policyinsertproc. IBM Rational XDE Developer provides a visual design and development environment inside the WebSphere Studio Application Developer and Integration editions, Microsoft Visual Studio.Net and Eclipse IDEs. IBM Rational XDE Developer ofrece un entorno de desarrollo y diseño gráfico integrado en WebSphere Studio Application Developer Edition y WebSphere Studio Application Integration Edition, Microsoft Visual Studio.Net y Eclipse IDE. After we create the various operations and attributes, we proceed to the finished Claim System model. Después de crear las diferentes operaciones y atributos, pasaremos al modelo final del Sistema de reclamaciones. We can now transform the modeled classes to EJBs. Here, we select the 3 classes, right-click for the context menu and choose Transform. The classes will be converted to Container Managed Persistence EJBs. Visit: http://demos.dfw.ibm.com for more demonstrations Page 3 of 5
Ahora podemos transformar las clases modeladas en EJB. Aquí, seleccionamos las 3 clases, pulsamos con el botón derecho del ratón para que aparezca el menú contextual y elegimos Transform. Las clases se convertirán en Container Managed Persistence EJB. Rational XDE has complete modeling support for the full range of UML diagrams including Use Cases, Requirements and analysis models, Class, Component, Deployment, Sequence and Statechart models. El modelo de Rational XDE es totalmente compatible con todo tipo de diagramas UML, incluidos los modelos Use Cases, Requirements y Analysis, y los modelos Class, Component, Deployment, Sequence y Statechart. Rational Rose Models can be imported as well as industry standard XMI models. Also XDE has reverse-engineering support to generate models from Java classes. Los modelos Rational Rose también pueden importarse como modelos XMI estándares. Asimismo, XDE soporta la ingeniería inversa para generar modelos a partir de clases Java. We will now illustrate the roundtrip engineering support, where changes to the source and model are synchronized. Synchronization can be configured as automatic or manual to fit the developer s preference. Ahora, ilustraremos el soporte para la ingeniería de ida y vuelta, donde se sincronizan los cambios en la fuente y el modelo. La sincronización puede configurarse de forma automática o manual, según prefiera el desarrollador. Visit: http://demos.dfw.ibm.com for more demonstrations Page 4 of 5
Here, we add an ID primary key to the ClaimBean in the model diagram. Aquí, añadimos una clave principal de ID al ClaimBean del diagrama del modelo. We then change to the source view for the claimbean and set the primary key from the value passed in the EJBCreate method. A continuación, cambiamos a la vista del origen para el Claimbean y establecemos la clave principal a partir del valor del método EJBCreate. After we change the source and switch to the model view, we see that the EJBCreate and the EJBPostCreate method signatures reflect the change. Al cambiar la fuente y pasar a la vista del modelo, vemos que el EJBCreate y las firmas del método EJBPostCreate reflejan el cambio. IBM Rational Rose XDE Developer for Java is a complete visual design and development environment, offering software developers a model-driven development approach to building applications, including web-centric solutions. IBM Rational Rose XDE Developer para Java es un completo entorno de desarrollo y diseño gráfico que ofrece un enfoque de desarrollo de software por modelos para la creación de aplicaciones, incluidas las soluciones basadas en Web. XDE together with IBM WebSphere Studio allow users to work in a single environment, avoiding the need to switch between numerous, disparate, non-integrated tools. XDE Developer Plus edition includes the PurifyPlus runtime analysis support. La combinación de XDE e IBM WebSphere Studio permite a los usuarios trabajar en un único entorno y evitarse tener que alternar entre varias herramientas heterogéneas sin integrar. XDE Developer Plus Edition también es compatible con el análisis del tiempo de ejecución PurifyPlus. Only IBM Rational makes visual modeling and runtime analysis an integral part your IDE. Sólo IBM Rational integra la modelación gráfica y el análisis del tiempo de ejecución en IDE. Visit: http://demos.dfw.ibm.com for more demonstrations Page 5 of 5