RPE 2.1 – “Multumesc”

I’m happy to announce RPE 2.1, codename Multumesc, has been made generally available today. With this release we continued on the path we started in RPE 2.0 around simplifying the user experience with RPE. While with 2.0 and 2.0.1 we focused on administrators and end users with 2.1 our focus are template designers:

  1. Interactive Guides – new designers will be walked through the design process
  2. Drag&Drop for quick template design– drop your resource URL from the Browser in document studio and RPE will create a starting template for you
  3. Simplified CLM traceability – with the POX profile you no longer need to manipulate URLs to transform between OSLC and REST API.
  4. Word Import – use Word documents as the starting point of your template. RPE will convert the structure and a subset of the formatting into an RPE template
  5. Java Script Reuse – you can now define code modules inside a template and reuse the functions defined there everywhere else in the template.

This and much more is described in https://www.ibm.com/support/knowledgecenter/SS6RHZ_2.1.0/com.ibm.rational.pe.overview.doc/topics/c_whats_new_21.html and will be further discussed here.

The team even put together videos to show some of the new features https://www.youtube.com/playlist?list=PLZGO0qYNSD4UtXl3xXGsL1hhumg0s8m9i

Kudos to the RPE team and to all of you that helped us define and refine these features.

A node.js chart service powered by Excel

Updated 17:15 EEST: added a diagram of the flow and updated chartServer.js

In a previous article I have shown how to use Excel to generate image charts with Microsoft Excel. In this article I will take this one step further and add a HTTP interface to that script so you can invoke it from a browser.

The ingredients are node.js and Microsoft Excel.  node.js offers an extremely lightweight ( 5.5 MB) framework to run a JavaScript server that receives HTTP requests, dispatches the requests to excelPieChart.vbs which in turn produces image charts via Excel. These images are served back as the response for the HTTP requests.

node_js

Installing and starting this server should take less than 2 minutes, with the biggest part of it being the download of node.js. The solution does not require any node.js modules other than the standard ones.

Using the service is even simpler:

Request

http://giediprime:8000/chart?labels="High|Medium|Low"&data="2|25|8"&title="node.js chart example"

Response
rpeactual_nodeJsCharts

Continue reading “A node.js chart service powered by Excel”

Arrays in RPE

The series started with JavaScript Objects in RPE continues with collections. This post covers using collections, more specifically arrays, sorting collections and an end to end example on using collections to manipulate live data:

  • read the data from a provider and store it in an array
  • sort the array on arbitrary rules
  • render the content of the array using an iteration element

In RPE collections can be used to solve many complex problems including but not limited to:

  • sorting not supported directly by RPE ( sorting on child properties)
  • combining data from multiple sources more easily/efficiently ( avoid repeated passes over the data)
  • restructuring the data ( avoid complex template nesting)

Continue reading “Arrays in RPE”