Hello, I have the problem of several tokens being instantiated when the subprocess is started. in the “teste bpmn” was one of the attempts to model using two variables, but I don’t know if this is correct. As for the “teste bpmn 2”, two tokens are instantiated, I don’t understand why. I’ve tried in the event variable to use only the create or the update, but it still instantiates two instances or more.
note: I saw other topics talking about the same problem, but none came to fully resolve.
note: I also tried to set the variable using a delegate, and I wasn’t successful.
note: in the call activity there is no change in the variables used to start the subprocess, I just left it as an example.
This behaviour is due to “Triggering on Scope Instantiation” so if the process gets started, event condition gets evaluated twice on scope instantiation and on create event.
The solution is to specify only “update” event for “Variable Events” so if the process gets started, event condition gets evaluated on scope instantiation only.
as you can see in the image, so there is the variable event, I have to make a direct change to the xml, I don’t know if it’s a version of the camunda I’m using that may be causing this but since it’s already resolved, it won’t be preventing this Warning. Thank you very much.