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:
- In the browser, navigate to Components(component
name) Configurations. Choose an active
configuration belonging to an executable component.
- In the Features window, click the Settings tab.
- 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.
- 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.
- Repeat Steps 1–4 for
all the library components that contain web-enabled elements.
- Navigate to the elements within a package
that you have decided to web-enable.
- Double-click the element to open its Features
window.
- 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: - Right-click the element and select Properties.
- 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.
- Generate the code for the model, build the
application, and run it.