Datapolis Process System
Calling REST Services
This tutorial will show you how to use Call REST Service function to get data (in this example it will be JSON) from external REST service. For this tutorial i will use service, which returns us currency exchange rate for different kind of currencies.
The end result looks like this:
Creating workflow
Create simple workflow with one action launch form and one string variable. Name this variable result.
Creating activity to set result
Go to the action Activities editor and add Set variable activity:
In a Variable section add lookup to the result variable which we create earlier, and as a New value add lookup to Call REST Service function. Result should looks like on screen below:
Call REST Service - Example of use
Deploy and run
Remember to deploy your workflow before leaving designer. Now you can check how everything works by starting workflow and running the action.
Download