Schedule the triggering of a SCO Runbook
-
Wednesday, May 16, 2012 7:11 AM
Hi,
I'd like to do a Request Offering which will trigger a Runbbok. I'd like the User to be able to choose when to trigger this this Runbook with a Date/Time Picker. And I'd like this Offering to be reviewed.
- Request Offering with the correct prompts ==> OK
- Review Activity ==> OK
- Trigger the Runbook with the matched prompts after reviewing ==> OK
My question is how do I configure a scheduler ?
For example: We're the 16th of May, my user fills in the form on the portal, and sets the triggering date to the 30th. In the meantime my reviewer approve. And the Runbook runs on the 30th.
Best regards,
Nichoff
All Replies
-
Wednesday, May 16, 2012 9:47 PM
Im not sure how possible this is since a Runbook as part of a CR/SR/IR is listed as an activity in the template thats called. Activities happen in succession. Which means the Run Book will trigger once the preceeding activity before it gets completed (in your case, the RA). Sounds like this would require some heavy customization, but not fully sure. Anyone else?
-
Wednesday, May 16, 2012 10:57 PMModerator
Maybe this is an option (just a draft):
In SCSM:
- Create a Request Offering template with one review activity and a manual activity
- The title of the manual activity should be "unique" like "Scheduled Manual Activity"
- Write the "trigger schedule date value" of the request offering in the description field of the manual activity
- Create a scheduled workflow in SCSM -> for instance "run once a day"
- The scheduled workflow should start a PowerShell script -> Get all manual activities with title = "Scheduled Manual Activity" and status = In Progess -> Get the trigger schedule value of the description field and compare with the current date (GetDate) -> If scheduled date = current date set Stage of the manual activity to "Initiate"
Create a Runbook in Orchestrator:
- Monitor Object activity -> class Manual Activity -> on update -> criteria: title = "Scheduled Manual Activity" and status = "In Progress" and stage = "Initiate"
- At the end of the runbook you should mark the Manual Activity as "Completed"
Hope this helps.
Andreas Baumgarten | H&D International Group
- Proposed As Answer by Aaron Croasmun Friday, May 18, 2012 1:28 PM
- Marked As Answer by Andreas BaumgartenMVP, Moderator Friday, October 05, 2012 6:30 PM
-
Friday, May 18, 2012 7:07 AM
Hi, Thank you for the answers... It's a pity that there's no "out of the box" solution, as I'm sure I'm not the only one that will need to schedule activities !
I'll think about Andreas's solution !
I was thinking about creating a new Runbook that would run instead of the original one.
It would compare the date selected in the data/time picker with today's date. If it's equal to today's date, trigger the original Runbook. If not, save all data into an SQL db.
Then have another Runbook that would monitor a time to trigger every day at the same time and compare all entries from this db. If any of the dates is equal to the query date, trigger the other original Runbook passing all SQL entries for that request.

