https://github.com/onify/blueprint-approval-example
Onify Blueprint: Approval example
https://github.com/onify/blueprint-approval-example
approval blueprint bpmn flow form forms onify onify-blueprint onify-blueprints process-output process-state processes workflow
Last synced: 3 months ago
JSON representation
Onify Blueprint: Approval example
- Host: GitHub
- URL: https://github.com/onify/blueprint-approval-example
- Owner: onify
- License: mit
- Created: 2021-03-26T08:37:14.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-11-24T07:28:56.000Z (over 3 years ago)
- Last Synced: 2025-02-16T17:57:03.953Z (about 1 year ago)
- Topics: approval, blueprint, bpmn, flow, form, forms, onify, onify-blueprint, onify-blueprints, process-output, process-state, processes, workflow
- Language: Pug
- Homepage: https://onify.co
- Size: 623 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://www.repostatus.org/#wip)
# 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!

## Screenshots
### Request form
Main form

Result form

### Approval form
Main form

Result form

### Process

### Flow

## 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:
```bash
curl -X POST "/api/v2/admin/forms" -H "accept: application/json" -H "authorization: " -H "Content-Type: application/json" -d "@form_request.json
```
Import `approval` form configuration:
```bash
curl -X POST "/api/v2/admin/forms" -H "accept: application/json" -H "authorization: " -H "Content-Type: application/json" -d "@form_approval.json
```
Import `approval-example` workflow configuration:
```bash
curl -X POST "/api/v2/admin/workflows" -H "accept: application/json" -H "authorization: " -H "Content-Type: application/json" -d "@workflow.json
```
### Modify Flow (BPMN)
Open `approval-example.bpmn` in editor change the following.
* Replace `http://localhost:3000` with correct URL for Onify Hub
* Replace `user@acme.com` with requester/user mail address
* Replace `manager@acme.com` with manager mail address
### Run
Go to `/form/request` and follow the instructions :-)
## Support
* Community/forum: https://support.onify.co/discuss
* Documentation: https://support.onify.co/docs
* Support and SLA: https://support.onify.co/docs/get-support
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.