Parse model data
Data Transformation Operations (DTOs) provide flexible and repeatable processes to parse model data. An example is if your project systems are concatenated into other metadata, you can parse it to its own tag. In the following example you will see how you can parse model data using DTOs.
If your project systems are concatenated into other metadata, you should parse it to its own tag to easily access the model by systems.
Parse system information
-
Add a DTO, and then name it Systems – Piping.
-
In the Selector tab use the following criteria:
-
Add a DTO, and then name it Systems – Piping.
-
In the Selector tab use the following criteria:
-
Use the and/or group toggle at the top right to select and.
-
Click the Add group icon at the top right, and then include the following group criteria:
-
Click the Add row icon below the row to add another row, and then use the following criteria:
-
Use the and/or row toggle above the grouped rows on the top left and select or.
The selected criteria will find all objects with a Pipeline value. When you use the and group toggle, it will select the objects from the listed model tag values.
-
Click the Test button to review and validate your selection criteria in the Selection Information panel. Results should include AQ-00074001and CWR-00064101.
-
In the Actions tab select Calculated for Action.
-
Click the Add icon next to Action to add a new function, and then use the following criteria:
The substr() function lets you parse out your selected characters within a string of characters.
The Index of field can be blank, or you can enter any character from where you want to start indexing. This example starts at the dash value in this string of characters for AQ-00074001.
-
Add another function with the following criteria:
-
Click on the Run selected button to execute the DTO, and then create the new tag according to your selection criteria.