sjaymj62
sjaymj62

Reputation: 378

Workitem handlers in jbpm6

Can anyone please tell me how I can to use workitem handlers in jbpm6. I have created a few services and I set the values of parameters for the services in the bpmn diagram. Now I want to access these parameters in my java class.

I had done this in jbpm5, it was quite simple. I just used

string temp= workItem.getParameter("field name");

But in jbpm6, it does not work.

When I use the above statement and print result on the console, I get the entered property values in jbpm5, but now I am getting "null" output on the screen.

Can anyone please help me out.

This was the closest question to My problem I found here in Stack overflow.

Accessing KieSession from jbpm6 WorkItemHandler

This issue has now been resolved. Anyone else facing similar problems can refer to:

this link

Upvotes: 0

Views: 1964

Answers (1)

Raze
Raze

Reputation: 2224

The method is the same in jBPM6. I have used that in my project and it works fine. Can you check if your mappings to the work item are correct? You can't directly access a jBPM process variable that is not mapped to a work item.

Upvotes: 1

Related Questions