JBoss Community

Re: Defining variables

created by Julian Zorzenon in jBPM - View the full discussion

Mauricio Salatino escribió:

 

+1 to Maciej answer

I'm not sure if buying the book is a good idea, it will get stuck in customs for a long time :)

 

jaja I'll take that under consideration

 

I've managed to get it to work, but I had to modify the xml directly to change this:

<bpmn2:property id="Property_1" itemSubjectRef="ItemDefinition_1" name="userName"/>

 

to this:

<bpmn2:property id="userName" itemSubjectRef="ItemDefinition_1" name="userName"/>

 

so I can do this in the action of a Script Task:

System.out.println(userName);

 

otherwise, I would have to do this in the Script Taks:

System.out.println(Property_1);

 

is there a way to change the id of the property using the modeler or do you always have to modify it using the xml editor??

Reply to this message by going to Community

Start a new discussion in jBPM at Community