Gathering detailed insights and metrics for @bpmn-io/extract-process-variables
Gathering detailed insights and metrics for @bpmn-io/extract-process-variables
Gathering detailed insights and metrics for @bpmn-io/extract-process-variables
Gathering detailed insights and metrics for @bpmn-io/extract-process-variables
An util for bpmn-js to extract Camunda process variables from a BPMN 2.0 diagram.
npm install @bpmn-io/extract-process-variables
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
116 Commits
2 Forks
6 Watchers
3 Branches
11 Contributors
Updated on Feb 04, 2025
Latest Version
1.0.1
Package Id
@bpmn-io/extract-process-variables@1.0.1
Unpacked Size
109.67 kB
Size
11.40 kB
File Count
9
NPM Version
10.9.2
Node Version
20.11.1
Published on
Jan 02, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
An util for bpmn-js to extract Camunda BPM process variables from a BPMN 2.0 diagram.
1$ npm i --save @bpmn-io/extract-process-variables
Given this example diagram
1import { 2 getProcessVariables, 3 getVariablesForScope, 4} from '@bpmn-io/extract-process-variables'; 5 6// For Camunda Platform 8 diagrams, use the /zeebe submodule 7// import { 8// getProcessVariables, 9// getVariablesForScope, 10// } from '@bpmn-io/extract-process-variables/zeebe'; 11 12const canvas = modeler.get('canvas'); 13 14const rootElement = canvas.getRootElement(); 15 16const allVariables = getProcessVariables(rootElement.businessObject); 17/* 18 [ 19 { 20 "name": "variable1", 21 "origin": [ "Task_1" ], 22 "scope": "Process_1" 23 }, 24 { 25 "name": "variable2", 26 "origin": [ "Task_1" ], 27 "scope": "Process_1" 28 }, 29 { 30 "name": "variable3", 31 "origin": [ "Task_2" ], 32 "scope": "SubProcess_1" 33 } 34 ] 35*/ 36 37const scopeVariables = getVariablesForScope('Process_1', rootElement.businessObject); 38/* 39 [ 40 { 41 "name": "variable1", 42 "origin": [ "Task_1" ], 43 "scope": "Process_1" 44 }, 45 { 46 "name": "variable2", 47 "origin": [ "Task_1" ], 48 "scope": "Process_1" 49 } 50 ] 51*/
Note that origin
and scope
retrieves the full moddle element. The example outputs are reduced due to better readibility.
Note that camunda-bpmn-moddle or zeebe-bpmn-moddle descriptors have to be installed.
We are currently extracting process variables from the following diagram properties
camunda:formField
camunda:outputParameter
camunda:out
camunda:resultVariable
camunda:errorCodeVariable
camunda:errorMessageVariable
camunda:escalationCodeVariable
We are currently extracting process variables from the following diagram properties
zeebe:input
zeebe:output
zeebe:loopCharacteristics > inputElement
zeebe:loopCharacteristics > outputCollection
zeebe:calledDecision > resultVariable
zeebe:script > resultVariable
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
6 existing vulnerabilities detected
Details
Reason
Found 4/14 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More