[rules-users] Drools 5.4 final and jbpm: problem in acces process variable
Esteban Aliverti
esteban.aliverti at gmail.com
Thu Sep 27 05:54:36 EDT 2012
Could you please provide your handler code (at least the part where you are
returning the value) and also the process definition?
Best Regards
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
- Blog @ http://ilesteban.wordpress.com
On Thu, Sep 27, 2012 at 11:48 AM, Manasi <manasi.a.damle at capgemini.com>wrote:
> Hi esteben,
>
> Hi I have done in the way u suggested,
>
> But i am not getting the value from jbpm.
> I have set the value in jbpm in service task like outputValue="abcd".
> Empty value is retuened.
>
>
> // Retrieving request parameters
> Map<String, Object> parameterMap = new HashMap<String,
> Object>();
> parameterMap.put("screenId",screenId);
> parameterMap.put("outputValue","");
>
>
>
> SimpleWorkItemHandler handler = new
> SimpleWorkItemHandler();
>
> ksession.getWorkItemManager().registerWorkItemHandler("Log", handler);
> ProcessInstance processInstance
> =ksession.startProcess("12",
> parameterMap);
> ksession.insert(processInstance);
> ksession.fireAllRules();
>
> String m =(String)
> ((WorkflowProcessInstance)processInstance).getVariable("outputValue");
>
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Drools-5-4-final-and-jbpm-problem-in-acces-process-variable-tp4019987p4019999.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120927/aba8beae/attachment.html
More information about the rules-users
mailing list