内容简介:BPMN 2.0 Modeling, Execution and Persistence, an open source Workflow Server for Node.jsA web based modeler is included based onbpmn-server provides an bpmnEngine to execute your workflow definition supporting most of BPMN 2.0 elements
bpmn-server
Introduction
BPMN 2.0 Modeling, Execution and Persistence, an open source Workflow Server for Node.js
Table of Contents
Documentation
Process modeller
A web based modeler is included based on http://bpmn.io , models definitions are saved at your server
Process Execution
bpmn-server provides an bpmnEngine to execute your workflow definition supporting most of BPMN 2.0 elements
Process Server
provides an environment to presist execution Instances while running and communicate with your application.
Applications can monitor and communicate to Instances whether they are running or offline, allowing user interface to query and process Workflow steps
Data Queries
Since instances are saved in MongoDB you can easily query your instances (running or completed)
Sample Web App
Included is a sample web application (running Node.js and Express.js) to allow you to visualize your workflow
Installation
This package requires Node.js and an access to MongoDB
- Create new Folder $ mkdir myBPMN $ cd myBPMN
- npm:
$ npm install bpmn-server 3) copy WebApp folder
$ cp node_modules/bpmn-server/WebApp/. ./ -r
-
Edit configuration file to have MongoDB point to your server or free cloud account
-
run the app
node app
Demo
a full demo site is available @ http://bpmn.omniworkflow.com
Example
import { BPMNServer } from '../src/BPMNServer'; const config = require('../configuration.js').configuration; test(); async function test() { let name = 'Buy Used Car'; server = new BPMNServer(config); let execution = await server.execute(name, {user:'rhanna'}, { caseId: 999 }); let instance = execution.instance; let items = execution.instance.items; console.log(items);
for more complete examples see Examples
Acknowledgments
The bpmn-server resides upon the excellent library bpmn-io/bpmn-moddle developed by bpmn.io
The bpmn-server is inspired by the library bpmn-engine
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
深入理解C#(第3版)
斯基特 (Jon Skeet) / 姚琪琳 / 人民邮电出版社 / 2014-4-1 / 99.00元
本书是世界顶级技术专家“十年磨一剑”的经典之作,在C#和.NET领域享有盛誉。与其他泛泛介绍C#的书籍不同,本书深度探究C#的特性,并结合技术发展,引领读者深入C#的时空。作者从语言设计的动机出发,介绍支持这些特性的核心概念。作者将新的语言特性放在C#语言发展的背景之上,用极富实际意义的示例,向读者展示编写代码和设计解决方案的最佳方式。同时作者将多年的C#开发经验与读者分享,读者可咀其精华、免走弯......一起来看看 《深入理解C#(第3版)》 这本书的介绍吧!