Creating Design and Runtime Application Class Code

To create the design-time and runtime application class code:

  1. Create an application package named <your product code>_AAF_ACTIONS.

  2. Create a class in the package to be your design-time action application class.

    It must extend the EOCF_CLF_AF: ActionCfgBase and must implement the designAction() method.

    This class is responsible for transferring from the policy builder page to the action configuration page previously created.

    All relevant information regarding the rule and the context will be available to the configuration page.

    (See the EOCF_CLF_ACTIONS: DisplayAlertCfg as an example.)

  3. Create another class in the package to be your runtime application class.

    This class must extend EOCF_CLF_AF:ActionBase and must implement the runAction() method.

    This class is responsible for launching the action.

    In order to perform the action, all of the relevant information will be available.

    (See the EOCF_CLF_ACTIONS: DisplayAlert as an example.)

  4. Register the action type in the Register Action Type page.

    Specify the name of your new action type, the names of your design-time and runtime application classes, and other action type characteristics.

    Specify the trigger types and trigger points that may have policies using this action type.

    For example, you may want an action to be triggered during ComponentPostBuild trigger types, specifically the trigger point “When a Defect is Presented, in Quality Management.” After you complete these configuration steps, the action type is available for use.

  5. If an action type is combinable with other action types, register it in an action type bundle in addition to the other combinable action types.

    All display action types must be included in a single action type bundle.

  6. If your new action is configurable, click Configure on the page.

    This transfers you to the action configuration page for more specifications.

  7. Insert the subpage EOCF_DISPLAY_SUBPG in Level 0 on all pages that you want display-enabled.

    Note:

    This display subpage must not overlap any other field and no pop-up blockers should be running.