Configuration

REST Web Service Connections – WEBCON BPS Authentication

How to configure and use REST Web Service connections using WEBCON BPS Authentication. Examples of using WEBCON BPS REST Web Service.

This article was written based on 2021.1.1.56 Express version. Behavior may be different in other versions.

Before we start

Before we will configure a REST Web Service connection, it will be necessary to create an API application account and grant it appropriate permissions. In order not to duplicate the same content, I refer you to the article available on the WEBCON technical blog: Examples of using REST API. There you also will find how WEBCON BPS authentication works.

When you created your API application account, you have a generated client ID and client secret and permission granted on processes, you are ready to go.

Why should you use connection with WEBCON BPS authentication

Long story short: because it makes it much easier to configure the integration between WEBCON BPS instances!

In standard way firstly you should obtain a token using /api/login POST method. Then, using the received token, you are able to call the method you need. When you use standard connection with WEBCON BPS authentication, that connection will handle obtaining and using token which is needed to invoking WEBCON BPS REST API methods.

Configuration of connection with WEBCON BPS authentication

It’s so simple! Just go to Data Source tab and add new connection in the REST WEB Service Connections node. Set “WEBCON BPS” as authentication type and enter proper Client ID, secret and base service URL.

Configuration of REST Web Service connection

Connection usage – REST WEB Service data source

The connection prepared in this way can be used in the data source configuration. Add new REST Web Service data source. Pick created data connection. Enter suffix URL and custom header parameters. In my example I want to get form fields from WEBCON BPS instance (element) with ID 530.

Configuration of REST Web Service data source

Then go to response tab and load response.

Loading response

An finally pick what data you want to use as your data source.

Picking data from response

Using REST WEB Service data source

Let’s try what data is returned. I configured example form field which will display data returned from configured data source above.

Testing data source

As you can see no every data is returned. In my case each choice field is blank. That is happening because these values are returned as collections. It seems that there is no way to get this data (when collection is in another collection). This behavior can be problematic and you should keep it in mind if you want to use this data. As a last resort, you can use the values ​​contained in the “svalue” column that returns the full value in text form.

Values that are blank in WEBCON BPS Designer Studio

Connection usage – Invoke REST WEB Service action

When I tried to select the created connection in the REST WEB Service invoke action, I was unable to pick the connection. In my opinion, this is a bug that will be fixed in future versions, in particular that using the custom authentication type, it is possible to indicate WEBCON BPS authentication.

No WEBCON REEST Service connection available
But still I can choose WEBCON BPS authentication type

Summary

The concept of connection using WEBCON BPS authentication is a great idea. It will allow for communication between WEBCON instances in an easy way. You can see, however, that not everything is working perfectly yet, but I hope that the next versions of WEBCON BPS will contain some bug fixes and the possibilities of WEBCON BPS integration will be further developed.

nedza.kamil

A graduate of the AGH University of Science and Technology in Krakow. When not involved in the creation and optimization of business processes, he plays board or computer games. He also is interested in using game mechanics (gamification) in real life and business. Spends the evenings creating and prototyping amateur games based on the UNITY engine.

Recent Posts

Managing local WEBCON BPS groups

WEBCON BPS local groups management using simple process. Adding and removal of multiple group users…

3 years ago

Using the FOR EACH ROW form rule in practice

The article describes how to use the FOR EACH ROW form rule in practice on…

3 years ago

Create your own WEBCON BPS Express laboratory from scratch.

A video tutorial on how to set up a WEBON BPS home laboratory from scratch…

3 years ago

JSON nested collection handling in WEBCON BPS

How to use the OPENJSON tabular function to handle a data import to WEBCON BPS…

3 years ago

Upgrade WEBCON BPS Express from 2020 to 2021

How to upgrade standalone version of WEBCON BPS 2020 to 2021. The article describes the…

3 years ago

Global business rules – ready-to-use examples

Several ready-to-use examples of global business rules that you can create once and use in…

3 years ago