0.0.12 • Published 2 years ago

imicros-flow-control v0.0.12

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

imicros-flow-control

Coverage Status

Moleculer services for process definitions and control of imicros-flow

Installation

$ npm install imicros-flow-control --save

Dependencies / Requirements

Requires a running neo4j node/cluster.

Usage Controller Service

const { ServiceBroker } = require("moleculer");
const { Controller } = require("imicros-flow-control");

broker = new ServiceBroker({
    logger: console
});
broker.createService(Controller, Object.assign({ 
    name: "v1.flow.control",
    settings: { 
        db: {
            uri: process.env.URI,
            user: "neo4j",
            password: "neo4j"
        }
    }
}));
broker.start();

Actions

  • deployProcess { processId(optional), name } => { processId, versionId } name - name of object in object store. The object must be a valid bpmn xml file
  • activateVersion { processId, versionId } => { processId, versionId }
  • getProcesses { } => { processId, versionId, name }
  • getVersions { processId } => { processId, versionId, name }

Usage Query Service

const { ServiceBroker } = require("moleculer");
const { Query } = require("imicros-flow-control");

broker = new ServiceBroker({
    logger: console
});
broker.createService(Query, Object.assign({ 
    name: "v1.flow.query",
    settings: { 
        db: {
            uri: process.env.URI,
            user: "neo4j",
            password: "neo4j"
        }
    }
}));
broker.start();

Actions

0.0.11

2 years ago

0.0.12

2 years ago

0.0.9

2 years ago

0.0.7

3 years ago

0.0.5

3 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago