I have a list of scanned pages which starts the lane 1. In the sendTask I want to start a new process for every scanned page in the list of scanned pages in lane 2.
I thought that by marking the sendTask with the multi-instance marker I could send the receiveNewPages message to start a new process in lane 2 for every element in “scanned_pages” and pass the variable “page_path” to lane 2.
Unfortunately there is no variable “page_path” in my service task in lane 2. And there is only one token produced in lane 2 although the list has size 2.
Can you guide me to where my misunderstanding lies?
I can upload my code, the problem is, it is never executed. I start the process and the token is directly waiting at the ocr service task.
Edit: I just found out that this could have nothing to do with the mutli-instance. I placed an external service task before the multi-instance sendTask. I have no workers running. If I start the process the token is never running through my external service task. How is this possible? It seems like the process is started at the message event of lane 2.
My mistake was that Lane 1 wasn’t marked as Executable. Only Lane 2. That is why it seemed like only one token was produced by the sendTask but in reality Lane 1 was never started, only Lane 2…