Import “IBM Mobile Application Platform Pattern Type” and the sample pattern into SCAWS

This article explains how to import the Worklight pattern type and pattern on the IBM SmartCloud Application Workload Service. It is part of a series of articles concerning the “IBM Worklight usage on IBM SmartCloud Application Services”. Go on Worklight Trial on SmartCloud Application Service page to get register!

In order to deploy a Worklight pattern, you have to upload the pattern-type which is the “tool box” allowing you to design a Worklight pattern. This should be done only once per IBM SmartCloud Application Workload Service. A Worklight pattern sample is also provided in order to quickly get up to speed and test your Worklight environment on the IBM SmartCloud Application Service.

YouTube Preview Image

1) Download the “IBM Mobile Application Platform Pattern Type”.

Going to the Worklight Trial on SmartCloud Application Service page, you will have the opportunity to download the a zip file containing the pattern-type and the sample pattern.

2) Install the “IBM Mobile Application Platform Pattern Type”

The installation of the “IBM Mobile Application Platform Pattern Type” is done by uploading it in your IBM SmartCloud Application Workload Service and this by using the IBM SmartCloud Application Workload Service console.

  1. Login in the IBM SmartCloud Enterprise portal and go in the “Control Panel” tab and click on the “Service Instances”.
    WLSCAWS Service Instances
  2. Select your IBM SmartCloud Application Workload Service instance and click on “Manage Service instance”.
    WLSCAWS Service instance details

  3. The IBM SmartCloud Application Workload Service console opens and enter the “cbadmin” credentials.
    WLSCAWS Login

  4. Once the console is opened, go in the “Cloud” menu and select the “Pattern Types” action.

  5. Click on the “green plus” in order to upload the pattern-type.
    WLSCAWS Import pattern-type green plus
  6. A popup window appear asking the file which have to be uploaded. Select the “local” tab as you downloaded the pattern-type locally.

  7. Wait until the file has been uploaded.

  8. Then select the “IBM Mobile Application Platform Pattern Type” on the left-hand side list.
    WLSCAWS Pattern-Type view

  9. Accept the “License” by clicking on the “[ License… ]” hyperlink.
    WLSCAWS Accept license

  10. Read the Terms of the License and click “Accept” if you agree.

  11. Now the pattern-type is “Accepted” but we still need to “enable” it in order to use it.
    WLSCAWS License Accepted
  12. Click on the “[ Enable…]” hyperlink.
    WLSCAWS Enable Pattern type
  13. As these pattern use OLTP for production and the default OLTP setup is for non-production, you have to update the OLTP configuration.
    1. Open menu “Cloud”->”System Plugin”.
    2. Select the “oltp” plugin anc click “Configure”.
    3. Change “Environment” from “Only IBM Transactional Database Pattern for Non-Production Environment” to “Both”.
      SCAWSWL OLTP Configuration DefaultSCAWSWL OLTP Configuration Both
  14. Now we are ready to use it.

3) Install the WorklightStarter Sample pattern.

A Worklight pattern sample is provided as example and it contains the WorklightStarter application you can find in the DeveloperWorks Getting Started article.

This application shows RSS feeds from a site specified in the adapter definition.

  1. Once you have download the “WorklightStarterPatter.zip” via the registration page, login in the Workload Service and open the Pattern view by selecting from the menu “Pattern”->”Virtual Application”.
    WLSCAWS Import pattern
  2. Click on the WLSCAWS Import bteand browse to the zip file (Optionally, you can provide a name)
    WLSCAWS Pattern Import zip
  1. The pattern is automatically loaded.

If you have questions, please read this.