cancel
Showing results for 
Search instead for 
Did you mean: 

Rule to apply rule

mvicidomini
Champ in-the-making
Champ in-the-making
Hello All is a way to apply an existing rule with an other rule ?

Thanks in advance
4 REPLIES 4

kaynezhang
World-Class Innovator
World-Class Innovator
I'am sorry for not getting what you mean,do you mean creating a new rule by copying existing rule ?
A rule is just a node ,you can create a new rule by  using node copy api, or you can first get a rule and modify id then save the modified rule .

mvicidomini
Champ in-the-making
Champ in-the-making
I mean , i would like to create a rule and then have an other or a script that will deploy the rule to specific folders and subfolders.

niketapatel
Star Contributor
Star Contributor
Hi mvicidomini,

If I understand correctly, You have this requirement

For an example:

1)You have Folder A - Create a custom rule[RuleA] for all cm:folder under Folder A.
2)And this RuleA will create another rule [RuleB] on ChildFolder/sub folders

Yes, you can do this. In your custom RuleA's ActionExecuter you can create another rule [RuleB] using RuleService and can apply/save this rule on subFolder.

mvicidomini
Champ in-the-making
Champ in-the-making
Thanks for your help