Blog Posts Process Management

Representing hierarchy using Databases

Blog: Flokzu

Flokzu Databases can be used in many ways: to store valuable information shared by multiple processes (table of products, vendors, etc.), to create your own CRM, to avoid entering repeated information manually (such as list of countries, cities, districts, etc.), and more.

Databases can even be used to represent organizational hierarchy and automate things like assigning a task or sending an email to your boss. These use cases are the focus of this post.

This example will use a database called ‘Hierarchy’ with the following schema:

DBschema

 

The idea behind it is to use the database to save the relationship between employees and supervisors.

 

Example 1: Sending an email to the supervisor

For this example, it’s not necessary that either of the email addresses are valid users within Flokzu.
First of all, include an Email field type in the process form. In this example we’ll call it ‘Recipient’. If you want, it can be hidden in every task of the workflow. We’ll use it to store the supervisor’s email and set it as the recipient of the Send Task.
At a certain step in your workflow where you want to send the email, you have to include the following sequence:
unnamed
The Service Task will be used to invoke a REST Web Service and obtain the email of the supervisor, which will be stored in the Email field.
Setting up the Service Task

The Service Task should be set up as follows:

getRecord

URL: https://app.flokzu.com/flokzuopenapi/api/ApiKey/database/dbase

ApiKey should be replaced with the Api Key generated for your organization.
database should be replaced with the exact same name of the database, including uppercase, lowercase and special characters. In our case it’s Hierarchy.

Method: GET

Input: Parameter names should always be paramName and paramValue.

The value of paramName should be the name of your database column where the employee’s email is stored (in our case it’s userEmail).
The value of paramValue is the email that you want to use. It can be the Previous Task Participant, the Process Initiator (only works if it’s not via Public Form) or even an email stored in one of your fields.

Output should be set up as follows:

getRecordOutput

Parameter name is the name of the column you want to use in your database (in our case bossEmail) and Field is the Email field.

Request Headers should be left blank.
Once you set this up, in the Recipient field will be stored the email of the supervisor. Just use that email as the recipient of the Send Task and you’ll be good to go.

Example 2: Assigning a task to the supervisor

In this case, the supervisor should be a valid user within Flokzu.

Include the task that the supervisor should complete in your workflow and as assignee select the special user [Web Service]. This means that the task assignation will be done dynamically via REST Web Service.

Click the link that reads ‘Set up your Web Service here…‘ and use the configuration described before.  The only difference is that in this case the Output should be set up like this:

assigneeOutput

 

Conclusion

Databases have a lot of potential and can help you automate your work even more. If a user doesn’t know how to complete a task, he could have a decision that assigns it directly to his supervisor. Or if someone takes too long to complete a task, an automated (and customized) email could be sent to the boss.

The use cases of this feature are endless. It’s just a matter of figuring out what’s the best way to put it in use for your organization.

If you want to discuss your particular use case or get help to set it up, contact us at info@flokzu.com.

The post Representing hierarchy using Databases appeared first on Flokzu.

Leave a Comment

Get the BPI Web Feed

Using the HTML code below, you can display this Business Process Incubator page content with the current filter and sorting inside your web site for FREE.

Copy/Paste this code in your website html code:

<iframe src="https://www.businessprocessincubator.com/content/representing-hierarchy-using-databases/?feed=html" frameborder="0" scrolling="auto" width="100%" height="700">

Customizing your BPI Web Feed

You can click on the Get the BPI Web Feed link on any of our page to create the best possible feed for your site. Here are a few tips to customize your BPI Web Feed.

Customizing the Content Filter
On any page, you can add filter criteria using the MORE FILTERS interface:

Customizing the Content Filter

Customizing the Content Sorting
Clicking on the sorting options will also change the way your BPI Web Feed will be ordered on your site:

Get the BPI Web Feed

Some integration examples

BPMN.org

XPDL.org

×