cancel
Showing results for 
Search instead for 
Did you mean: 

Process being overridden by another process

vivo
Champ in-the-making
Champ in-the-making
Hi all,

I'm using two models, each one of them contains a pool, the first model process id is
execute_campagne
and the second is
evaluate_compagne

When I deploy any of the two  models using some java code, the result version of the deployed process , is always
process:X:YYYY
, where X is a digit that keeps incrementing and  YYYY is a random number. whereas the id should be
execute_campagne:X:YYYY
or
evaluate_compagne:X:YYYY
for the other process.

So when I deploy those two process I gotta, only one with incremented version, and the first deployed process is being overridden by the laste deployed one.

when I remove pools the issue dispears, please help me fix that.


thanx
5 REPLIES 5

trademak
Star Contributor
Star Contributor
In which design tool are you creating the process model? The process id in the BPMN XML needs to be different between the two models, because that's being used to generate the process definition key and that determines version override in the Engine.

Best regards,

vivo
Champ in-the-making
Champ in-the-making
Hi trademak, I'm using the activiti modeler,
And yes i'm using two different process ID execute_campagne and evaluate_compagne.

jbarrez
Star Contributor
Star Contributor
Could you attach the process xml which you are using? I'm having a hard time understanding exactly what you are seeing.

vivo
Champ in-the-making
Champ in-the-making
Hi jbarrez, thank you for the reply,

I created two processes by the modeler in order to upload them for you, but when I export them as xml files,it gives me a different process id from the original one, witch make the xml files useless.

So I decided to upload the two exported xml files and, the json source generated by the modeler for both processes.

I think if you take a look at the json source code of those two processes, you will see the issue that I'm talking about.


——–

while I'm taking a close look at the json code of the first process,  I see:
"childShapes":[{"resourceId":"sid-0A728FF6-03F4-4619-A2BF-52EEE6D3C44C","properties":{"overrideid":"","name":"first pool","documentation":"","process_id":"process"}
and on the second process, I'm see

"childShapes":[{"resourceId":"sid-2DCF7A70-02E8-40C4-8294-77C365717476","properties":{"overrideid":"","name":"second pool","documentation":"","process_id":"process"}
well, I think the process are taking the id in the field process_id, of the two json lines above

trademak
Star Contributor
Star Contributor
Both BPMN XML files have the same process id value "process". That's the reason why you are having the issue. You can set the process id on the pool object if I remember correctly.

Best regards,
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.