AnsweredAssumed Answered

Publishing Workflow Repo-Repo

Question asked by drozes on Jan 15, 2013
Latest reply on Jan 16, 2013 by zladuric
I'm working through Alfresco Workflow guides but have been unable to formulate an approach to create a Workflow similar to that of the QuickStart publishing.

The workflow will be initiated from a webscript.  Once the reviewer has approved the process, The files associated with the workflow would need to be replicated to another repository.

I have been able to access replication services through Alfresco API calls and do not see why this could not be done through the approved action. I problem is I do not know how to create this action and test it.


I notice in the QS files they have a transition defined as
  <transition name="approve" to="approved">
         <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
            <script>
               var publishAction = actions.create("webqs_publishTree");
               publishAction.execute(bpm_package);
            </script>
         </action>
      </transition>

I am unsure where to find the 'webqs_publishTree' action. If I could do something similar to this action but instead of copying assets, it would replicate them to another repository.


Any guides, suggestions or hints are greatly appreciated.

Outcomes