JBoss Community

Re: Work with complex process variable

created by it-student in jBPM - View the full discussion

Thank you. Works better but (there is a but) in the begin of my process (and before my firts human task) I've create a  script task :

 

project = new Project(); 
project.setName("It works!");
 
map = new java.util.HashMap();
map.put("projectName", project.getName());
 
kcontext.setVariable("map", map);
kcontext.setVariable("project", project);

 

I get a RuntimeException in the line :

 

kcontext.setVariable("project", project);

 

Do you have an idea why ?

 

Greetings

 

IT-Student

Reply to this message by going to Community

Start a new discussion in jBPM at Community