[jboss-user] [jBPM] - Problem accessing Mapped Input Parameter in domain specific work item handler.

Josh Kruck do-not-reply at jboss.com
Thu Jan 12 12:14:06 EST 2012

Josh Kruck [https://community.jboss.org/people/krujos] created the discussion

"Problem accessing Mapped Input Parameter in domain specific work item handler."

To view the discussion, visit: https://community.jboss.org/message/646519#646519


I'm having an isue accessing a mapped input parameter from my work item handler. I'm using jbpm 5.2. Reading the documentation & examples this seems like it should be straight forward, but I must have missed a step somewhere. Could someone please provide a pointer as to where I've gone wrong? 

My .wid looks like this: 
import org.drools.process.core.datatype.impl.type.StringDataType; [   [     "name" : "MyWorkItem",     "parameters" : [       "Text" : new StringDataType(),       "OptionXML" : new StringDataType(),     ],     "displayName" : "MyWorkItem",   ] ]

 The relevant bpmn looks like this: 

When I try to access the mapped parameter boolResult from my workitem handler I do the following: 

public final void executeWorkItem(WorkItem wi, WorkItemManager wim) {           logger.info("Loading workitem: " + wi.getId());           for (String key : wi.getParameters().keySet()) {                     logger.info("Parameter: " + key);           }           logger.info("boolResult = " + wi.getParameter("boolResult"));

In my log I see the values of OptionXML and Text in the parameters hash, but boolResult is not in the hash. Is my expectation that mapped parameters should show up in the work item's parametrs correct? Does anyone see an error

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120112/af063f86/attachment.html 

More information about the jboss-user mailing list