On click of Activate button I need to call customized workflow in CQ5? -
on click of activate button need call other customized workflow, need modifications, files involved in in cq5 version 6.
intercepting activate button click quite intrusive therefore should done on filter
level. can write example osgi component class:
@component(immediate = true) @service @properties({ @property(name = "filter.scope", value = "request") }) public class mycustomreplicationfilter implements filter { public void dofilter(servletrequest request, servletresponse response, filterchain chain) { slinghttpservletrequest slingrequest = (slinghttpservletrequest) request; if ("/bin/replicate.json".equals(slingrequest.getpathinfo())) { list<string> paths = lists.newarraylist(request.getparametervalues("path")); //do magic paths. e.g. invoke workflow } }
alternatively can change ootb siteadmin panel (/siteadmin
) , change behaviour of activate
button send request dedicated servlet.
Comments
Post a Comment