Defining Workflows

From Subscribe-HR Wiki Help
Jump to: navigation, search
Line 44: Line 44:
 
<br>
 
<br>
 
Every condition that is added uses an AND statement meaning each condition must be met or the workflow is not triggered.<br>
 
Every condition that is added uses an AND statement meaning each condition must be met or the workflow is not triggered.<br>
[[File:conditions.gif]]
+
[[File:conditions.png]]
  
  

Revision as of 01:54, 14 July 2010

What is a Workflow

A workflow consists of a sequence of connected steps, that are run when conditions are met.
The Dictionary definition is: It is a depiction of a sequence of operations, declared as work of a person, a group of persons, an organization of staff, or one or more simple or complex mechanisms.

Workflows are triggered by meeting a condition, or reaching a step defined in the workflow process.
By looking at the Tabs in the Workflow Tasks it can be said to be broken down into:
General - What type of Workflow am I
Condition - When do I start
Reminder - What do I do when I start
Updates - Do I need to update any fields in the system after I have started.

Defining Workflows for Objects

We first of all need to select the Object we wish to create the workflow for. Our choice of the object will be based on the information we are collecting.

Workflow Types

Workflow types define when an action should be triggered. The Workflow types are:

  • Create New Records - Workflow is triggered when a new record is created
  • Update Existing Records - Workflow is triggered when an existing record has been updated
  • Create New or Update Existing Records - Workflow is triggered when a new record or an existing record has been updated
  • Time Based - Workflow is triggered when a time condition has been met.

Examples

An Example of a Time Based Workfow Type: Employee Birthdate
We could setup an Employee Birthdate workflow with the conditions of where the Employee birthday is less than 3 days. When the condition of 3 days before the Employee Birthday is met an action is triggered.

An Example of a Create New or Update Existing Records Workflow Type: Employee Address Update Notification.
When an employees address details are updated or a new record inserted, a notification can be automated.

Workflow Conditions Explained

A Workflow needs to know when to start (when to be triggered) and thats what the conditions are for. As long as ALL conditions are met then the workflow will be triggered.

Every condition that is added uses an AND statement meaning each condition must be met or the workflow is not triggered.
Conditions.png


Creating a Workflow for an Object

  1. After logging into the Subscribe-HR portal, select the Development TAB
  2. Select the Objects folder.
  3. Select the Object that you wish to define a workflow for.
  4. Select the Workflow Tasks sub-folder.
  5. Select the create button.
  6. Decide whether the Workflow is Active or not
    If this is set to Yes then the Workflow is active in the system, and when triggered the workflow will carry out its task.
  7. Enter the name of the workflow you are creating.
  8. Select the Workflow type as defined above.
  9. Select the Workflow mode
    Standard Workflow Mode should be used for most Workflows created where the conditions inside the workflow are adequate.
    The Custom Condition Workflow Mode option is available as some areas of the system have pre-programmed custom conditions that cannot be otherwise defined by the Standard Workflow Mode, if selecting the custom condition you loose the ability to define your own conditions.
  10. Select the Save button.
    After the record has been saved the conditions section is shown.
    Condition.gif
    Mandatory fields are marked in bold, the record will not be saved unless mandatory fields are filled in first.
  11. From the drop down under Add condition select the field that you want to trigger the workflow on.
  12. Select the condition that applies to the selected field.
    Additional conditions can be added by selecting the Add condition link.
  13. Select if a Reminder should be sent to the Location Manager.
  14. Select if a Reminder should be sent to the Employee Manager.
  15. Select if a Reminder should be sent to any particular users of the system.
  16. Enter any other email addresses that you with the reminder to be sent to.
  17. Select the Template that will be used in the sent email.
  18. Select the field you wish to update as a result of this workflow being triggered.
    This is not necessary to be filled out if you only want a reminder to be sent out, however if you did want to automate and update a field with a particular value this can be done by selecting the field to update and selecting or entering the value that should be updated into the selected field.
    Update fields.gif
    To update additional fields select the Add update link.
  19. Select the Save button.


Subscribehr logo.gif