具有工作流程的CQ / AEM过渡概念 [英] CQ/AEM staging concept with workflows

查看:94
本文介绍了具有工作流程的CQ / AEM过渡概念的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们面临客户的特殊要求,我的研究未在docs.adobe.com上找到此方案:

We are facing a special requirement from our customer and my research didn't find this scenario on docs.adobe.com:

AEM用作CMS其他应用程序,并且没有客户端面对发布系统上的直接HTTP访问。作者在作者系统上创建关键业务内容,但无法进行End2end测试,因为他们需要具有匿名访问内容且没有任何编辑功能的发布实例。我知道他们可以在不同的系统上创建内容,而不是使用内容包复制内容。但这对于日常使用来说太麻烦了。

AEM is used as a CMS for other applications and has no client facing direct HTTP access on the publish systems. The authors create business critical content on the author system but can't do an end2end test, because they need a publish instance with anonymous access to the content without any edit functionality. I know they could create the content on a different system and than copy the content with content packages. But this is too cumbersome for day to day usage.

我想象的是两步激活:


  1. 作者启动一个工作流,将内容复制到一个特殊的内部发布服务器

  2. 批准者对该特殊发布服务器上的应用程序进行测试。
  3. >
  4. 批准人完成工作流程并将内容复制到公共发布服务器

  1. the author starts a workflow which replicates the content to a special internal publish server
  2. the approver does an en2end test with the application on this special publish server
  3. the approver completes the workflow and the content is replicated to the public publish server

可行的方案?
如果是,我将如何为这两个
发布服务器配置复制代理?
如果否,即使有可能,我怎么能实现呢?

Would this be a feasible scenario? If yes, how would I need to configure the replication agents for these two publish servers? If no, how could I achieve this, if even possible?

推荐答案

可以通过以下步骤开发工作流程

A workflow can be developed with following steps


  1. 作者启动工作流程->将内容复制到内部发布服务器。 AEM提供了 ReplicationOptions API。这可以使用 public 选择复制代理。 setFilter(AgentFilter filter)。可以根据需求命名代理,可以使用正则表达式来匹配链接参考中提供的所需代理。为此可以创建工作流程。该请求将与批准人一起驻留(使用参与者步骤)。审批者现在可以验证内部发布服务器上的内容。

  2. 一旦批准者批准了内容,在批准上,另一个工作流程将内容推送到公共发布服务器,这里我们也可以使用 public void setFilter(AgentFilter filter)

  3. 如果需要发布多个页面/资产,请工作流程包功能可用于捆绑多个页面/资产。当然,此过程需要在步骤1、2中创建的工作流流程中添加代码,以通过迭代工作流包中的有效负载来发布页面/资产

  1. Author Initiates workflow -> Replicates content to internal publish server. AEM provides ReplicationOptions API. This can help selecting the replication agent using public void setFilter(AgentFilter filter). Agent can be named as per requirement, regex can be used to match required agents as given in link reference. A workflow process can be created for this. The request would reside with approver (Using Participant Step). Approver can now verify the content on internal publish server.
  2. Once approver approves content, on Approval another workflow process push the content to public publish server, here also we can use public void setFilter(AgentFilter filter)
  3. If multiple pages/assets need to be published, Workflow Package feature can be used to bundle multiple pages/assets. This of-course needs adding the code in Workflow Processes created in step 1, 2 to publish pages/assets by iterating over payloads that are part of workflow package

这篇关于具有工作流程的CQ / AEM过渡概念的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆