Populate Reviewers

25
Dynamically Populate Reviewers in Review Activity Title Dynamically Populate Reviewers in Review Activity Description Groups have been made in AD, corresponding to the type of activity being reviewed and accordingly the reviewers are placed in such groups. These groups are identified by certain fields in service request form example: IT Department, new user request This will point to/map to the ITApprovers group for approving or rejecting this new user request. Status Runbook works successfully, successfully maps IT approver to the group in AD. And successfully populates review activity with approvers from that group. Other One potential issue that can arise is that, the dynamically populated users cannot be given has-veto” and “must vote” rights individually. Have to use some variation of voting criteria such as “percentage”, ”unanimous” to control the flow. Workflow

Transcript of Populate Reviewers

Page 1: Populate Reviewers

Dynamically Populate Reviewers in Review Activity

Title Dynamically Populate Reviewers in Review Activity

Description Groups have been made in AD, corresponding to the type of activity being reviewed and accordingly the reviewers are placed in such groups. These groups are identified by certain fields in service request form example: IT Department, new user request This will point to/map to the ITApprovers group for approving or rejecting this new user request.

Status Runbook works successfully, successfully maps IT approver to the group in AD. And successfully populates review activity with approvers from that group.

Other One potential issue that can arise is that, the dynamically populated users cannot be given “has-veto” and “must vote” rights individually. Have to use some variation of voting criteria such as “percentage”, ”unanimous” to control the flow.

Workflow

1. Initialize DataPart of the runbook control category, this activity collects data and passes it to the runbook from the portal.

Page 2: Populate Reviewers

We use the Add button to add fields according to our needs, in this case we needed 2 pieces of information and 2 string fields were selected.

2. Get Object (Get Runbook Automation Object)This activity is part of the Service Manager IP. This activity is basically used to get the GUID, a unique identifier of some object in this case our Runbook automation activity.

For Class press Ellipse (…) select Runbook Automation Activity

Page 3: Populate Reviewers

Then Filters press “ADD” then select as shown below:

Valye field populated via Published Data left click select published data select activity initialize data select field ActivityID

Page 4: Populate Reviewers

3. Get Relationship (Get Relation between RBA and SR)This is also part of Service Request IP. This is used to getting a child or connected GUID of a activity such as Service request or review activity given its parent or sibling. In this activity we know the parent’s GUID from previous activity and now we are attempting to find GUID of its child Service Request.

For Object Class press Ellipse (..) and select the following option as shown:

Page 5: Populate Reviewers

For Object Guid left-click published data activity select as Get Runbook automation object select property SC Object Guid.

For Related press Ellipse (…) then select option as shown:

4. Get Object (Get SR Object)Part of Service Manager IP. Gets GUID of service request.

Page 6: Populate Reviewers

For Class press Ellipse (…) then select the following

Then for Filters press “ADD” Button and do following steps:

Page 7: Populate Reviewers

For Value

5. Get Relationship (Get Relationship between SR and Review Activity)Part of service manager IP.

Page 8: Populate Reviewers

For Object Class press Ellipse (..) and select following:

For Object Guid right-click published data activity Get SR object SC object Guid

For Related Class press (…) Ellipse the select as shown:

Page 9: Populate Reviewers

6. Get Object (Get RA Object)

For Class press Ellipse (…) and then select the following:

Then For Filters Press “ADD” then do the following:

Page 10: Populate Reviewers

For Value Right click published data then do following:

7. Get GroupPart of Active Directory IP. Gets the group from AD in which the approvers reside.

Page 11: Populate Reviewers

For Name press (…) select active directory.

Then press Optional Properties Button:

Select SearchRoot and move it to Selected section..

Page 12: Populate Reviewers
Page 13: Populate Reviewers

Press “ADD” button and do following…:

From published data select initialize data as activity and select AD Group Name

Page 14: Populate Reviewers

8. Get UserPart of Active Directory IP.

Select name as Active directory from ellipse button option:

The select filters from left tab:

Press “ADD” button and do following:

Page 15: Populate Reviewers

For value goto published data..

Page 16: Populate Reviewers

9. Get Object (Get Users From CMDB)Part of service manager IP

For Class press Ellipse (…) and select the following:

Then for filters press “ADD” button and do following:

Page 17: Populate Reviewers

For Value do published data the activity get user the select following:

Page 18: Populate Reviewers

10. Create Related Object Part of service manager IP. Used for creating objects of reviewers to add to review activity.

In Connection select SCSM.In Source Class press Ellipse (…). The select the following:

Page 19: Populate Reviewers

In Target Class press Ellipse (…) the select following:

In Relationship Type press Ellipse (…) select following.

Page 20: Populate Reviewers

In Source Object Guid goto Published data and do following:

Select activity as Get RA activity..

11. Create RelationshipPart of service manager IP.

Page 21: Populate Reviewers

In Source Class press Ellipse (…). Then select the following:

In Target Class press Ellipse (…). Then select the :

In Relationship Type press Ellipse (…). Select:

Page 22: Populate Reviewers

For Source Object Guid goto Published data:

For Target Object Guid goto published data:

Select Get users From CMDB as the activity:

Page 23: Populate Reviewers

Okay , okay and finish.. done :D