Code Monkey home page Code Monkey logo

bpmdemo's Introduction

bpmdemo

A simple web application controlling a process

This demo is based on two simple processes (descripted below) defined by the Business Central and a web application which interacts with them. The web app can be deployed in the same container of the Business Central so that it can share the BC Realm. Configuring the Web App security with the same Realm of the Business Central enables the SSo between the two contexts. An example of Application Roles mapping file is provided in order to define the roles required by the second process.

Demo overview

The demo is based on two different phases, one first phase has the purpose of showing the features of the centralized web console (the Business central) and a second phase that describes how external applications can be integrated with processes defined into the Business Central. The first phase can be self-managed and anyone can be free of performing it in the preferred flavour. For the second phase a specific process, the web app and a specific set of users are required. The main purpose of this second part of the demo is to demonstrate:

  1. Interaction with the Business Central from an external app (using ReST API);
  2. Use of groups, assignement and escalation of the Runtime Engine.

The SIMPLE process

The first process is a very simple process that can be designed on the fly during the first part of the demo.

The PAYSLIP process

The payslip process must be imported and is based on a specific path of actions

Setup

  1. Install a BPM Suite platform following the product installation guide.
  2. Clone this git project into a folder of your convenience. Let's call it prj_dir.
  3. Run the BPMS instance.
  4. Import the repository:
  5. Enter the console with a user with Admin role.
  6. Go to Authoring -> Administration.
  7. from the Repositories tab select Clone repository.
  8. Specify a name, select an OU of your preference and specify the path: prj_dir/repositories/mef
  9. The process attivazioneSistemaPaghe will be now available in the Project authoring section of the console.
  10. Build the project so that now you have a precess definition of the above process in the process definition list.
  11. Edit the web application (in the application folder of the cloned project) with your IDE.
  12. Edit the index.jsp page and change the theUrl variable in the script section at the bottom of the file. You have to change the references to the deployed processes: /business-central/rest/runtime/it.mef.demo:bpmdemo:1.0/withvars/process/bpmdemo.simple/start by substituting it with correct ones that you can read from the console when you edit the process definition with the process editor.
  13. Build the project using mvn clean package.
  14. Deploy the app located in the target subfolder by copying it in the deployments dir or using the web administration console or using the deploy command of the CLI.

bpmdemo's People

Contributors

aleoncini avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.