Reference Object

A Reference object points to an existing job or plan. Therefore, you can create job and plan references. References are triggerable objects and will run the job or plan they are referencing. It is used when there is a need to execute an existing job or plan in different workflows. Your first thought might be to copy and paste the existing job or plan. But this can create more work for you, later on, if something in the copied job or plan changes. Updating the same changes in multiple objects would create extra work. This is where the reference object comes into play - to prevent this kind of unnecessary maintenance of your ActiveBatch objects.

 

You can create one or more references to point to an existing job or plan. Whenever the original object’s payload (or other shared properties) are modified, the reference object also sees that modification. In this respect a Reference object is like a shortcut in the Windows operating system. Reference objects reference the payload as well as several other properties that are most likely to be shared. Reference objects also have properties that are configurable on the reference itself. 

 

Described below is a reference object example.

 

Assume you’ve already created a job named JobA that performs all the necessary operations, and you need to perform the same actions in a new and different job stream. Rather than creating a copy of JobA (which you could do) a better approach would be to create a reference to that job. This way if JobA is modified, the resulting changes will be seen by both job streams. This is the key purpose of the Reference object - to allow you to reuse what you have already created, thus minimizing the maintenance of your ActiveBatch objects. It can be a significant time saver to modify the payload of a single triggerable object when compared to performing the same modification on multiple (copied) objects that are doing the same work.

 

To create a reference to a job, select the job object in the Navigation pane, then right-click and select the Create Reference operation from the menu. The same menu option is available for a plan.

 

 

When you select this operation, you should see a window similar to the one below:

 

 

You need to indicate where you would like the newly created Reference object to be placed. You can keep the default location, which is the same location as the referenced (target) object, or you can select any other container (root, folder, or plan) in the tree. 

 

Below you will find a description of the General and Properties tabs.

 

 

All the other reference property sheets (Variables, Triggers, Constraints, Security, etc.) are the same properties described in the Job Object and Plan Object sections of the documentation.