GithubHelp home page GithubHelp logo

demo-bonita-chain's Introduction

Demo Bonita integrating Chain

This repository contains the materials to show how to integrate Bonita BPM with Chain.

The use case demonstrated in this demo is a car supply chain.

This demo has been built using the Community Edition of Bonita BPM.

A more complex demo that has been built with the Subscription edition of Bonita BPM can be viewed in this [recording] (https://www.bonitasoft.com/for-you-to-read/videos/accelerate-blockchain-technology-adoption-bonita-bpm-and-chain-core-0)

Requirements

To run the demo on your machine you will need the following elements:

Installation

  • Start Chain core and connect to Test Network

  • Clone this project on your local machine

  • Open a terminal in this repository

  • Build the project InitChain

cd InitChain
mvn package
  • Run the project InitChain to init the Chain Test Network with the data for the demo
mvn exec:java -Dexec.mainClass="org.bonitasoft.chain.InitDemoSupplyChain"
  • Start Bonita Studio
  • Import the process
  • Open the Portal
  • Import the organization provided
  • Associate a User profile to all users. Easy way to achieve that is to map the User profile to the role "member"
  • Run the process

Demo

On startup, the process will display the initialization form. Enter the following information:

  • Username: johnDoe
  • Car reference: bonitaWhiteCar

Demo 1

Then submit the task.

Log in as storeManager to display the next task: Review order. As storeManager, grab the task and accept it.

Demo 2

Refresh your task list to display the next tasK: Notify delay to customer. Grab the task and click on "Client accept"

Demo 3

Log in as productionManager to display the next task: Order a new car. As productionManager, grab the task, enter a date and submit it.

Demo 4

This will issue a new asset to the blockchain. You can see the transaction in the Chain dashboard.

Chain 1

Log in as storeManager to display the next task: Notify for availability. As storeManager, grab the task and submit it.

Demo 5

This will transfer the car asset from the store account to john doe account in the blockchain. You can see the transaction in the Chain dashboard.

Chain 2

More

If you interested in building your own application with Bonita BPM and Chain, you can find the source code of the connectors here: Chain connectors for Bonita

demo-bonita-chain's People

Watchers

James Cloos avatar  avatar

Forkers

pierrickvoulet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.