Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
itesoft-bpmn-sdk
Advanced tools
[![npm version](https://badge.fury.io/js/itesoft-bpmn-sdk.svg)](https://badge.fury.io/js/itesoft-bpmn-sdk)
Node.js SDK for Itesoft Engine API.
Table of Contents
itesoft-bpmn-sdk works as a connector between the customer and the Itesoft Engine API.
$ npm install --save itesoft-bpmn-sdk
It can be imported with CommonJS, ES2015 modules, and preferably TypeScript.
The library is written in TypeScript and includes TypeScript definitions by default. Nevertheless, it can surely be used with plain JavaScript too.
// CommonJS
const itesoft = require('itesoft-bpmn-sdk');
// ES6 modules or TypeScript
import * as itesoft from 'itesoft-bpmn-sdk';
import Client, {
BasicAuthEngine,
ClientConfig
} from "itesoft-bpmn-sdk";
const config: BasicAuthEngine = {
// Username for the basic auth to the engine
username: "USERNAME",
// Password for the basic auth to the engine
password: "PASSWORD",
};
const config: ClientConfig = {
// Username for the basic auth to the engine
apiUrl: "http://example.com",
};
new Client(basicAuth, clientConfig);
You can add custom headers like that:
const clientConfig: ClientConfig = {
apiUrl: "http://example.com",
headers: {
"CUSTOM-HEADER": "test",
},
}
itesoft-bpmm-sdk can log http requests executed, if you active the log option like that:
const clientConfig: ClientConfig = {
apiUrl: "http://example.com",
log: true,
}
Returns the activity instances matching the given filter
const client = new Client(basicAuth, clientConfig);
client.getActivityInstances(principal, attachment, filter, sortList, offset, maximumNumberOfResults)
.then(response => console.log(response))
.catch(error => console.log(error));
Returns the number of results a search of activity instances will return
const client = new Client(basicAuth, clientConfig);
client.getActivityInstancesCount(principal, filter, cacheConfiguration)
.then(response => console.log(response))
.catch(error => console.log(error));
Returns the requested activity instance or an exception if the requested activity instance does not exist
const client = new Client(basicAuth, clientConfig);
client.getActivityInstanceById(activityInstanceId, principal, identifier, attachment)
.then(response => console.log(response))
.catch(error => console.log(error));
Claims the user task instance for the connected user. Only a potential owner and not excluded owner can claim a user task instance
const client = new Client(basicAuth, clientConfig);
client.claimActivityInstanceById(activityInstanceId, principal, identifier)
.then(response => console.log(response))
.catch(error => console.log(error));
Option Claims the user task instance for the connected user. Only a potential owner and not excluded owner can claim a user task instance
const client = new Client(basicAuth, clientConfig);
client.optionClaimActivityInstanceById(activityInstanceId, principal, identifier)
.then(response => console.log(response))
.catch(error => console.log(error));
Disclaims the user task instance for the connected user. Only a potential owner and not excluded owner can disclaim a user task instance
const client = new Client(basicAuth, clientConfig);
client.disclaimActivityInstanceById(activityInstanceId, principal, identifier)
.then(response => console.log(response))
.catch(error => console.log(error));
Completes the given activity instance
const client = new Client(basicAuth, clientConfig);
client.completeActivityInstanceById(activityInstanceId, principal, identifier, dataEntries)
.then(response => console.log(response))
.catch(error => console.log(error));
Completes the given activity instance
const client = new Client(basicAuth, clientConfig);
client.saveActivityInstanceById(activityInstanceId, principal, identifier, dataEntries)
.then(response => console.log(response))
.catch(error => console.log(error));
Assign an activity instance potential owner
const client = new Client(basicAuth, clientConfig);
client.assignActivityInstancePotentialOwner(activityInstanceId, principal, identifier, userIdentifier)
.then(response => console.log(response))
.catch(error => console.log(error));
Unassign an activity instance potential owner
const client = new Client(basicAuth, clientConfig);
client.unassignActivityInstancePotentialOwner(activityInstanceId, userId, principal, identifier, userIdentifier)
.then(response => console.log(response))
.catch(error => console.log(error));
Logs in the given user with the given password. Allows to propagate the login to other modules.
const client = new Client(basicAuth, clientConfig);
client.login(username, password, propagate)
.then(response => console.log(response))
.catch(error => console.log(error));
Logs the given principal out.
const client = new Client(basicAuth, clientConfig);
client.logout(principal)
.then(response => console.log(response))
.catch(error => console.log(error));
Returns the Engine Core version.
const client = new Client(basicAuth, clientConfig);
client.getEngineCoreVersion()
.then(response => console.log(response))
.catch(error => console.log(error));
Checks the engine service availability. If this method returns with no error,it means the server is still available.
const client = new Client(basicAuth, clientConfig);
client.getEngineCheckAvailability()
.then(response => console.log(response))
.catch(error => console.log(error));
Returns the preferences matching the given filter
const client = new Client(basicAuth, clientConfig);
client.getPreferences(principal, attachment, filter, sortList, offset, maximumNumberOfResults)
.then(response => console.log(response))
.catch(error => console.log(error));
Returns the preference matching the given identifier
const client = new Client(basicAuth, clientConfig);
client.getPreference(identifier, principal, attachment)
.then(response => console.log(response))
.catch(error => console.log(error));
Returns the identifiers of processes that can be instantiate by the connected user. Each process identifier is associated with the available collaboration identifiers. null means theprocess can be instantiated in a standalone mode.
const client = new Client(basicAuth, clientConfig);
client.getProcessInstantiableProcessIdentifiers(principal)
.then(response => console.log(response))
.catch(error => console.log(error));
Returns the process instances matching the given filter.
const client = new Client(basicAuth, clientConfig);
client.getProcressInstances(principal, attachment, filter, sortList, offset, maximumNumberOfResults)
.then(response => console.log(response))
.catch(error => console.log(error));
Returns the number of results a search of process instances will return.
const client = new Client(basicAuth, clientConfig);
client.getProcressInstancesCount(principal, filter)
.then(response => console.log(response))
.catch(error => console.log(error));
Returns the requested process instance or an exception if the requested process instance does not exist.
const client = new Client(basicAuth, clientConfig);
client.getProcressInstanceById(processInstanceId, principal,identifier, attachment)
.then(response => console.log(response))
.catch(error => console.log(error));
Instantiate a process and returns it's identifier.
const client = new Client(basicAuth, clientConfig);
client.instantiateProcessInstance(collaborationIdentifier, identifier, name, makeNameUnique, dataEntries, initializeAllData, attributes, principal)
.then(response => console.log(response))
.catch(error => console.log(error));
Terminates the given process instance.
const client = new Client(basicAuth, clientConfig);
client.putProcessInstanceToTerminate(processInstanceId, principal, identifier)
.then(response => console.log(response))
.catch(error => console.log(error));
Triggers the given signal.
const client = new Client(basicAuth, clientConfig);
client.triggerSignalInstance(signalIdentifier, signalName, principal, payload)
.then(response => console.log(response))
.catch(error => console.log(error));
Returns a boolean indicating if the feature is supported. This method can be used to manage ascending compatibility on client side.
const client = new Client(basicAuth, clientConfig);
client.getSupportsByFeature(feature)
.then(response => console.log(response))
.catch(error => console.log(error));
Returns the users matching the given filter.
const client = new Client(basicAuth, clientConfig);
client.getUsers(principal, attachment, filter, sortList, offset, maximumNumberOfResults)
.then(response => console.log(response))
.catch(error => console.log(error));
Returns the user matching the given identifier.
const client = new Client(basicAuth, clientConfig);
client.getUserById(userId, principal, identifier, attachment)
.then(response => console.log(response))
.catch(error => console.log(error));
Returns the groups of a user.
const client = new Client(basicAuth, clientConfig);
client.getUserGroups(userId, principal, identifier, attachment)
.then(response => console.log(response))
.catch(error => console.log(error));
Thanks for wanting to contribute! Take a look at our Contributing Guide for notes on our commit message conventions and how to run tests.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Copyright (c) 2019 SombreroElGringo
FAQs
[![npm version](https://badge.fury.io/js/itesoft-bpmn-sdk.svg)](https://badge.fury.io/js/itesoft-bpmn-sdk)
The npm package itesoft-bpmn-sdk receives a total of 0 weekly downloads. As such, itesoft-bpmn-sdk popularity was classified as not popular.
We found that itesoft-bpmn-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.