Create a Workflow Using the If-Then Repeat Task Block

Print this Topic  Previous Topic Home Topic Next Topic
You are here: Globodox Workflow > Create Workflows >Create a Workflow Using the If-Then Repeat Task Block

The Workflow is created based on the following scenario...

John regularly sends documents to his Supervisor for reviewing. The Supervisor forwards the documents (after editing them if required), to the Manager for approval. The documents rejected by the Manager are returned to Supervisor so that she can modify and re-submit the same. If the Manager approves the documents the value of the Status data field is changed to Approved in the Globodox DB and the Supervisor is notified about the rejected documents.

John sends document to his Supervisor for Approval

If [Manager has not approved the documents]

Then

       [Send the documents to the Supervisor for Approval]

      If [Documents have been approved by the Supervisor]

          Then [Send the documents to the Manager for Approval]

                  If [Documents have been approved by the Manager]

                      Then [Change the value of Status data field to Approved]

                      Else [Notify Supervisor about the rejection]

                    End If

             End If

Repeat Tasks

Notes:

1.To create a good workflow it is important to document the business process before designing the workflow in the workflow designer.
2.All instructions in the Create Workflows...  and Examples sections of this help file assume that you have five users called Supervisor, Manager, John, Mary and Jack. It is highly recommended that you create these Globodox users. This will make it easier for you follow the instructions below.
 

To Create a Workflow using the If-Then Repeat block:

1.In Globodox, select the Tools tab and click the Workflow Designer button. This will bring up the Workflow Designer window.
2.Click the New button to create a new workflow. The Designer pane and the Properties pane will now be activated.
3.In the Properties pane enter a name for the workflow in Name box. You can also enter additional information about the workflow in the Description box.
4.Enter the number of days in which this workflow should be completed in the Duration (in days) box. If the workflow is not completed in the given time it will be marked as Red in the Workflow monitor.
5.Click the Conditions And Loops button and drag the If-Then-Repeat Tasks block and drop it on <<Add Tasks here>> in the Designer pane.
6.Drag the Approve Documents task from the Task pane and drop it in the Then-Repeat Tasks block.
7.The Approve Documents properties will now be displayed in the Task Properties pane.
a)Select the Supervisor's name in the Approvers box.
b)Enter 1 in the Max Recipients box as there's only 1 approver.
c)Enter 1 in the Min Responses box as only 1 approval is required.
d)Enter 1 in the Number of approvals box, as we need the Supervisor's approval.
e)Enter ApprovalfromSupervisor in the Name box.
f)Enter Review Documents in the Subject box.
g)Enter Please have a look at the Documents in the Message box.
h)Enter the time in which this activity should be completed in the Duration (in hours) box. If the activity is not completed in the given time it will be marked as Red in the Users Inbox.
8.Click the Condition And Loops button and drag the the If-Then block and drop it below the Approve Documents task.
9.Select If block. Now, the Condition property will be displayed in the Task Properties pane.
10.Click the [...] box next to the Condition box to enter a condition. This will bring up the Condition window.
11.Enter a condition for the If block in this window. We will enter ApprovalfromSupervisor.approved=Yes.
12.Click the OK button to save this condition.
13.Now, drag the Approve Documents task again from the Task pane and drop it on <<Add Tasks here>> below the Then block.
14.The Approve Documents properties will now be displayed in the Task Properties pane.
a)Select the Manager's name in the Approvers box.
b)Enter 1 in the Max Recipients box as there's only 1 approver.
c)Enter 1 in the Min Responses box as only 1 approval is required.
d)Enter 1 in the Number of approvals box, as we need the Manager's approval.
e)Enter ApprovalfromManager in the Name box.
f)Enter Documents Approved by the Supervisor in the Subject box.
g)Enter Please approve these documents in the Message box.
 
If you want to view Supervisor's comments, type the following syntax after the message %ApprovalfromSupervisor.Details%.
 
h)Enter the time in which this activity should be completed in the Duration (in hours) box. If the activity is not completed in the given time it will be marked as Red in the Users Inbox.
15.Click the Conditions And Loops button and drag the If-Then-Else block and drop it below the Approve  Documents task.
16.Select the If block. Now, the Condition property will be displayed in the Properties pane.
17.Click the [...] box next to the Condition box to enter a condition. This will bring up the Condition window.
18.Enter a condition for the If block in this window. We will enter ApprovalfromManager.approved=Yes.
19.Click the OK button to save this condition.
20.Drag the Change Text Field Value task from the Task pane and drop it on <<Add Tasks here>> below the Then block.
21.The Change Text Field Value properties will now be displayed in the Task Properties pane.
a)Enter ChangeStatusValue in the Name box.
b)Specify the field name whose data you want to change, in the Field name box.
This should be in exactly the format below…
self.Invoice Amount
i.e. self.[FieldName]
 
Where Field Name is the name of the field whose data you want to change.
The word self specifies that the field belongs to a document type.
If this field belonged to a Stack, then replace self with parent.
a)Enter the new value for the data field in the Field value box. We will enter Approved.
c)Enter Approved in the Field value box
d)Enter the time in which this activity should be completed in the Duration (in hours) box. If the activity is not completed in the given time it will be marked as Red in the Users Inbox.
22.Drag the Send Message task from the Task pane and drop it on <<Add Tasks here>> below the Else block.
23.The Send Message properties will now be displayed in the Task Properties pane.
a)Enter a name for the task in the Name box. We will enter NotifySupervisor.
b)Select the users that you want to notify by clicking the [...] button next to the Sender list box. We will select the Supervisor.
c)You can enter a subject for the notification in the Subject box. We will enter Rejected Documents.
d)You can type in a message to be sent along with the documents in the Message box. We will enter Please review these documents once again.
 
If you want to view Supervisor's comments, type the following syntax after the message %ApprovalfromSupervisor.Details%.
 
e)Enter the time in which this activity should be completed in the Duration (in hours) box. If the activity is not completed in the given time it will be marked as Red in the Users Inbox.
24.Select the Repeat Task block. Now, the Condition property will be displayed in the Properties pane.
25.Click the [...] box next to the Condition box to enter a condition. This will bring up the Condition window.
26.Enter a condition for the Repeat Task block in this window. We will enter ApprovalfromManager.approved=No.
27.Click the OK button to save this condition.
28.Click the Save button to save the workflow.
29.Click the Publish button to publish the workflow to all the users. This workflow will now be available for the Globodox user from the Route option.

 

Notes:

To create more complex workflows see, the More Examples section.
 

Related Topics

Create a Workflow using the Do Task Repeat If block

 

 


Page URL: https://www.globodox.com/support/help/index.htm?create_workflow_using_if_then_repeat_task.htm