BPMN for Node.js

栏目: IT技术 · 发布时间: 3年前

内容简介: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

  1. Create new Folder $ mkdir myBPMN $ cd myBPMN
  2. npm:

$ npm install bpmn-server 3) copy WebApp folder

$ cp node_modules/bpmn-server/WebApp/. ./ -r

  1. Edit configuration file to have MongoDB point to your server or free cloud account

  2. 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


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Adobe Flex 大师之路

Adobe Flex 大师之路

2009-5 / 69.80元

《Adobe Flex大师之路》以Flex 3.0为基础,涵盖了Flex技术的核心内容。《Adobe Flex 大师之路》能够帮助您你学习并掌握使用Flex所需的牢靠和全面的知识基础,告诉您你如何把这些知识将之转化为代码,并在实际项目中变通应用。通过学习《Adobe Flex 大师之路》,您你可以利用Flex来构建企业级应用的表现层、改善应用的用户体验、集成企业端的复杂服务。这本书是为所有希望学习......一起来看看 《Adobe Flex 大师之路》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

在线进制转换器
在线进制转换器

各进制数互转换器

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具