Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Workflow to publish pages and nt unstructured nodes

Avatar

Level 4

Hi There ,

 I'm building a process step to be part of a workflow in which based on the pay load path , I need to active its peers and also some nt unstructured nodes pragmatically . I'm trying to use using Replicator  to achieve it .  

public abstract void replicate(Session paramSession, ReplicationActionType paramReplicationActionType, String paramString) . 

 My question is Am I using the best utility to achieve this use case  ? Also for nt unstructured nodes , if I give the path of the parent , will it automatically activate all its child nodes or do I need to loop and activate each node ?

I could have tried it myself as a PoC but have severe time constraints and though some one would have already tried it here . 

Thanks in advance

1 Accepted Solution

Avatar

Correct answer by
Level 10

Activating the parent will activate its child nodes aswell.

Yes, replicate(session, replicationActionType, string) is the right way to activate the nodes !

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Activating the parent will activate its child nodes aswell.

Yes, replicate(session, replicationActionType, string) is the right way to activate the nodes !

Avatar

Level 4

Thanks for your reply, appreciate it.