JBoss Community

Re: getting process variables available in service task

created by Maciej Swiderski in jBPM - View the full discussion

alright, now I can see what's wrong. You have single data input defined for your service task and it's called Parameter so if you like to get it's value inside the work item handler you need to use exactly the name defined there:

 

System.out.println(workItem.getParameter("Parameter"));

 

and that should give you the expected value.

 

HTH

Reply to this message by going to Community

Start a new discussion in jBPM at Community