Socket
Socket
Sign inDemoInstall

drools-kie-client

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drools-kie-client

Node.js client for Drools KIE server API.


Version published
Weekly downloads
7
decreased by-36.36%
Maintainers
1
Weekly downloads
 
Created
Source

drools-kie-client

Coverage Status Build Status Known Vulnerabilities dependencies Status

NPM

Node.js client for Drools KIE server API.

Project Info
License:Apache-2.0
Build:make
Documentation:http://bucharest-gold.github.io/drools-kie-client
Issue tracker:https://github.com/bucharest-gold/drools-kie-client/issues
Engines:Node.js 4.x, 6.x, 7.x

Installation

npm install drools-kie-client -S

Usage

const client = require('drools-kie-client');

const options = {
  baseUrl: 'http://host:port/kie_server_context',
  username: 'yourAdminUsername',
  password: 'yourAdminPassword'
};

client = client(options);

client.info().then(x => console.log(x.msg));

const container = {
  "container-id": "bgold",
  "release-id": {
    "version": "1.0",
    "group-id": "org.bgold.kieserver",
    "artifact-id": "bgold"
  }
};

client.containerAdd(container).then(x => console.log(x.msg));

const commands = {
  "commands": [
    { "insert": { "object": "testCommand" } },
    { "fire-all-rules": {} }
  ]
};

client.executeCommand('containerID', commands)
.then(x => console.log(x))
.catch(error => console.log(error));

You can use to

  • Verify the server status.
  • List, add, delete containers.
  • Execute commands.
  • View and update release.
  • View and update scanner.

Contributing

Please read the contributing guide

Keywords

FAQs

Package last updated on 22 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc