2015-06-19 31 views

回答

0

您可以使用Replicator api來激活頁面。

在您的工作流程過程中。您可以執行以下操作:

currentPage = getCurrentPagePath(); // this is something which you have to figure out, this depends on your workflow code i.e how exactly your workflow got triggere d。

現在,

Iterator<Page> childPages = currentPage.listChildren(); 

現在迭代子頁面,併爲每個孩子頁面,請執行下列操作

replicator.replicate(session,repplicationActionType, childPagePath); 

您可以使用OSGi依賴注入獲得複製實例。

@Reference 
public Replicator replicator 
+0

非常感謝你,你可以告訴你怎麼激活頁面使用的ECMAScript, 就像上面的Java源? – zerox5