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

--------------------------------------------------------------
Hello, 

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
[https://community.jboss.org/message/646519#646519]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to