04-27-2009 08:14 AM
07-06-2010 10:41 PM
07-07-2010 02:39 AM
07-09-2010 10:03 PM
07-10-2010 12:06 PM
07-12-2010 04:12 AM
Hi zaizi,
I actually checked the wiki and got it to work. But now I'm wondering if there is any example for Java-backed webscripts (running them as Scheduled Actions)?
Thanks
public class MyActionExecuter extends ActionExecuterAbstractBase {
public static final String NAME = "my-sample-executer";
protected void executeImpl(final Action pAction, final NodeRef pActionedUponNodeRef) { … }
}
I declared this class in "actions-context.xml"<bean id="my-sample-executer" class="MyActionExecuter" parent="action-executer" />
I created a web script calling my action executer.public class MyWebScript extends AbstractCnpWebScript {
protected Map<String, Object> executeImpl(final WebScriptRequest pRequest, final Status pStatus, final Cache pCache) {
final NodeRef vNodeRef = null; // get the node ref instead
final Action vAction = getActionService().createAction(MyActionExecuter.NAME);
vAction.setTitle("Starting sample action");
getActionService().executeAction(vAction, pTargetNodeRef);
return null;
}
}
I declared this class in "scripts-context.xml" (+ created files *.desc.xml and *.ftl)<bean id="webscript.sample.get.myWebscript" class="MyWebScript" />
This way, the web script and the job do the same.
11-24-2010 05:45 PM
10-21-2011 05:51 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.