locked
Help to create workflow using businnes Service. RRS feed

  • Question

  • Hello,

    I need to create a workflow based on the priority of businnes Service

    When a business services, with critical priority, is selected, I want to apply a desired template.

    I tried to create a workflow using the option Affects Service - Priority, however this workflow does not start.

    Can anyone help me?

    thank you
    || Aurélio Alves || - http://aurelioalves.wordpress.com
    Wednesday, October 26, 2011 7:53 PM

Answers

  • I'm not sure what that can be done with authoring tool.

    When I create similar workflow I use full Visual Studio because in VS you can use full workflow engine (share variables between activities for example). For example you can create workflow like this:

    where SendAndApply is a standard SCSM activity.


    http://www.scsmsolutions.com/ freemanru (at) gmail (dot) com
    • Marked as answer by Aurélio Alves Monday, November 7, 2011 12:43 PM
    Monday, October 31, 2011 4:38 PM
  • This is impossible in UI. Affected services is a relationship object, you must implement same aproach as with affected user (please search in main SCSM Dev blog). You can run workflow when affected service added to incident and when check property of the service with PS-script.
    http://www.scsmsolutions.com/ freemanru (at) gmail (dot) com
    • Marked as answer by Aurélio Alves Monday, November 7, 2011 12:43 PM
    Thursday, October 27, 2011 2:22 PM

All replies

  • Can you please post a sample of the workflow you are running?

    Thursday, October 27, 2011 8:58 AM
  • Hello..

    Workflow:

     

    Thank you.

     


    || Aurélio Alves || - http://aurelioalves.wordpress.com
    Thursday, October 27, 2011 11:38 AM
  • I would just like to confirm that a Service has been created within Service Manager with the Desired criticality / Priorit.
    Thursday, October 27, 2011 12:02 PM
  • Yes.

    I imported the service with criticality priority, however the workflow does not fire

    Also added some services on hand to see if it was a problem with the import.

    I already did test workflow create and update but does not work

     


    || Aurélio Alves || - http://aurelioalves.wordpress.com
    Thursday, October 27, 2011 12:34 PM
  • When you look in the "Adminstration Pane" -> Workflows -> Status

    and then the name of your workflow, are there any errors?

    Has it even tried to kick off?

     

    Thursday, October 27, 2011 12:37 PM
  • There are no action on the status. The workflow does not fire?

    Have you done any testing of workflow-based service?

     

    What do you mean by "Has it even tried to kick off?"


    || Aurélio Alves || - http://aurelioalves.wordpress.com
    Thursday, October 27, 2011 1:18 PM
  • This is impossible in UI. Affected services is a relationship object, you must implement same aproach as with affected user (please search in main SCSM Dev blog). You can run workflow when affected service added to incident and when check property of the service with PS-script.
    http://www.scsmsolutions.com/ freemanru (at) gmail (dot) com
    • Marked as answer by Aurélio Alves Monday, November 7, 2011 12:43 PM
    Thursday, October 27, 2011 2:22 PM
  • Thanks for the reply ...

    How you said I need to create a "PS-Script" to search for the Service and brings me the Priority. (http://blogs.technet.com/b/servicemanager/archive/2011/05/24/using-smlets-beta-3-post-6-getting-the-owner-of-a-service.aspx).

    But, after that, do I create a workflow, using the authoring tools, based on this result?

    My first objective is create a workflow that runs when the priority of service is critical or high and when we select specific classification. Workflow must apply a template and send an e-mail. Is it possible?

    I can to do this directly in XML or I have to use the authoring tools, or there's another way?

    Thanks for the help.


    || Aurélio Alves || - http://aurelioalves.wordpress.com
    Thursday, October 27, 2011 8:36 PM
  • I'm not sure what that can be done with authoring tool.

    When I create similar workflow I use full Visual Studio because in VS you can use full workflow engine (share variables between activities for example). For example you can create workflow like this:

    where SendAndApply is a standard SCSM activity.


    http://www.scsmsolutions.com/ freemanru (at) gmail (dot) com
    • Marked as answer by Aurélio Alves Monday, November 7, 2011 12:43 PM
    Monday, October 31, 2011 4:38 PM
  • Thanks for the help. I created a C # code that brings the information, but I opened another post to help me deal with the output of the code and the creation of workflows.

     

    Thanks


    || Aurélio Alves || - http://aurelioalves.wordpress.com
    Monday, November 7, 2011 12:43 PM