Skip to content

onify/blueprint-approval-example

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: Approval example

Approvals are something that any organization are in need of. If you need approvals for a new iPhone or a new application. Maybe you need to order access and the system owner needs to approve it. In this example we show how a user makes a simple request and then someone needs to approve it. With the power of Onify you can of course automatically set the approver based on user that made the request. We also show how the user and manager can follow the request via a simple process view. This gives the user full visibility of the process at all times. No more chase calls! Hope you like it!

Onify Blueprint: Approval example

Screenshots

Request form

Main form

alt text

Result form

alt text

Approval form

Main form

alt text

Result form

alt text

Process

alt text

Flow

alt text

Requirements

  • Onify Hub v2
  • Onify Flow license
  • Camunda Modeler 4.4 or later
  • Configured email settings in Onify Hub

Included

  • 2 x Forms (config + resources)
  • 1 x Workflow including Flow (config + resource)

Setup

  1. Resources
  2. Import configuration
  3. Modify Flow (BPMN)

Resources

Copy ./resources/* to Onify Hub resources folder

Configuration

Import request form configuration:

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

Import approval form configuration:

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

Import approval-example workflow configuration:

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

Modify Flow (BPMN)

Open approval-example.bpmn in editor change the following.

Run

Go to <ONIFY-HUB-APP-URL>/form/request and follow the instructions :-)

Support

License

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