Skip to content

Extension to use bpmn-server libraries with lb4 repositories and lb4 controllers

License

Notifications You must be signed in to change notification settings

ingpconci/loopback4-bpmn-server

Repository files navigation

loopback4-bpmn-server

LoopBack

Installation

Install Loopback4BpmnServerComponent using local package

In the package.json add:

"loopback4-tenant-table-filter": "file:loopback4-tenant-table-filter-1.0.5.tgz",
"bpmn-server": "file:bpmn-server-1.3.12.tgz",
"loopback4-bpmn-server": "file:loopback4-bpmn-server-0.96.1.tgz",

Basic Use

Configure and load Loopback4BpmnServerComponent in the application constructor as shown below.

import {Loopback4BpmnServerComponent, Loopback4BpmnServerComponentBindings, Loopback4BpmnServerComponentOptions} from 'loopback4-bpmn-server';
// ...
export class MyApplication extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {
  constructor(options: ApplicationConfig = {}) {
  
  
    //--------------------------------------------------------------------------
    // BpmnServerComponent
    //--------------------------------------------------------------------------
    const definitionsPath = path.join(__dirname, '../processes/')
    console.log('AppServerApplication:startup: bpmnProcessDefinitionDirectory=', definitionsPath);
    const componentOptions: Loopback4BpmnServerComponentOptions = {
      bpmnProcessDefinitionDirectory: definitionsPath
    }
    this.configure(Loopback4BpmnServerComponentBindings.COMPONENT).to(componentOptions);
    this.component(Loopback4BpmnServerComponent);


    // ...
  }
  // ...
}

About

Extension to use bpmn-server libraries with lb4 repositories and lb4 controllers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published