bpmnServer / bpmn-server

BPMN 2.0 server for Node.js , providing modeling, execution, persistence and monitoring for Workflow. along with sample UI. Intended to be developers workbench for BPMN 2.0
MIT License
186 stars 48 forks source link

The itemkey of the inner parallel instances is being overridden. #196

Closed shuinan closed 7 months ago

shuinan commented 7 months ago

1713102819009

I have designed a workflow where parallel instances are processed within multiple subprocesses; please refer to the following BPMN file. The issue is that within the parallel multi-instance inside the subprocess, the itemKey is also the itemKey of the subprocess itself, which means I am unable to discern which instance of the parallel-instance is currently being processed. thanks!

<?xml version="1.0" encoding="UTF-8"?>

data.leaders = [1,2,3] Flow_1lzbv9d Flow_1lzbv9d Flow_19cluov Flow_17wqt4t Flow_0uc9q44 data.workers = [11,22] Flow_17wqt4t Flow_0xq3f36 data.workers console.log("cur data, ", data); console.log("cur item, ", item); Flow_0xq3f36 Flow_0uc9q44 Flow_19cluov
shuinan commented 7 months ago

Does this approach not support nested loops, and are there alternative methods available? Desperately seeking help!

ralphhanna commented 7 months ago

Investigating...

ralphhanna commented 7 months ago

Fixed in release 2.1.13 image image

shuinan commented 7 months ago

thanks! I use “npm install" at project bpmn-web, but the bpmn-server's version is 2.1.12 still, how to get the version 2.1.13 ?

ralphhanna commented 7 months ago
npm update bpmn-server
shuinan commented 7 months ago

all are ok! thanks!