eyes4 198f0dac03 feature: 员工管理中,员工部门和职位改为多选 | 6 months ago | |
---|---|---|
.. | ||
bpmn | 6 months ago | |
src | 6 months ago | |
config.json | 8 months ago | |
config_dev.json | 8 months ago | |
config_test.json | 6 months ago | |
deploy.sh | 6 months ago | |
jest.config.js | 8 months ago | |
package.json | 6 months ago | |
readme.md | 6 months ago | |
tsconfig.json | 8 months ago | |
webpack.config.js | 8 months ago |
要正确打包,需要将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
});