Parameters in seca

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Parameters in seca

RamKrishna Swamy
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
Reply | Threaded
Open this post in threaded view
|

Re: Parameters in seca

hans_bakker
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

Reply | Threaded
Open this post in threaded view
|

Re: Parameters in seca

RamKrishna Swamy
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
<[hidden email]>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
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Parameters in seca

hans_bakker
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
<[hidden email]>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
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Parameters in seca

RamKrishna Swamy
Thanks Hans, it worked.
--
Thanks
Ramkrishna

On Tue, Feb 9, 2010 at 7:21 PM, Hans Bakker
<[hidden email]>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
> <[hidden email]>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
> >
> >
>
>
>