Guo-Guang Chiou [http://community.jboss.org/people/taitung.wilbert] created the 
discussion

"How to get an object like kcontext to call setVariable("variable",value) for 
begin used by following tasks??"

To view the discussion, visit: http://community.jboss.org/message/632109#632109

--------------------------------------------------------------
I have a main process which contains a sub process like following images.
 
http://community.jboss.org/servlet/JiveServlet/showImage/2-632109-17172/mysubws-image.png
  
http://community.jboss.org/servlet/JiveServlet/downloadImage/2-632109-17172/450-274/mysubws-image.png
 
the sub-process image is like following:
 
http://community.jboss.org/servlet/JiveServlet/showImage/2-632109-17173/get_model_price-image.png
  
http://community.jboss.org/servlet/JiveServlet/downloadImage/2-632109-17173/450-274/get_model_price-image.png
 

the "Get mode Price "task will bing to customized WorkItemHandler.

the WorkItemHandler codes roughly like

public class PriceModelHandler implements WorkItemHandler {
  @Override
          public void abortWorkItem(WorkItem arg0, WorkItemManager arg1) {
                    // TODO Auto-generated method stub  
          }
          @Override
          public void executeWorkItem(WorkItem w, WorkItemManager m) {
                    String modelNumber = 
(String)w.getParameter("modelNumber");   

   //????
*    kcontext.setVariable("price",123);*

    //???? get an object like kcontext in order to call 
setVariable("variable",valeu);

                    m.completeWorkItem(w.getId(), null);
          }
}

my question is how to get an object like kcontext in executeWorkItem method in 
order to call setVariable to save the variable value for later use by 
other tasks following.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/632109#632109]

Start a new discussion in jBPM at Community
[http://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