Adding mappings for existing event slots in the Event Management module

The OA Event Management module provides out-of-the-box mappings for important event slots in the module configuration. Use the following procedure to add mappings for the event slots in the Event Management workflows:

  1. Create a mappings file with the event slots that you want to add.

    Example:
    
    <elements>
      <element>
      <external>mc_event_subcategory</external>
      <internal>mc_event_subcategory</internal>
      </element>
      <element>
      <external>mc_operations</external>
      <internal>mc_operations</internal>
      </element>
      <element>
      <external>pn_device_name</external>
      <internal>pn_device_name</internal>
      </element>
      <element>
      <external>mc_smc_impact</external>
      <internal>mc_smc_impact</internal>
      </element>
    </elements>
  2. Specify the location of the mapping file in the BEM adapter configuration in the <request-field-mapping-file-location> element.

     Sample:

    <config>
      <mcell-dir-file-path>C:\Program Files\BMC Software\AO\CDP7602_04\etc\mcell.dir</mcell-dir-file-path>
      <request-field-mapping-file-location>C:\Program Files\BMC Software\AO\CDP7602_04\etc\mappings.xml</request-field-mapping-file-location>
      <max-active-connections>8</max-active-connections>
      <min-active-connections>0</min-active-connections>
    </config>
    

    Note

    Ensure that you disable the adapter, make changes to the mapping file, and then enable the adapter.

  3. In the OA Event Management Module Configuration:

 For the Create Events workflow:

  1. Add mappings for the slot that you want to populate using the Create Events workflow.

    For example, to create an event with the "pn_device_name" slot name, add <pn_device_name> pn_device_name</pn_device_name> to the Field_Mappings configuration item in the module configuration.
  2. Open the Create Events workflow in BMC Atrium Orchestrator Development Studio and then open the Get BEM mapped values assign activity, and add the transform in the Fields input name.
  3. Save the workflow.
  4. Execute the Create Events workflow with an input XML that has the newly added slot. The workflow creates an event with the new event slot.

 For the Update Events workflow:

  1. Add mappings for the slot that you want to update using the Update Events workflow.
    For example, to create an event with the "pn_device_name" slot name, add <pn_device_name> pn_device_name</pn_device_name> to the Update_Mappings configuration item in the module configuration.
  2. Open the Update Events workflow in the BMC Atrium Orchestrator Development studio. In the workflow, open the Get BEM mapped values assign activity and add the transform in the Fields input name.
  3. Save the workflow.
  4. Execute the Update Events workflow with an input XML that has the updated event slot. The workflow updates the value of the new event slot.

 For the Search events workflow:

  1. Add mappings for the slot that you want to search using the Search Events workflow.
    For example, to create an event with the "pn_device_name" slot name, add <pn_device_name> pn_device_name</pn_device_name> to the Query_Mappings configuration item in the module configuration.
  2. Open the Search Events workflow in the BMC Atrium Orchestrator Development studio. In the workflow, open the Get BEM mapped values assign activity and add the transform in the Fields input name.
  3. For the Search or Query workflows, add the mappings for the slot that you want to see in the Search workflows in the OA Event Management Module Configuration.

    For example, to get the "mc_smc_impact" event slot, add <mc_smc_impact>mc_smc_impact</mc_smc_impact> to the Query_Mappings configuration items in the Event Management Module Configuration.
  4. Save the workflow.
  5. Execute a Search workflow.

Note

You can perform these steps only for BMC Event Manager. The mappings mentioned here are available in the BMC_Event_Manager module configuration group

Was this page helpful? Yes No Submitting... Thank you

Comments