An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

![Onify Blueprints](https://files.readme.io/8ba3f14-onify-blueprints-logo.png)

[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](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!

![Onify Blueprint: Approval example](blueprint.jpg "Blueprint")

## Screenshots

### Request form

Main form

![alt text](form-main-request.png "Request - Main form")

Result form

![alt text](form-result-request.png "Request - Result form")

### Approval form

Main form

![alt text](form-main-approval.png "Approval - Main form")

Result form

![alt text](form-result-approval.png "Approval - Result form")

### Process

![alt text](process.png "Process")

### Flow

![alt text](flow.png "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.