
c7b102c299c0eabe25398dcd6390f75d.ppt
- Количество слайдов: 38
© 2011 IBM Corporation IBM Software EGL Events EGL Online User Group – April 26, 2011 ®
IBM Software | EGL Online User Group Agenda EGL conference highlights, Will Smythe, IBM What's new in RBD 8. 0. 1. 1, Will Smythe, IBM EGL Customer Case Studies, Richard Berkel and Ortwin Pepermans, Imtech EGL Development Tools (EGL Open) update, Tim Wilson, IBM You can enter questions in the chat (to All) along the way, or ask on the phone during the presentations. We’ll (try to) leave time at the end for additional questions. 2
© 2011 IBM Corporation IBM Software 2011 EGL Conference Highlights Will Smythe EGL Product Line Manager, IBM Rational smythew@us. ibm. com ®
IBM Software | EGL Online User Group EGL Conference – April 5/6 Wiesbaden, Germany 140 total participants (an EGL Conference record!) Day 1 Sessions 4 Keynote, Introduction to EGL Marketplace and Ecosystem, Application Modernization via Migration, Extensible Model Compilers (Open), Rich UI, Futures and Strategy Day 2 Workshops To see the presentations, visit www. eglcon. org To read the full recap, see the EGL Café blog More photos: http: //share. shutterfly. com/s hare/received/welcome. sfly ? fid=14 ddc 484064 ac 549&si d=0 Ac. MXLZu 5 c. NGbro 4
© 2011 IBM Corporation IBM Software What’s New in Rational Business Developer version 8. 0. 1 and 8. 0. 1. 1 Will Smythe EGL Product Line Manager, IBM Rational smythew@us. ibm. com ®
IBM Software | EGL Online User Group Overview Many new and exciting capabilities delivered in Rational Business Developer 8. 0. 1 (December 2010) and 8. 0. 1. 1 (April 2011) This presentation will cover some of what’s new in … 4 Rich UI / web development 4 Debugging 4 Tooling performance Additional places for information about what’s new: 4 What’s new in Rational Business Developer 8 (developer. Works article) 4 What’s new in 8. 0. 1 / 8. 0. 1. 1 (RBD Information Center) 4 What's new for Rich UIs in RBD 8. 0. 1. 1 (EGL Café Blog) 6
IBM Software | EGL Online User Group Version 8. 0. 1 7
IBM Software | EGL Online User Group Make EGL visual editor functional beyond the basics ü Introduced new grid-oriented layout widget ü Allows precise placement of widgets ü Improved visual feedback as user is dropping new widgets and moving existing widgets ü Greatly improves ease-of-use when developing Rich UIs ü Greatly improved visual editor performance ü Visual editor uses Mozilla XULRunner browser by default Can be changed to IE under Preferences ü Full page refreshes are invoked much less frequently Goal is for developers to completely develop UIs using the visual editor, and only use the source editor for required coding 4 Increases developer productivity 4 Makes it easier for traditional developers to do modern development 8
IBM Software | EGL Online User Group Include more useful, business-oriented widgets out of the box ü Dojo Toolkit provides a rich set of Java. Script based widgets that are now included out of the box in RBD 8 ü Includes date/time pickers, sliders, graphs, currency and other input widgets (with built-in validation), tab and accordion containers, tree, and more – 30 widgets in total ü Use familiar EGL syntax to use and work with Dojo widgets in your applications ü Take advantage of hosted runtime libraries on Google or AOL. com ü Decreases resource requirements on your servers ü Stay up-to-date with the latest fixes 9
IBM Software | EGL Online User Group Include more useful, business-oriented widgets – Data. Grid Data grid widget completely rebuilt for version 8. New capabilities: ü Pagination or scrollbars (fixed headers) ü Column-level alignment ü Sorting ü Computed columns ü Row selection (none, single, multiple) ü Replace text with other widgets ü Row checkboxes ü On demand data loading ü Column-level formatting 10
IBM Software | EGL Online User Group Greatly improve look and feel of developed applications Creates compelling and modern-looking applications out of the box with application styling based on new Dojo Claro theme Developed from scratch by a team of UI designers at IBM Default theme for Dojo-based EGL applications http: //download. dojotoolkit. org/release-1. 5. 0/dojo-release-1. 5. 0/dijit/themes/theme. Tester. html 11
IBM Software | EGL Online User Group Speed up common tasks – drag and drop a record Drag-and-drop EGL record to quickly create data entry forms Enables quick construction of UI forms and data grids Uses MVC pattern to automatically bind UI elements to data Records can represent database tables, external program (CICS, RPG, etc) input/output, SOAP or REST service input or output, etc Use Visual Editor to further enhance the UI Drag-and-drop record arrays to create data grids (tables) Configure which fields to create columns for 12
IBM Software | EGL Online User Group Speed up common tasks – New Record wizard Quickly create EGL records for interacting with third-party REST services Create EGL records from JSON, XML, or XML Schema Records represent the input or output of a service Prior to this capability records had to be hand-coded, which was error prone and time consuming Especially useful for complex XML that uses namespaces 13
IBM Software | EGL Online User Group Speed up common tasks – dedicated services Save times and reduces deployment complexity by automatically bundling required “private” services with your Rich UI applications 4 Automatically deployed with associated RUI application 4 No configuration of the service in the EGL deployment descriptor is required No need to know service URL prior to deployment 4 The service can be located in the same project as the Rich UI application or in a referenced project 4 Services can also be deployed as REST-RPC or SOAP svc My. Service {@dedicated. Service}; call svc. my. Func(param 1) returning to display. Results; 14
IBM Software | EGL Online User Group Debugger improvements The debugger is designed to allow developers to completely unit test EGL applications from within the IDE 4 Independent of target language (COBOL, Java, or Java. Script) New in version 8: 4 Conditional breakpoints A special breakpoint on a line that has a condition (some EGL expression which can evaluate to true or false) under which the breakpoint should stop execution in the debugger Global (not tied to a specific line) breakpoints can also be defined 4 Watch expressions Allows developers to choose specific variables to watch and inspect — versus having to find the variable in the variables tree 15
IBM Software | EGL Online User Group Honorable mention … Remote VSAM Support for z/OS using TCPIP from the EGL debugger RUI Form. Manager (functional replacement for Validating. Form, allows you to use whatever layout you want) A title can now be specified for a RUIHandler to control the string that appears as in the title bar of the browser window 4 Browser title can be set dynamically (via Rui. Lib) as the user navigates the application RUI deployment information defined in Deployment Descriptor (like CE) EGL generated Java can invoke EGL REST and thirty-party REST services 16
IBM Software | EGL Online User Group Version 8. 0. 1. 1 (April 2011) 17
IBM Software | EGL Online User Group Rich UI - Editing Grid Layout You can now insert or delete rows and columns of a Grid. Layout via a context menu action in the Visual Editor 4 Click on any cell, right-click, and select an action 4 Existing widgets are shifted appropriately Benefit: it’s now much easier to add new widgets to and rearrange a grid layout Before…We need to add a new field. After… A new row for our new field. Click on a cell within the grid, and use the context menu to change the grid’s structure…. 18
IBM Software | EGL Online User Group Text Widget Enhancements New widgets: Dojo. Text. Field and Dojo. Text. Area New attributes: prompt. Message, placeholder, input. Required 4 Available on Dojo date, currency, time, and text field widgets 4 Provides richer feedback to users and requires less screen space Placeholder Prompt message Input required message Error message (supplied via a validator) 19
IBM Software | EGL Online User Group Dojo Text Input Widget Hierarchy Dojo. Validation. Base New!! Dojo. Text. Base text max. Length New!! select. On. Click disabled read. Only text. Case trim on. Click/on. Change New!! prompt. Message Dojo. Text. Area input. Required. Message place. Holder Dojo. Date. Text. Box Dojo. Currency. Text. Box Dojo. Time. Text. Box Dojo. Text. Field New!! constraints - dictionary input. Required Validation reg. Exp. Gen Regular expression Custom (EGL) validators – array Canned IP, URL, email, Number. Format, Text, Range 20
IBM Software | EGL Online User Group Validation: Overview A Specify any constraints associated with the validator function(s) you’ll be using. Constraints are passed as a Dictionary. B Specify your validators as an array of function references; these functions have the following signature: Delegate Validator(input String in, constraints dictionary in) returns(string? ) end C Implement your validator function(s). They may leverage built-in validators or simply use your own logic. Return a string, the error message to be shown if validation fails; otherwise, return null. 21
IBM Software | EGL Online User Group Built-in Validators allowip allowcruft allowlocal allowip allowdotteddecimal allowdottedhex allowipv 6 allownamed allowdotteddecimal allowdottedoctal IPValidator allowport allownamed Email. Validator allowhex allowdotteddecimal URLValidator allowdottedoctal allowipv 6 allowhybrid allowipv 6 allowhex allowdecimal allowhex allowhybrid allowdecimal Range. Validator allowdecimal length max min allowdottedhex Text. Validator minlength Number. Format. Validator format e. g. , "(###) ###- #### x#? ? ? " maxlength Pattern. Validator (pass regular expression pattern as a string) Example: 22
IBM Software | EGL Online User Group New RUIWidget Wizard Visually edit RUIWidget parts 4 Create custom, reusable components that can be used throughout your applications …with the New RUIWidget wizard…. …you can Visually Edit your custom widget File -> New -> 23
IBM Software | EGL Online User Group EGLar (Tech Preview) EGLar – like a Java Archive (JAR), but contains compiled EGL source 4 Contains compiled, intermediate representation (IR) version of one or more EGL parts. 4 Resides in an EGL Binary project Other projects can reference this project (via the EGL build path) and parts can be compiled against it Some of the benefits … 4 Performance Access of the EGL definitions is faster than is access of source code Allows you to avoid including hundreds (or thousands) of EGL parts in your workspace 4 Sharing logic that you don’t want others to change You can distribute logic without including the EGL source Tech preview in 8. 0. 1. 1 (so … TRY IT OUT and let us know what you think) 24
IBM Software | EGL Online User Group Honorable mention (8. 0. 1. 1) … Widgets now play nicer with MVC 4 For example, Combo and Dojo. Currency. Text. Box Deleting RUI widgets via the Visual Editor now results in the widget declaration also being deleted (previously the widget was only removed from its parent) JAX-WS 4 SOAP services can now be generated using JAX-WS technology 4 For more information: http: //www. ibm. com/developerworks/webservices/library/ws-tip-jaxwsrpc/index. html Remote VSAM access via TCP/IP in EGL-generated Java 25
IBM Software | EGL Online User Group 26
IBM Software | EGL Online User Group Learn more at: IBM Rational software Rational launch announcements Rational Software Delivery Platform Accelerate change & delivery Deliver enduring quality Enable enterprise modernization Ensure Web security & compliance Improve project success Manage architecture Manage evolving requirements Small & midsized business Targeted solutions Rational trial downloads developer. Works Rational Leading Innovation IBM Rational TV IBM Business Partners IBM Rational Case Studies Rational Client Programs © Copyright IBM Corporation 2010. All rights reserved. The information contained in these materials is provided for informational purposes only, and is provided AS IS without warranty of any kind, express or implied. IBM shall not be responsible for any damages arising out of the use of, or otherwise related to, these materials. Nothing contained in these materials is intended to, nor shall have the effect of, creating any warranties or representations from IBM or its suppliers or licensors, or altering the terms and conditions of the applicable license agreement governing the use of IBM software. References in these materials to IBM products, programs, or services do not imply that they will be available in all countries in which IBM operates. Product release dates and/or capabilities referenced in these materials may change at any time at IBM’s sole discretion based on market opportunities or other factors, and are not intended to be a commitment to future product or feature availability in any way. IBM, the IBM logo, Rational, the Rational logo, Telelogic, the Telelogic logo, and other IBM products and services are trademarks of the International Business Machines Corporation, in the United States, other countries or both. Other company, product, or service names may be trademarks or service marks of others. 27
IBM Software | EGL Online User Group Speed up common tasks – properties files and page titles NLS properties files can now be used by the same Rich UI application running in various locales 4 In version 75 x, a properties file must exist for each locale specified during the deployment of an EGL Rich UI application (text-en_US. properties, etc. ) 4 In version RBD Next the rules are more flexible. When deploying to en_US, properties files are resolved in the following order: – text-en_US. properties – text-en. properties – text. properties A title can now be specified for a RUIHandler to control the string that appears as in the title bar of the Browser window 4 Title property of a RUIHandler 4 RUILib. set. Title(); Handler My. RUIHandler type RUIHandler{ title = “This is a title” } end 28
IBM Software | EGL Online User Group IDE Updates - Deployment Services 4 Can be deployed by generating a. egldd file (RBD 7. 5. x behavior) 4 Can be deployed by invoking the Deploy operation on a. egldd file (EGL CE behavior) Rich UI Applications 4 Can be deployed by invoking the Deploy operation on the. egldd file (EGL CE behavior) 4 RBD 7. 5. x Rich UI Deployment Wizard has been removed Deployment information can now be easily stored in a source code repository Services and Rich UI applications can be deployed to various targets Targets include: 4 Web Projects (Services and Rich UI applications) 4 Host Systems as specified in an EGL Build Descriptor (Services only) 29
IBM Software | EGL Online User Group Runtime Updates - XML serialization in EGL-generated Java EGL Flexible Records can now be converted to and from XML in the Java runtime environment Uses: 4 XML serialization can be used in REST services The use of XML is seamless. The data is converted to and from XML as part of the service call. 4 XML serialization can also be invoked programmatically using the XMLLib APIs to serialize a record to/from a string: XMLLib. convert. To. XMLLib. convert. From. XML Program My. Program function main( ) xml string = XMLLib. convert. To. XML(flex. Rec); XMLLib. convert. From. XML(xml, flex. Rec); end 30
IBM Software | EGL Online User Group Runtime Updates – New Java Build Descriptor Options cache. Prepared. Statements Build Descriptor Option 4 Values are yes / no. The default is no. 4 When a program, library, service, or handler is generated with cache. Prepared. Statements=YES and it connects to a database, all Prepared. Statements used with that connection will be cached 4 Avoids the overhead of repeatedly creating the same prepared statement for the life of an application New fields. Match. Columns annotation for SQL records 4 Values are yes / no. The default is no. 4 Yes means the fields of the record have the same characteristics as the columns in the database Same type, length, number of digits, and nullability 4 When set to yes we can generate more efficient code: Skip checks for null when the field isn’t nullable Skip overflow checks and type conversion code 31
IBM Software | EGL Online User Group Speed up common tasks – test without deploying Fully unit test EGL applications without deploying to a server EGL services can be invoked from a Rich UI application running in Preview or Debug, without requiring the service to be deployed to a server 4 User is prompted to see if the Source version or Deployed version of the service should be invoked Avoids needing to setup a local test server Avoids needing to republish and restart server when service is changed Avoids needing to know the URL of the service while it is under development 32
IBM Software | EGL Online User Group RBD 8. 0. 1. currency and related software support Eclipse 3. 6. 1 Rational Application Developer 8. 0. x Web. Sphere Application Server 4 Version 6. 1 and 7. 0 are supported Version 6. 0 and version 8. 0 Beta are not supported Java 4 Version 5. 0 or 6. 0 JRE 1. 4 is no longer supported Latest versions of Internet Explorer, Firefox, Chrome, Safari http: //www. ibm. com/software/awdtools/developer/business/sysreq/ 33
IBM Software | EGL Online User Group RUIHandler Title A title can now be specified for a RUIHandler to control the string that appears as in the title bar of the browser window 4 Previously, the EGL part name was shown in the title 4 Browser title can be set dynamically (via Rui. Lib) as the user navigates the application Handler My. RUIHandler type RUIHandler{ title = “This is a title” } End … Function my. Func() Rui. Lib. set. Title(“Welcome”); end 34
IBM Software | EGL Online User Group Runtime Updates - REST service invocation from EGLgenerated Java External or EGL-generated REST services can be invoked from an EGL-generated library or service running in a Java environment (Web. Sphere/Tomcat/JSE) Service is invoked synchronously (i. e. caller waits for response before resuming) Allows for: 4 server-side “chaining” of services 4 multiple service responses can be combined into a single response service My. Service function func 1(param int) returns (boolean) service 2 My. Service 2 {@bindservice}; service 2. func 1(param); end 35
IBM Software | EGL Online User Group Deleting widgets Description Benefit Deleting widgets in the Visual Editor results in corresponding deletions in the source code. Better consistency between the Visual Editor and the source code; however, some artifacts may remain (details below). After: What’s deleted from the source Before…A widget to be deleted…. What will be removed? 1. widget reference in parent container widget 2. widget definition 3. child widget definition (if any) 4. related controller definition (if any) 5. related Form. Field definition (if any) What will NOT be removed? 1. Widget references elsewhere in the EGL part. 2. Widget references in other EGL parts, such as another RUIHandler or Library. 36
IBM Software | EGL Online User Group Questions? 37
IBM Software | EGL Online User Group Thank you! 38
c7b102c299c0eabe25398dcd6390f75d.ppt