As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<node name="Approved"> <transition name="" to="end1"> <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript"> <script> <variable name="bpm_package" access="read" /> <expression> var createCategoryAction= actions.create("create-category"); createCategoryAction.parameters["active"] = true; createCategoryAction.execute(bpm_package.children[0]); </expression> </script> </action> </transition> </node>
public class SampleClass implements ActionHandler{ public void execute(ExecutionContext arg0) throws Exception { // Call the CustomCategoryCreationExecutor from here. } }
public class CustomCategoryCreationExecutor extends ActionExecuterAbstractBase { protected void executeImpl(Action arg0, NodeRef actionedUponNodeRef) { } }