JBoss Community

Re: Unclear on how to get a Process param into my WorkItem

created by olddave in jBPM - View the full discussion

Yes, that is right, except as I said it does not work.

 

I had Process Parameter "myContext" as an Object type and the fully qualified class name "com.example.tdm.workflow.AClass".

I had WorkItem Parameter Mapping  "myContext" and the fully qualified class name "com.example.tdm.workflow.AClass".

 

When I enter my


public void executeWorkItem(WorkItem workItem, WorkItemManager manager) {

 

 


AClass aObject = (AClass)workItem.getParameter("myContext");

 

There is no aObject, it is null. So I figure I am doing something wrong.

 

Thx.

 

Ed

Reply to this message by going to Community

Start a new discussion in jBPM at Community