eyes4 919236fc01 feature: 项目动态和任务动态接口修改为可以获取所有动态,项目id和任务id请求参数作为可选项,不指定具体项目时,返回所有项目动态和任务动态,供dashboard中显示。 | há 6 meses atrás | |
---|---|---|
.. | ||
bpmn | há 6 meses atrás | |
src | há 6 meses atrás | |
config.json | há 8 meses atrás | |
config_dev.json | há 8 meses atrás | |
config_test.json | há 6 meses atrás | |
deploy.sh | há 6 meses atrás | |
jest.config.js | há 8 meses atrás | |
package.json | há 6 meses atrás | |
readme.md | há 6 meses atrás | |
tsconfig.json | há 8 meses atrás | |
webpack.config.js | há 8 meses atrás |
要正确打包,需要将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
});