Create a Workflow Using the If-Then Block

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

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

John regularly sends documents to the Supervisor for approval. If the Supervisor approves the documents then the value of the Status data field in the Globodox DB is changed to Approved.

John sends document to the Supervisor for Approval]

If [Document Has Been Approved By Supervisor]

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

End If

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 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.Drag the Approve Documents task from the Task pane and drop it on the <<Add Tasks here>> in the Designer pane.
6.The Approve Documents properties will now be displayed in the Properties pane.
a)Select the Supervisor's name in the Approvers box.
b)Enter 1 in the Max Recipients box as there is only 1 approver.
c)Enter 1 in the Min Responses box as only 1 approval is required.
d)Enter ApprovalfromtheSupervisor in the Name box.
e)Enter 1 in the Number of approvals box, as we need the Supervisor's approval.
f)Enter Approve 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.
7.Click the Condition And Loops bar at the bottom of the Task pane and drag the the If-Then block and drop it below the Approve Documents task.
8.Select If block in the Designer pane. Now, the Condition property will be displayed in the Properties pane.
9.Click the [...] box next to the Condition box to enter a condition. This will bring up the Condition window.
10.Enter a condition for the If block in this window. We will enter ApprovalfromSupervisor.approved=Yes.
11.Click the OK button to save this condition.
12.Drag the Change Text Field Value task from the Task pane and drop it on <<Add Tasks here>> below the Then block.
13.The Change Text Field Value properties will now be displayed in the Task Properties pane.
a)Enter a name for the task tin the Name box. We will enter ChangeStatusValue.
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.Satus
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.
c)Enter the new value for the data field in the Field value box. We will enter Approved.
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.
14.Click the Save button to save the workflow.
15.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 If-Then Else block
Create a Workflow using the If-Then Repeat Task block
Create a Workflow using the Do Task Repeat If block

 

 


Page URL: http://www.itaz.com/globodox/help/index.htm?create_workflow_using_if_then_block.htm