
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@bpmn-io/execution-platform
Advanced tools
Set executionPlatform
and executionPlatformVersion
in your BPMN diagrams.
import BpmnModeler from 'bpmn-js/lib/Modeler';
import ExecutionPlatformModule from '@bpmn-io/execution-platform';
import ModelerModdleExtension from 'modeler-moddle/resources/modeler.json';
// extend the BPMN editor with the module and moddle extension
var modeler = new BpmnModeler({
additionalModules: [
ExecutionPlatformModule
],
moddleExtensions: {
modeler: ModelerModdleExtension
}
});
var executionPlatformHelper = modeler.get('executionPlatform');
executionPlatformHelper.setExecutionPlatform({ name: 'Camunda Cloud', version: '1.3.0' });
var executionPlatform = executionPlatformHelper.getExecutionPlatform();
// { name: 'Camunda Cloud', version: '1.3.0' }
console.log(executionPlatform);
// see the meta-data appear on save
modeler.saveXML(function(err, xml) {
xml; // ... <bpmn:Definitions ... modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="1.3.0">...
});
You can also configure the extension so that the execution platform details are set imperatively each time you save the diagram:
import BpmnModeler from 'bpmn-js/lib/Modeler';
import ExecutionPlatformModule from '@bpmn-io/execution-platform';
import ModelerModdleExtension from 'modeler-moddle/resources/modeler.json';
// extend the BPMN editor with the module and moddle extension together with configuration
var modeler = new BpmnModeler({
additionalModules: [
ExecutionPlatformModule
],
moddleExtensions: {
modeler: ModelerModdleExtension
},
executionPlatform: {
name: 'Camunda Cloud',
version: '1.3.0'
}
});
// see the meta-data appear on save
modeler.saveXML(function(err, xml) {
xml; // ... <bpmn:Definitions ... modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="1.3.0">...
});
MIT
0.2.0
FEAT
: allow to set the execution platform imperatively whenever XML is exportedFAQs
Add execution platform meta-data to BPMN diagrams
We found that @bpmn-io/execution-platform demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.