You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Ramkrishna Swamy <ra...@gmail.com> on 2010/02/09 12:14:25 UTC
Parameters in seca
Hi list,
How can i get parameters in a seca, i am passing parameters as hidden from
ftl and i want to get these into the seca but shows null parameters.
Following is my seca: -
<eca service="sendOrderConfirmation" event="commit">
<condition field-name="parameters.alert" operator="is-not-empty"/>
<condition field-name="parameters.groupName"
operator="is-not-empty"/>
<condition field-name="parameters.from" operator="is-not-empty"/>
<condition field-name="parameters.userName"
operator="is-not-empty"/>
<condition field-name="parameters.sendTo" operator="is-not-empty"/>
<condition field-name="parameters.message" operator="is-not-empty"/>
<action service="sendOrderConfirmationSMS" mode="async"/>
</eca>
Thanks in advance.
--
Thanks
Ramkrishna
Re: Parameters in seca
Posted by Ramkrishna Swamy <ra...@gmail.com>.
Thanks Hans, it worked.
--
Thanks
Ramkrishna
On Tue, Feb 9, 2010 at 7:21 PM, Hans Bakker
<ma...@antwebsystems.com>wrote:
> Did you read what I wrote? the map name 'parameters' is not required
> here....further you can only use the fieldnames which are either input-
> or output parameters of the service you would like to check.....
>
> Regards,
> Hans
>
>
> On Tue, 2010-02-09 at 19:13 +0530, Ramkrishna Swamy wrote:
> > Hello Hans,
> >
> > I tried with mapname but it shows in log mapnanme 'parameters' not found
> > setting default to null, how parameters will be available to the action
> > service.
> >
> --
> Antwebsystems.com: Quality OFBiz services for competitive rates
>
> On Tue, Feb 9, 2010 at 6:58 PM, Hans Bakker
> <ma...@antwebsystems.com>wrote:
>
> > Hi,
> >
> > the beauty of this system is that for most things you would like to do
> > there are many examples.
> >
> > I order to find an answer to your question I went into eclipse in
> OFBiz,
> > pressed ctrl-shift-r and entered seca* to look for examples how other
> > programmers created secas....one of the first files which came up was
> > applications/accounting/servicedef/secas_payment.xml
> >
> > if you look in this file there are many examples how secas should be
> > coded. I searched for a word you used very often like 'parameters' i
> > could not found one....
> >
> > could it be that the mapname 'parameters' is not required here....?
> all
> > variables are already in he parameters map.....
> >
> > Regards.
> > Hans
> >
> > On Tue, 2010-02-09 at 16:44 +0530, Ramkrishna Swamy wrote:
> > > Hi list,
> > > How can i get parameters in a seca, i am passing parameters as
> hidden
> > from
> > > ftl and i want to get these into the seca but shows null parameters.
> > > Following is my seca: -
> > >
> > > <eca service="sendOrderConfirmation" event="commit">
> > > <condition field-name="parameters.alert"
> > operator="is-not-empty"/>
> > > <condition field-name="parameters.groupName"
> > > operator="is-not-empty"/>
> > > <condition field-name="parameters.from"
> operator="is-not-empty"/>
> > > <condition field-name="parameters.userName"
> > > operator="is-not-empty"/>
> > > <condition field-name="parameters.sendTo"
> > operator="is-not-empty"/>
> > > <condition field-name="parameters.message"
> > operator="is-not-empty"/>
> > > <action service="sendOrderConfirmationSMS" mode="async"/>
> > > </eca>
> > >
> > >
> > > Thanks in advance.
> > >
> > --
> > Antwebsystems.com: Quality OFBiz services for competitive rates
> >
> >
>
>
>
Re: Parameters in seca
Posted by Hans Bakker <ma...@antwebsystems.com>.
Did you read what I wrote? the map name 'parameters' is not required
here....further you can only use the fieldnames which are either input-
or output parameters of the service you would like to check.....
Regards,
Hans
On Tue, 2010-02-09 at 19:13 +0530, Ramkrishna Swamy wrote:
> Hello Hans,
>
> I tried with mapname but it shows in log mapnanme 'parameters' not found
> setting default to null, how parameters will be available to the action
> service.
>
--
Antwebsystems.com: Quality OFBiz services for competitive rates
On Tue, Feb 9, 2010 at 6:58 PM, Hans Bakker
<ma...@antwebsystems.com>wrote:
> Hi,
>
> the beauty of this system is that for most things you would like to do
> there are many examples.
>
> I order to find an answer to your question I went into eclipse in
OFBiz,
> pressed ctrl-shift-r and entered seca* to look for examples how other
> programmers created secas....one of the first files which came up was
> applications/accounting/servicedef/secas_payment.xml
>
> if you look in this file there are many examples how secas should be
> coded. I searched for a word you used very often like 'parameters' i
> could not found one....
>
> could it be that the mapname 'parameters' is not required here....?
all
> variables are already in he parameters map.....
>
> Regards.
> Hans
>
> On Tue, 2010-02-09 at 16:44 +0530, Ramkrishna Swamy wrote:
> > Hi list,
> > How can i get parameters in a seca, i am passing parameters as
hidden
> from
> > ftl and i want to get these into the seca but shows null parameters.
> > Following is my seca: -
> >
> > <eca service="sendOrderConfirmation" event="commit">
> > <condition field-name="parameters.alert"
> operator="is-not-empty"/>
> > <condition field-name="parameters.groupName"
> > operator="is-not-empty"/>
> > <condition field-name="parameters.from"
operator="is-not-empty"/>
> > <condition field-name="parameters.userName"
> > operator="is-not-empty"/>
> > <condition field-name="parameters.sendTo"
> operator="is-not-empty"/>
> > <condition field-name="parameters.message"
> operator="is-not-empty"/>
> > <action service="sendOrderConfirmationSMS" mode="async"/>
> > </eca>
> >
> >
> > Thanks in advance.
> >
> --
> Antwebsystems.com: Quality OFBiz services for competitive rates
>
>
Re: Parameters in seca
Posted by Ramkrishna Swamy <ra...@gmail.com>.
Hello Hans,
I tried with mapname but it shows in log mapnanme 'parameters' not found
setting default to null, how parameters will be available to the action
service.
--
Thanks
Ramkrishna
On Tue, Feb 9, 2010 at 6:58 PM, Hans Bakker
<ma...@antwebsystems.com>wrote:
> Hi,
>
> the beauty of this system is that for most things you would like to do
> there are many examples.
>
> I order to find an answer to your question I went into eclipse in OFBiz,
> pressed ctrl-shift-r and entered seca* to look for examples how other
> programmers created secas....one of the first files which came up was
> applications/accounting/servicedef/secas_payment.xml
>
> if you look in this file there are many examples how secas should be
> coded. I searched for a word you used very often like 'parameters' i
> could not found one....
>
> could it be that the mapname 'parameters' is not required here....? all
> variables are already in he parameters map.....
>
> Regards.
> Hans
>
> On Tue, 2010-02-09 at 16:44 +0530, Ramkrishna Swamy wrote:
> > Hi list,
> > How can i get parameters in a seca, i am passing parameters as hidden
> from
> > ftl and i want to get these into the seca but shows null parameters.
> > Following is my seca: -
> >
> > <eca service="sendOrderConfirmation" event="commit">
> > <condition field-name="parameters.alert"
> operator="is-not-empty"/>
> > <condition field-name="parameters.groupName"
> > operator="is-not-empty"/>
> > <condition field-name="parameters.from" operator="is-not-empty"/>
> > <condition field-name="parameters.userName"
> > operator="is-not-empty"/>
> > <condition field-name="parameters.sendTo"
> operator="is-not-empty"/>
> > <condition field-name="parameters.message"
> operator="is-not-empty"/>
> > <action service="sendOrderConfirmationSMS" mode="async"/>
> > </eca>
> >
> >
> > Thanks in advance.
> >
> --
> Antwebsystems.com: Quality OFBiz services for competitive rates
>
>
Re: Parameters in seca
Posted by Hans Bakker <ma...@antwebsystems.com>.
Hi,
the beauty of this system is that for most things you would like to do
there are many examples.
I order to find an answer to your question I went into eclipse in OFBiz,
pressed ctrl-shift-r and entered seca* to look for examples how other
programmers created secas....one of the first files which came up was
applications/accounting/servicedef/secas_payment.xml
if you look in this file there are many examples how secas should be
coded. I searched for a word you used very often like 'parameters' i
could not found one....
could it be that the mapname 'parameters' is not required here....? all
variables are already in he parameters map.....
Regards.
Hans
On Tue, 2010-02-09 at 16:44 +0530, Ramkrishna Swamy wrote:
> Hi list,
> How can i get parameters in a seca, i am passing parameters as hidden from
> ftl and i want to get these into the seca but shows null parameters.
> Following is my seca: -
>
> <eca service="sendOrderConfirmation" event="commit">
> <condition field-name="parameters.alert" operator="is-not-empty"/>
> <condition field-name="parameters.groupName"
> operator="is-not-empty"/>
> <condition field-name="parameters.from" operator="is-not-empty"/>
> <condition field-name="parameters.userName"
> operator="is-not-empty"/>
> <condition field-name="parameters.sendTo" operator="is-not-empty"/>
> <condition field-name="parameters.message" operator="is-not-empty"/>
> <action service="sendOrderConfirmationSMS" mode="async"/>
> </eca>
>
>
> Thanks in advance.
>
--
Antwebsystems.com: Quality OFBiz services for competitive rates