Hello Jacques/Hans,

Please find my response inline.


On Fri, Sep 13, 2013 at 11:55 AM, Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

> Hans Bakker wrote:
> > Isn't it so that it works the other way around?
>
> I don't know exactly what Ramkrishna  wants to do. Sometimes you need to
> customise things (I had to so I did not use the std way).
>

What I want to do is I have to trigger one customize service when
subscription is expired.


>
> > all subscriptions have an expiry date, and need to be extended?
> > When not extended will expire using that date?
>
> I did not check code in SubscriptionServices.java. I thought Ramkrishna
>  did, and it did not fit his needs.
>

I have checked code in SubscriptionServices.java but no single method is
expiring the subscription, while extending it.


>
> > i think there was some extending service which is run regularly....
>
> Yes, as said Ramkrishna : runSubscriptionAutoReorders
> <description>A service designed to be automatically run by job scheduler
> to create orders from subscriptions which need to be extended.
> This is done by looking for all subscriptions which are active and where
> the automaticExtend flag is set to "Y"</description>
>
> I see also a SECA for changeOrderStatus which runs
> processExtendSubscriptionByOrder
>
> Jacques
>
>
> > Regards,
> > Hans
> >
> > On 09/12/2013 06:54 PM, Jacques Le Roux wrote:
> >> You will have to write your own. Be sure to check what is already in
> SubscriptionServices.java
> >>
> >> Jacques
> >>
> >> Ramkrishna Swamy wrote:
> >>> Hello Jacques,
> >>>
> >>> The mentioned tables I know but I have not come across any code or
> service
> >>> which would expire the subscription. I have seen one scheduled service
> >>> "runSubscriptionAutoReorders" which checks for expiration of the
> >>> subscription by comparing current date and subscription's thruDate;
> but it
> >>> doesn't expire the subscription only simple check is there. So has
> there
> >>> been any other code/service already written which performs task of
> >>> expiration of the subscription or I will have to write my own custom
> >>> service to perform the task. Please suggest.
> >>>
> >>>
> >>>> You got one possibilty (the simplest one and most used I guess). A
> little
> >>>> explanation of the data model is at
> >>>> https://cwiki.apache.org/confluence/display/OFBIZ/Subscription
> >>>>
> >>>> Jacques
> >>>>
> >>>> Ramkrishna Swamy wrote:
> >>>>> Hello list,
> >>>>>
> >>>>> I have gone through link of subscription
> >>>>> http://www.amicontech.com/blog/subscriptions-in-ofbiz-and-opentaps/,
> in
> >>>>> this link I did not find how subscription expires. I tried to find a
> >>>>> service which should be called on expiration of subscription but I
> couldn't
> >>>>> find. As per the given link we need to customize a service in order
> to
> >>>>> serve subscription to the user, so I created a simple java service
> in order
> >>>>> to see how it's called. It is called once, at the time of placing an
> order.
> >>>>> So it will create subscription in the system now if I set thruDate to
> >>>>> expire the subscription it expires in the system. Is there any
> service
> >>>>> which is called to expire the subscription.
> >>>>> If anyone has any idea how it works then please let me know.
>



-- 
Thanks
Ramkrishna

Reply via email to