Setting model elements as web-manageable

The first step in web-enabling a working IBM® Rational® Rhapsody® model is to set elements of the model for Internet exposure. Within a working model, select which elements of the application for the device that you want to control or manage remotely through a web browser, and assign web‑managed properties to those elements.

About this task

Note: You cannot webify a file-based C model.

When considering which elements to web-enable within a model, keep in mind the current restrictions.

Procedure

To expose your model to the web:

  1. In the browser, navigate to Components(component name) > ConfigurationsConfigurations. Choose an active configuration belonging to an executable component.
  2. In the Features window, click the Settings tab.
  3. Select the Web Enabling check box. This selection enables web-enabled code generation for the configuration.
    Note: You cannot webify a file-based C model.
  4. Optional: Click the Advanced Settings button to set the Webify parameters. The product opens the Advanced Settings window.

    This window contains the following controls:

    • Home Page URL specifies the URL of the home page. The default value is as follows:
         cgibin?Abs_App=Abstract_Default
    • Signature Page URL specifies the URL of the signature page. The default value is sign.htm.
    • Web Page Refresh Period specifies the refresh rate for the web page, in milliseconds. The default value is 1000 ms.
    • Web Server Port specifies the port number of the web server. The default value is 80.

      Each of these parameters corresponds to a property under WebComponents::Configuration. These parameters save your updated settings with every model, or change them by editing the property values.

  5. Repeat Steps 14 for all the library components that contain web-enabled elements.
  6. Navigate to the elements within a package that you have decided to web-enable.
  7. Double-click the element to open its Features window.
  8. Set the stereotype to «Web Managed». Do this for each element you want to view or control from the Internet.

    If the element already has an assigned stereotype, you need to web-enable it through a property, as follows:
    1. Right-click the element and select Properties.
    2. Select WebComponents as the subject, then set the value of the WebManaged property within the appropriate metaclasses to Checked.

      Currently, the supported metaclasses for the WebComponents subject are Attribute, Class, Configuration, Event, File, Operation, and WebFramework.
  9. Generate the code for the model, build the application, and run it.

Feedback