That will not register the process variables - its there to pass the variables data.
You can click on the process diagram in eclipse - go to properties "view" - and look for the "Variables" property. It's here that you have to register your process variables. Vijay -----Original Message----- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Robert Sent: Monday, April 26, 2010 7:56 AM To: Rules Users List Subject: Re: [rules-users] How to access process variables within a work-item (human task) Hi, I don't understand what you mean ? I thought with ksession.startProcess(processName, processVariables); they are registered. Am 26.04.2010, 15:28 Uhr, schrieb Salaboy <sala...@gmail.com>: > Did you register the equipement variable at process level? Mapping > uses that definitions to know about the variables used across the > processes. > Greetings > > - Ing. Mauricio Salatino - > > On Apr 26, 2010, at 1:56, Robert <robert.weissm...@web.de> wrote: > >> Hi, >> >> I have >> >> ... >> StatefulKnowledgeSession >> ksession.getWorkItemManager().registerWorkItemHandler("Human Task", >> taskHandler); >> ... >> >> Map<String, Object> processVariables = new HashMap<String, >> Object>(); >> processVariables.put("equipment", "OvenQP33"); >> >> ProcessInstance pi = ksession.startProcess(processName, >> processVariables); >> ... >> >> ... within the taskHandler.executeWorkItem(WorkItem workItem, >> WorkItemManager workItemManager): >> >> I am setting a break-point, and I am getting there, but how am I >> able to >> access my processVariables or even set specific data for this >> particular >> work-item ? >> >> I tried using as described in the doc "9.1 Human tasks inside >> processes": >> >> - Parameter mapping: Allows copying the value of process >> variables to >> parameters of the human task. Upon creation of the human >> tasks, the >> values will be copied. >> >> But without any success. I just not getting to the "equipment" >> variable, >> which I need at this point of processing the work-item. >> >> The mapping I did: "equipment" -> "equipment". With the hope to find >> them >> within workItem.getParameters(), but they are not there and nowhere- >> else >> too. >> >> Any ideas ? >> >> Generally there are even many more settings possible for the human >> task, >> see doc (here the list: >> Id, >> Name,TaskName,Priority,Comment,ActorId,Skippable,Content,Swimlane,On- >> entry >> and on-exit actions,Parameter mapping,Result >> mapping,Timers,ParentId), but >> only a few are accessible through workItem.getParameters(). The >> others ? >> Also, no idea to get this data. >> >> Cheers, Rob. >> >> >> -- >> Erstellt mit Operas revolutionärem E-Mail-Modul: >> http://www.opera.com/mail >> / >> _______________________________________________ >> rules-users mailing list >> rules-users@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/rules-users > > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users -- Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/ _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users