Re: Regarding SECAs

2010-09-09 Thread varun bhansaly
Thanks Deepak,
For the current scenario, parameters & event have to be same.
A good example (similar to mine is) is secas on storeOrder.

On Thu, Sep 9, 2010 at 4:50 PM, Deepak Dixit
wrote:

> Hi Varun,
>
> You call same service in seca for different parameter. You can take
> reference for accounting/servicedef/secas.xml, here is the example :
>
>   
>   
>   
>   
>   
>operator="not-equals" to-field-name="paymentMethodId"/>
>   
>   
>   
>
>
> Thanks & Regards
> --
> Deepak Dixit
> HotWax Media Pvt. Ltd.
> Website :- www.hotwaxmedia.com
> Contact :- +91-98267-54548
> Skype Id :- deepakdixit
>
>
>
>
>
> varun bhansaly wrote:
>
>> What I have implemented is, create 3 services serviceToBeInvoked1,
>> serviceToBeInvoked2, serviceToBeInvoked3.
>> Service definition for these 3 would point to serviceToBeInvoked, so it
>> will
>> be like this.
>>
>> > location="component://your/component/YourServices.xml"
>> invoke="serviceToBeInvoked">
>> etc.
>>
>> 2010/9/9 Michał Cukierman 
>>
>>
>>
>>> I am an ofbiz newbe. Could you write a service wrapper in simple method?
>>> For example:
>>>
>>> >>   location="component://your/component/YourServices.xml"
>>> invoke="yourMethod">
>>>   
>>>
>>> and:
>>>
>>> 
>>>
>>>
>>> and in a simple method pass your aguments and invoke someService, lets
>>> say in a loop?
>>> I suppose you set arguments in your service declaration as well.
>>>
>>>
>>> Dnia 2010-09-09, czw o godzinie 07:25 +0530, varun bhansaly pisze:
>>>
>>>
 Hi,
 I am using ofbiz 09.04, wanted to know if its possible to configure a


>>> seca
>>>
>>>
 on a service which could be invoked multiple times with different values


>>> -
>>>
>>>
 The scenario -

 


 
 


 
 


 

 So for every someService invoke, serviceToBeInvoked should be executed 3
 times with different values for field1.
 With the above configuration, service engine executes serviceToBeInvoked
 only once.
 What could be other suggested ways so that serviceToBeInvoked is
 executed


>>> 3
>>>
>>>
 times.



>>>
>>>
>>
>>
>>
>>
>
>
>


-- 
Regards,
Varun Bhansaly


Re: Regarding SECAs

2010-09-09 Thread Deepak Dixit

Hi Varun,

You call same service in seca for different parameter. You can take 
reference for accounting/servicedef/secas.xml, here is the example :


   
   
   run-as-user="system"/>

   
   
   operator="not-equals" to-field-name="paymentMethodId"/>

   
   run-as-user="system"/>

   


Thanks & Regards
--
Deepak Dixit
HotWax Media Pvt. Ltd.
Website :- www.hotwaxmedia.com
Contact :- +91-98267-54548
Skype Id :- deepakdixit




varun bhansaly wrote:

What I have implemented is, create 3 services serviceToBeInvoked1,
serviceToBeInvoked2, serviceToBeInvoked3.
Service definition for these 3 would point to serviceToBeInvoked, so it will
be like this.


etc.

2010/9/9 Michał Cukierman 

  

I am an ofbiz newbe. Could you write a service wrapper in simple method?
For example:


   

and:




and in a simple method pass your aguments and invoke someService, lets
say in a loop?
I suppose you set arguments in your service declaration as well.


Dnia 2010-09-09, czw o godzinie 07:25 +0530, varun bhansaly pisze:


Hi,
I am using ofbiz 09.04, wanted to know if its possible to configure a
  

seca


on a service which could be invoked multiple times with different values
  

-


The scenario -














So for every someService invoke, serviceToBeInvoked should be executed 3
times with different values for field1.
With the above configuration, service engine executes serviceToBeInvoked
only once.
What could be other suggested ways so that serviceToBeInvoked is executed
  

3


times.

  




  





Re: Regarding SECAs

2010-09-09 Thread varun bhansaly
What I have implemented is, create 3 services serviceToBeInvoked1,
serviceToBeInvoked2, serviceToBeInvoked3.
Service definition for these 3 would point to serviceToBeInvoked, so it will
be like this.


etc.

2010/9/9 Michał Cukierman 

> I am an ofbiz newbe. Could you write a service wrapper in simple method?
> For example:
>
> location="component://your/component/YourServices.xml"
> invoke="yourMethod">
>
>
> and:
>
> 
> 
>
> and in a simple method pass your aguments and invoke someService, lets
> say in a loop?
> I suppose you set arguments in your service declaration as well.
>
>
> Dnia 2010-09-09, czw o godzinie 07:25 +0530, varun bhansaly pisze:
> > Hi,
> > I am using ofbiz 09.04, wanted to know if its possible to configure a
> seca
> > on a service which could be invoked multiple times with different values
> -
> > The scenario -
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > So for every someService invoke, serviceToBeInvoked should be executed 3
> > times with different values for field1.
> > With the above configuration, service engine executes serviceToBeInvoked
> > only once.
> > What could be other suggested ways so that serviceToBeInvoked is executed
> 3
> > times.
> >
>
>


-- 
Regards,
Varun Bhansaly


Re: Regarding SECAs

2010-09-09 Thread Michał Cukierman
I am an ofbiz newbe. Could you write a service wrapper in simple method?
For example:




and:




and in a simple method pass your aguments and invoke someService, lets
say in a loop?
I suppose you set arguments in your service declaration as well.


Dnia 2010-09-09, czw o godzinie 07:25 +0530, varun bhansaly pisze:
> Hi,
> I am using ofbiz 09.04, wanted to know if its possible to configure a seca
> on a service which could be invoked multiple times with different values -
> The scenario -
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> So for every someService invoke, serviceToBeInvoked should be executed 3
> times with different values for field1.
> With the above configuration, service engine executes serviceToBeInvoked
> only once.
> What could be other suggested ways so that serviceToBeInvoked is executed 3
> times.
> 



Regarding SECAs

2010-09-08 Thread varun bhansaly
Hi,
I am using ofbiz 09.04, wanted to know if its possible to configure a seca
on a service which could be invoked multiple times with different values -
The scenario -














So for every someService invoke, serviceToBeInvoked should be executed 3
times with different values for field1.
With the above configuration, service engine executes serviceToBeInvoked
only once.
What could be other suggested ways so that serviceToBeInvoked is executed 3
times.

-- 
Regards,
Varun Bhansaly


query regarding SECAs

2010-07-19 Thread varun bhansaly
Hi,
I am facing issues with attribute "result-map-name" in my SECA definition

Listed below is the scenario i am trying to implement

Service definitions -














SECA definition -






The problem -
For each invocation of service "CA", same result map "result" remains the
same until & unless server is restarted. Is there any thing wrong with the
SECA definition ?

Also, Is there any way to set a field name as null in SECA set tags -

I've tried with  but this does not
set attribute1 to empty string

-- 
Regards,
Varun Bhansaly