Skip to content

Onify Blueprint: Form process output from REST API

License

Notifications You must be signed in to change notification settings

onify/blueprint-flow-process-output-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Onify Blueprints

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

Onify Blueprint: Form process output from REST API

Example that shows how a process can be started from a form and report back the process using the process output. This is great if you want to give your users a clear view of the results. Here we integrate with a simple REST-API and just return the "raw" JSON result on the screen.

Onify Blueprint: Form process output from REST API

Screenshots

Main form

This is the main form where you enter a URI for the REST API.

alt text

Result form

This is the result coming from the REST API in plain text.

alt text

Flow

This is the BPMN flow that is used.

alt text

Requirements

  • Onify Hub v2
  • Onify Flow license
  • Camunda Modeler 4.4 or later

Included

  • 1 x Workflows
  • 1 x Flows
  • 1 x Forms

Setup

Copy resources

Copy resource files to your resources folder. Make sure paths are the same.

Import configuration

Go to the ./config folder and import the configuration using curl.

Import the form:

curl -X POST "<ONIFY-HUB-API-URL>/api/v2/admin/forms" -H "accept: application/json" -H "authorization: <AUTH-TOKEN>" -H "Content-Type: application/json" -d @form.json

Import the workflow:

curl -X POST "<ONIFY-HUB-API-URL>/api/v2/admin/workflows" -H "accept: application/json" -H "authorization: <AUTH-TOKEN>" -H "Content-Type: application/json" -d @workflow.json

Run

Go to <ONIFY-HUB-APP-URL>/form/bp-form-process-rest-output and follow the instructions :-)

Support

License

This project is licensed under the MIT License - see the LICENSE file for details.