eyes4 5048dacc20 feature: 添加了对项目组成员、项目审核组成员增删改的权限控制 | 6 miesięcy temu | |
---|---|---|
.. | ||
bpmn | 6 miesięcy temu | |
src | 6 miesięcy temu | |
config.json | 8 miesięcy temu | |
config_dev.json | 8 miesięcy temu | |
config_test.json | 6 miesięcy temu | |
deploy.sh | 6 miesięcy temu | |
jest.config.js | 8 miesięcy temu | |
package.json | 6 miesięcy temu | |
readme.md | 6 miesięcy temu | |
tsconfig.json | 8 miesięcy temu | |
webpack.config.js | 8 miesięcy temu |
要正确打包,需要将node_modules/bpmn-engine/index.js
中的
const BpmnModdle = require('bpmn-moddle');
改为:
const BpmnModdle = require('bpmn-moddle').default;
在 bpmn-elements/dist/tasks/LoopCharacteristics.js from line 169:
ParallelLoopCharacteristics.prototype._onCompleteMessage = function onCompleteMessage(routingKey, message) {
const chr = this.characteristics;
const {
content
} = message;
if (content.output !== undefined) chr.output[content.index] = content.output;
if (routingKey === 'execute.discard') {
this.discarded++;
}
this.running--;
this.activity.broker.publish('execution', 'execute.iteration.completed', {
...content,
...chr.getContent(),
index: this.index, // >>>>>>> 这行要删除
running: this.running,
discarded: this.discarded,
output: chr.output,
state: 'iteration.completed',
preventComplete: true
});