Bonus Exercise
Create XFProject Dynamicallyβ
XFProject files can be useful, but they can also be annoying to create manually. Many people donβt know that this can also be done dynamically, with a little bit of code.
In this exercise, we will write a Data Management Service that will create an XFProject file for us.
ποΈ Setup
1. In the same Workspace we used in previous exercises, create a new Maintenance Unit (MU) called DevUtils.
ποΈ Data Management Step Service
1. In assembly DevUtilServices, create a Data Management Step Service called HelperDmSvc.
ποΈ Enable Factory
1. In assembly DevUtilServices, create a Service Factory called HelperFactory.
ποΈ Create Parameter
To make our service easier to maintain and reuse, we will store the list of Maintenance Units and Profiles that we want to extract, into a Literal Parameter. We use the standard formatting for option lists.
ποΈ Create a Data Management Job
1. In the DevUtils Maintenance Unit, select Data Management Groups.
ποΈ Create and Use the Generated XFProject
1. Execute the DM Step just created. It should run successfully.