Creating an AWM Function Package

Extending the AWM model extension point com.microfocus.awm.model.extension will create a new function package which can be used during AWM modelling.

Firstly, you need to start by creating an AWM plug-in project. See Creating an AWM Plug-in Project for more information.

  1. Double-click the plugin.xml or META-INF/MANIFEST.MF file in your plug-in project to open the manifest editor.
  2. Click the Extensions tab at the bottom of the editor.
  3. Under All Extensions, click Add.

    This opens the New Extension dialog box.

  4. Uncheck Show only extension points from the required plug-ins.
  5. In the Extension Point filter field, type awm.model and then click com.microfocus.awm.model.extension, see the figure below:
    Extension Point Selection
    Tip: The Available template for AWM model extension lists all the templates defined for the AWM model extension point. You can click one of the templates to add it to your plug-in project.
  6. Click Finish.
  7. In the All Extensions pane, click com.microfocus.awm.model.extension.

    This displays the Extension Details pane on the right side.

  8. Click the Show extension point description link.

    This opens an editor window containing a description of the AWM Model Extension point and explains the components, package parameters, tools, attributes, and values. Read this for more information on creating a function package.

    You must specify at least one ID and a label for the new function package. The ID attribute value must be unique for all components within the function package. The label attribute specifies the name of the function package shown in the AWM model editor.

  9. In the All Extensions pane expand com.microfocus.awm.model.extension.
  10. Click label (functionPackage).

    This displays the Extension Element Details pane on the right side.

    Note: Mandatory properties are marked with an asterisk.
  11. In the id field, type, for example, com.microfocus.test.awmextension.simpleFunctionPackage.
  12. In the label field, type, for example, Simple Function Package.
  13. Click File > Save

    When saving the manifest editor content, the information from the Extension Element Details pane is added to the All Extension pane on the left side.

The function package samples listed and described in the following topics all extend the AWM model extension point. These samples can be used as reference to get a better understanding of how the model extension point is designed and works. They provide a helpful introduction to implementing your own AWM model extensions.