Workflow Builder


 

SapphireIMS has a GUI based workflow builder with drag and drop capability and using which workflows can be quickly created and updated.

The workflow builder allows you to create states, establish edge connections between states for the workflow, select or create services, sub-categories and roles, add custom business rules, e-mail and SMS notifications on state transitions.

Note.gifNote: Before using the workflow builder, you need to create the project and ensure that the start and end states are present and the categories are created.

Adding or Creating a state

SD-Settings-WFBuilder-Add.jpg

 

SD-Settings-WFBuilder-CreateState.jpg

 

Serial No

Field Name

Description

 

1  

State Name

Enter the state name which uniquely identifies the state.

2

Short State Name

You can optionally enter a short name which is useful in e-mail based state transi

3

Select Category

Select the State Category under which this State falls.

 

4

Inherited From

Select the state if any, from which this state inherits its attributes. These are special states 'Assign', 'Waiting for Approval' and 'Multi Approval'.

5

Color

You can use the color picker for displaying the state symbol.

 

Serial No

Icon

Description

 

1  

SD-Settings-WFBuilder-ConnectorButton.jpg

Click on this button to add a connector from this state to another state. This represents a state transition. For more details refer Adding an edge connector for state transition.

2

SD-Settings-WFBuilder-StateEditButton.jpg

Click on this button to edit the state information.

3

SD-Settings-WFBuilder-StateDelButton.jpg

Click on this button to delete the state. Note that the state definition will be removed altogether and not just from the workflow.

4

SD-Settings-WFBuilder-StateCBRButton.jpg

Click on this button to create or update custom business rules associated with this state. For more details refer Adding custom business rules.

5

SD-Settings-WFBuilder-EmaiNotButton.jpg

Click on this button to create or update the Email notification rules for this state. For more details refer Adding E-mail Notifications.

6

SD-Settings-WFBuilder-SMSNotButton.jpg

Click on this button to create or update the SMS notification rules for this state. For more details refer Adding SMS Notifications.

 

 

Adding an edge connector for state transition

 

SD-Settings-WFBuilder-EditWorkflow.jpg

 

 

Serial No

Field Name

Description

 

1  

Service

Select the Service to which this workflow belongs. You can select more than one workflow.

2

Sub Category

Select the Sub Categories which are governed by this workflow.

3

Consider Derived Fields

Click on this box to display the ‘Derived Field 1’, ‘Derived Field 2’ and ‘Derived Field 3’ fields. It is not a mandatory field.

The derived fields will be displayed based on the sub category chosen.

4

Role

Select the role(s) which have permissions to perform this state transition.

 

 

Adding custom business rules

 

SD-Settings-WFBuilder-CBRAdd.jpg

 

Serial No

Field Name

Description

 

1  

Name

Enter the rule name

2

Description

Enter the description of the rule

3

Enable on Update

Check this box if the rule has to be executed when the record is getting updated. By default, the rule is run only when the record is created.

4

Launching Order

Enter the order in which the action must be executed. If the order is 2, then the pre or post action is executed after the first pre or post action.

5

Action Type

Select Pre or Post Action. Pre-Action means the business rule is executed before the state change and Post-Action means the business rule is executed after the state change.

6

Class Name

There are some pre-shipped classes provided which contain business rules. Select a class which contains the business rule. Class files are compiled Java code which contain the business logic. You can create your own class for creating custom rules.

The class files have a .class extension and are located in the following path

<SapphireIMS Install Path>\ SapphireIMS\WebManagement\standalone\deployments\SapphireIMS.war\WEB-INF\classes\sapphire\actions

7

Property File Name

Select the property file name, which is a file that contains the configurable parameters used by the class. The property file has a .properties filename extension. Property files are located in the following path

<SapphireIMS Install Path>\ SapphireIMS\WebManagement\standalone\deployments\SapphireIMS.war\WEB-INF\classes\sapphire\actions

 

 

Adding E-mail Notifications

 

SD-Settings-WFBuilder-EmailRules.jpg

 

Serial No

Field Name

Description

 

1  

Specific Template

Select the template to be used for the notification. Refer to the topic Service Desk->Settings->Email & SMS Notifications->Email Notification Templates for details on templates.

2

To Whom

Select the roles for which the users attached will get the notification.

3

Info Template

Select the template to be used for the information mail to the users.

4

To Whom

Select the roles for which the users attached will get the information e-mail.

5

Project Manager

Check this option if notification has to be sent also to the project manager.

6

CC

Check this option if the mail has to be copied to the cc mail ID specified while submitting a new service desk record.

7

External Email

Enter the e-mail ID of any other person who should be notified along with the email IDs mentioned above.

 

 

Adding SMS Notifications

 

SD-Settings-WFBuilder-SMSRules.jpg

 

Serial No

Field Name

Description

 

1  

To

Select the role for which the users attached will get the notification.

2

Users

Select the users who will get the notification.

3  

SMS Template

Select the template to be used for the notification. Refer to the topic Service Desk->Settings->Email & SMS Notifications->SMS Notification Templates for details on templates.

4

Additional Contact Numbers

Check this box if the notification has to be sent to additional external numbers.

5

External Contact No

Enter the contact numbers if the Additional Contact Numbers checkbox has been selected.

 

 

Adding a Service

 

SD-Settings-WFBuilder-AddService.jpg

 

Serial No

Field Name

Description

 

1  

Service Name

Enter the Service Name.

2

Short Service Name

Enter the Short Name for the Service which makes it easier for usage.

3  

Service Description

Enter the Service Description.

4

Attach Image

Attach an image which will be displayed in the service catalog for selection.

5

Service Type

Select the Service Type as 'Parent' or 'Child'. If Parent is selected, then only Parent records can be created for this Service. If Child is selected, select the Parent Service to which it belongs.

 

 

Adding a Sub-Category

SD-Settings-WFBuilder-AddSubCategory.jpg

 

Serial No

Field Name

Description

 

1

Category

Select the Category under which the Sub-Category should be added.

2

Sub Category Name

Enter the Sub-Category Name.

3  

Short Name

Enter the Short Name.

4

Sub Category Description

Enter the Sub-Category Description

 

 

Adding Roles

SD-Settings-WFBuilder-AddRole.jpg

 

 

Serial No

Field Name

Description

 

1

Role Name

Enter the Role Name

2

Description

Enter the Role Description

3  

Inherit From

Select the Role from which this role inherits its attributes

4

Copy From

Select the Role from which the access privileges need to be copied for this role