cancel
Showing results for 
Search instead for 
Did you mean: 

Publishing Workflow Repo-Repo

drozes
Champ in-the-making
Champ in-the-making
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.
1 REPLY 1

zladuric
Champ on-the-rise
Champ on-the-rise
I am sure there are better ways to do this, but did you consider making your own custom action to do this? There is a nice wiki entry on this: http://wiki.alfresco.com/wiki/Custom_Actions.

The use case is that you build your own custom action that will do the required changes, and then you can use your own action call: var myAction = actions.create("replicateToAnotherRepo"); or something similar.