Adobe AEM WorkFlow 激活包含子页面的页面
Adobe AEM WorkFlow activate a page including child pages
我想激活一个页面并使用工作流包括它的子页面
如下图
父节点
・Child Node 1
・Child Node 2
・Child Node 3
要求是:
可能吗 ???也请在评论中给出解决方案......
非常感谢!!!
您可以使用 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
我想激活一个页面并使用工作流包括它的子页面 如下图
父节点
・Child Node 1
・Child Node 2
・Child Node 3
要求是: 可能吗 ???也请在评论中给出解决方案...... 非常感谢!!!
您可以使用 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