Flogo Apps running as Azure Functions

Image for post
Image for post

…. Run a Flogo Application on top of it!

So, let’s start working!

Image for post
Image for post
Photo by Serghei Trofimov on Unsplash
Image for post
Image for post
  • Server will listen for a GET request on the URI /hello-world
  • Response will be quite simple “Invoking a Flogo App inside Azure Functions”
npm i -g azure-functions-core-tools@3 --unsafe-perm true
func init --docker
func new
Image for post
Image for post
Image for post
Image for post
  • We need to copy the HelloWorld.json (our Flogo application) to the root folder of the function.
  • We need to change the host.json file to the following content:
{  "version": "2.0",  "httpWorker": {     "description": {            "arguments": ["-app"],            "defaultExecutablePath": "engine-windows-amd64.exe",            "defaultWorkerPath": "HelloWorld.json"      }   }}
./builder-windows-amd64.exe build
Image for post
Image for post
Image for post
Image for post
func start
Image for post
Image for post
http://localhost:7071/api/hello-world
Image for post
Image for post

PSG Senior Architect at TIBCO Software with a focus on Cloud Development, Event Processing and Enterprise Integration