Defining the Location Common Field for Workflows - PAS Integrity Software Suite - 7.3 - Help - Intergraph

Integrity Help

Language
English
Product
PAS Integrity Software Suite
Subproduct
Cyber
Search by Category
Help
PAS Version
7.3

Workflows, including those used in Cyber Integrity, require you to define the Location common field. You can configure the Location common field to auto-populate its values using the GetLocations function definition. You may have previously configured this common field if you are using workflows for other purposes. This function can pull values from your asset hierarchy.

Before you perform this task, you should have your asset hierarchy defined. For more information about your asset hierarchy, see Creating New Object Types for the Asset Hierarchy, and Understanding and Defining Your Asset Hierarchy.

admin-workflow-common-fields-blank

To auto-populate the list of items for the Location common field:

  1. In the Admin Utility, click the Workflows link under Additional Modules.

  2. In the Workflow-related Tasks area, click Define Common Fields.

  3. If a Location field does not exist in the Global fields list, complete the following steps:

    1. Next to the Global fields list, click Add.

    2. Type Location as the name for the new field, and then click OK.

  4. In Global fields, click Location.

  5. In Field Details, click List.

  6. Under the Items list, check the Auto-populate the list using this FunctionDef check box, and then select GetLocations from the list below the check box.

  7. In Field Usage, check the Location field check box.

  8. Click the Save button.

  9. Close the Define Common Workflow Fields window.

  10. Edit the GetLocations function to display values from your asset hierarchy by completing the following steps:

    1. Open the Asset Model Builder on the Integrity server. To open the Asset Model Builder, run the following file:

      InstallPath\DataCollector\AssetModelBuilder.exe

    2. Click Edit > Asset Model Explorer.

    3. In the left pane, click the plus sign next to the following nodes to expand these nodes: Asset Models, PAS Workflows, and Function Definitions.

    4. In the left pane, click GetLocations. The right pane displays the properties.

    5. In the right pane, click Function Script.

      admin-cyber-baseline-funscript

    6. Click the ellipses button (...) to edit the script. The VB.Net Editor window is displayed.

    7. Specify the appropriate values between the double quotes on lines 12-14 of the script. For example, the following figure shows how to set the location values to include all system folders in your hierarchy.

      admin-cyber-baseline-script

    8. Click Save on the script editor window.

    9. Click Save on the Properties tab of the Asset Model Explorer window.

    10. Close Asset Model Builder.