To automate tasks, Service Manager brings it’s own Workflow Engine. Using the Authoring Tool you can build detailed Workflows to automate almost any task you want. And the best thing: it’s pretty easy! In this Blogpost Series i will show you how Workflows can make your life easier …
I will build a Workflow that launches a Powershell-Script that automatically closes Incidents that have been in a resolved state for more than 5 days. You can find details about this Script in this Blogpost.
First, I create a new Management Pack in the Authoring Tool and create a new Workflow.
After the name and description of the Workflow have been specified, I choose the Workflow trigger. I want the Workflow to automatically run daily at a specific time.
Now it’s time to build the workflow. In this first Part of the Workflow Series, I will build a very simple Workflow with just one Object that holds the Powershell-Script. I just drag the needed Object from the Toolbox to the Workflow and configure it by giving it a name, description and the script body.
Now it’s time to save and import the Management Pack. But wait – there is one more step! The folder that contains the Management Pack XML-File also contains some other files that were created when I built the workflow. The Assembly (DLL-File) needs to be copied to the Service Manager Installation Folder on the Management Servers. Otherwise the Workflow will fail.
In the Service Manager Console it’s possible to check the Status of the Workflows. In case of problems you can find important details why the workflow did not run successfully.
In the next Part of the Workflow Series I will show you how to use Workflows for more complex requirements.