Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
itesoft-bpmn-sdk
Advanced tools
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)
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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.