How to Create Custom Workflows For Different Types of Change Requests From Portal

Published Feb 15 2019 07:10 AM 144 Views
First published on TECHNET on Jun 02, 2011

SCSM 2010 has a very simplified ( too simple?) portal interface for users to submit change requests.  SCSM 2012 will dramatically improve on this by introducing a service catalog.  More details on that and a demo can be found in the SCSM 2012 session that Sean Christensen and I presented at TechEd US 2011.  See the 2012 presentation and other presentations from TechEd here .

In the meantime until 2012 comes out though, if you want to have custom workflows for different types of change requests you can still do it to a certain degree using SCSM 2010 and custom workflows.  Here is how to do it!

First of all, you need to know that when the user creates a change request from the portal he can choose a Category:

This list is customizable by going to the Library/Lists view in the main console, selecting the Change Area (not Change Category – I know, it’s confusing!) and clicking Properties:

So – basically we are going to have the user’s request have a different process backing it depending on which Change Area/Category is selected.

The change request is initially created from the portal using the Standard Change Request template that is provided out of the box.  The first thing that we need to do is remove all of the activities from that template.  To do that go to the Library/Templates view in the main console and select the Standard Change Request template and click Properties in the task pane.  Leave the ‘When I click OK, open the template form’ checkbox checked and click OK.  This will bring up the change request form in template mode for the Standard Change Request template.  Click the Activities tab:

You can see that out of the box the Standard Change Request template has two activities – a review activity and a manual activity.  Since we want to define a different process (set of activities) for each type of change request we are going to remove these defaults by selecting each activity and clicking Delete.

Now click OK, to save these changes to the Standard Change Request template.

Now – if you want to you can test creating a change request from the portal.  You will see that the CR is created but this time there are no activities:

Now what we are going to do is define a change request template for each of the Category values that need a unique process defined for them.  We can reuse templates for multiple categories.  I’ll show you how to do that later.

For now, go to the Library/Templates view and click Create Template in the task pane.

Then give the template a name, choose a management pack, and select the Change Request class and click OK.

When the change request form comes up click the Activities tab.  Just for purposes of demonstrating this I’ll just add two review activities and two manual activities like this.

You can have any combination of activities that you want including automated activities if you have created those.  You can also set other properties on the change request as needed.  Now click OK to save the change request template.

Now we are going to create a change request event workflow that will be triggered whenever a new change request is created from the portal and the area is equal to Restore File.

To do this go to the Administration/Workflow/Configuration view.  Select the ‘Change Request Event Workflow Configuration’ item in the list and click ‘Configure Workflow Rules’ in the tasks pane.

Click Add…

In the wizard, click Next on the welcome page.

Give the workflow rule a name, description (optional), select a management pack, and leave the default of ‘When a new object of class Change Request is created’.

Click Next.

Set the criteria:

You can click Add here multiple times to add an OR criteria so that the same template can be applied to multiple change areas using the same workflow.

Click Next.

Choose the template we created earlier:

Click Next.

Optionally choose to send notification:

Click Next.

Click Create.

Click Close.

Click OK.

Now try submitting a change request from the portal and select the Restore File option in the form:

When the change request is first created it doesn’t have any activities:

Within a few seconds though the template will be applied by the workflow and the first activity will go into an In Progress state:

Cool!  SCSM 2012 will be much more flexible, but this does give you a good start and although you might want to redo things when SCSM 2012 comes out to take advantage of some things you won’t necessarily need to.

Version history
Last update:
‎Mar 11 2019 08:47 AM
Updated by: