cancel
Showing results for 
Search instead for 
Did you mean: 

How to use process variable in the BMPN20.xml code??

lobnakh
Champ in-the-making
Champ in-the-making
Hello Activiti team!
I really wonder how can i use a process variable in my bpmn20.xml.Indeed, I set two process variables like the following: runtimeService.setVariableLocal(pi.getProcessInstanceId(),"soldCongés", 5);
runtimeService.setVariable(pi.getId(), "situation", true);
I need these variables to write the conditions that decides the correct outgoing sequence flow !
So any idea could help me !! Thanks in advance.

4 REPLIES 4

daveychu
Champ in-the-making
Champ in-the-making
Use the following format: ${theVariableName}

lobnakh
Champ in-the-making
Champ in-the-making
Thanks Smiley Happy Tis step is fine.Now, The flow conditions are not shown on the diagram!! should i add something in the xml file to display the conditions under the sequenceflows??? Have you an idea !

daveychu
Champ in-the-making
Champ in-the-making
.

jbarrez
Star Contributor
Star Contributor
> , The flow conditions are not shown on the diagram

Flow conditions are never shown, as per BPMN spec. Only labels are shown.

Also, don't overuse ! and ? 😉