We will have to write a custom executor to send an email- to trigger from the lifecycle state change. Also we will have to send the dynamic email parameters from promote method with a ThreadLocal. Also the promote method is invoked via a jaggery code so we'll have to utilize the thread local in jaggery. @Nuwan - is it possible to access ThreadLocal from jaggery?
Cheers On Tue, Oct 8, 2013 at 11:35 AM, Shazni Nazeer <[email protected]> wrote: > Hi Dulitha, > > Currently we don't have an email executor for asset life cycle change. But > as far as I know there is way to invoke a particular service when a state > change occurs. > > Shazni Nazeer > Senior Software Engineer > > Mob: +94 715 440 607 > > > On Tue, Oct 8, 2013 at 11:07 AM, Chan <[email protected]> wrote: > >> Hi Nuwan, >> The change LC state is triggered when ever a Life Cycle state is changed >> - we can't capture per life cycle state change. Let me revise the >> requirement - I want to fire off an email when an asset's life cycle state >> change to X state. >> >> Cheers >> >> >> On Tue, Oct 8, 2013 at 9:28 AM, Nuwan Silva <[email protected]> wrote: >> >>> Is this [1] what your looking for? >>> >>> *Change LC State* - Represents the event of changing a lifecycle state >>> >>> [1] >>> http://docs.wso2.org/display/Governance460/Adding+a+Subscription#AddingaSubscription-AddSubscriptionOptions%C2%A0 >>> >>> >>> On Mon, Oct 7, 2013 at 10:40 PM, Chan <[email protected]> wrote: >>> >>>> $subject? The requirement is to fire off an email when a state >>>> transition happens in asset in the Enterprise-Store. >>>> >>>> Cheers! >>>> -- >>>> Chan (Dulitha Wijewantha) >>>> Software Engineer - Mobile Development >>>> WSO2Mobile >>>> Lean.Enterprise.Mobileware >>>> * ~Email [email protected]* >>>> * ~Mobile +94712112165* >>>> * ~Website dulithawijewantha.com >>>> * >>>> * ~Blog >>>> blog.dulithawijewantha.com<http://dulichan.github.io/chan/> >>>> * >>>> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> * >>> * >>> *Nuwan Silva >>> * >>> *Senior Software Engineer - QA* >>> Mobile: +94779804543 >>> >>> WSO2 Inc. >>> lean . enterprise . middlewear. >>> http://www.wso2.com >>> >> >> >> >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2Mobile >> Lean.Enterprise.Mobileware >> * ~Email [email protected]* >> * ~Mobile +94712112165* >> * ~Website dulithawijewantha.com >> * >> * ~Blog blog.dulithawijewantha.com<http://dulichan.github.io/chan/> >> * >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email [email protected]* * ~Mobile +94712112165* * ~Website dulithawijewantha.com * * ~Blog blog.dulithawijewantha.com<http://dulichan.github.io/chan/> * * ~Twitter @dulitharw <https://twitter.com/dulitharw>*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
