コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Can I override replication Action?

Avatar

以前のコミュニティメンバー

Hi There,

Is it possible to detect a ReplicationAction event (in Sling or a replication preprocessor) in such a way that the Replication is cancelled?

e.g. 

  • Have an event trigger on a Replication Action
  • Assess some criteria
  • cancel replication if not appropriate

There are a lot of examples for listening to Replication event topics, but I can't see any that actually prevent the Replication Action from happening.

Thanks!

1 受け入れられたソリューション

Avatar

正解者
Level 8

You could create your own replication servlet that evaluates the criteria. The replication agent is configured to use a specific servlet that actually performs the replication. Create your custom servlet and point the agent at it (URI property on the Transport tab)

http://dev.day.com/docs/en/cq/current/deploying/replication.html#Replication%%20Agents%20-%20Configu...

元の投稿で解決策を見る

6 返信

Avatar

正解者
Level 8

You could create your own replication servlet that evaluates the criteria. The replication agent is configured to use a specific servlet that actually performs the replication. Create your custom servlet and point the agent at it (URI property on the Transport tab)

http://dev.day.com/docs/en/cq/current/deploying/replication.html#Replication%%20Agents%20-%20Configu...

Avatar

以前のコミュニティメンバー

Avatar

以前のコミュニティメンバー

Thanks Scott, 

Just to confirm - rather than override the receiver servlet on the publish, wouldn't it be better to override the author agent to make the decision whether it will queue the job or not.  Is that possible?

Kind Regards

Avatar

Level 8
PLACEHOLDER

Avatar

以前のコミュニティメンバー

Thanks Scott, 

Just to confirm - rather than override the receiver servlet on the publish, wouldn't it be better to override the author agent to make the decision whether it will queue the job or not.  Is that possible?

Kind Regards

Avatar

以前のコミュニティメンバー