
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@yape/engine
Advanced tools

Yape, like in "yet another process engine" or "your adaptable process engine" is a JavaScript BPMN workflow execution engine.
First, install using npm or yarn
$ npm install @yape/engine --save
Then use yape in your Node.JS or in the browser.
const Yape = require('@yape/engine');
// Instantiate an engine
const yape = new Yape();
// Create a new process instance, specify a valid bpmn definition (returns a token)
const token = await yape
.createProcessInstance({
workflowDefinition: 'valid bpmn'
}).catch(console.error);
// Tell the initial token to continue execution
await token.exec().catch(console.error);
// At some later point in time, in a different part of
// your app (e.g. when a User task is handled as complete by your own app)
const token = await yape.continueTokenInstance({
tokenId: '<id of the token you want to execute>',
// set the payload you want to merge into the existing payload
payload: {}
});
await token.exec().catch(console.error);
...
Currently you can develop plugins for the following elements:
You create plugins by extending from one of the above classes and instantiating a class into the plugins array when creating the engine.
const Yape = require('@yape/engine');
class History extends Yape.Plugins.Element {
constructor({ store = [] } = {}) {
super();
this.store = store;
}
onReady = definition => {
this.store.push({ state: 'ready', elementId: definition.id });
};
onActive = definition => {
this.store.push({ state: 'active', elementId: definition.id });
};
onComplete = definition => {
this.store.push({ state: 'complete', elementId: definition.id });
};
}
const history = new History();
const yape = new Yape({ plugins: [history] });
The above plugin will push executed elements' id's into an array, which serves as some kind of log.
Every plugin can make use of three methods which will be called in order of execution, onReady, onActive and onComplete.
Methods receive the definition (as a moddle reference) of the current activity and the processInstance (including its .payload) as arguments. Read more about creating plugins here (... link missing...).
FAQs
Yape Engine
The npm package @yape/engine receives a total of 5 weekly downloads. As such, @yape/engine popularity was classified as not popular.
We found that @yape/engine 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.