Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

request_for_activation workflow on AEM as Cloud

Asutosh_Jena_
Community Advisor
Community Advisor

Hello Everyone,

 

Hope everyone is doing good!

 

I was trying to modify the OOTB request for activation workflow and while building the code for AEM as Cloud Service I am getting the below error.

 

+- <MAJOR> /conf/global/settings/workflow/models/request_for_activation/jcr:content [restricted resource type]: /libs/cq/workflow/components/pages/model is marked INTERNAL [ui-content-0.0.1-SNAPSHOT.zip]
** Violations were reported at or above severity: MAJOR **

 

The resource type that is being used is:

sling:resourceType="cq/workflow/components/pages/model"

 

Can someone give some insight about this issue and a possible resolution. I have done the similar implementation on AEM 6.5 and it works perfectly fine.

 

Thanks!

1 Accepted Solution
milind_bachani
Correct answer by
Level 5
Level 5

Hi @Asutosh_Jena_ ,

Hope you are doing good. Since, it is internal resourceType one of thing you can do is to :
Create an overlay of the path "cq/workflow/components/pages/model" in /apps (/apps/cq/workflow/components/pages/model) and  then try, it would resolve because then it wont be internal and you have the control over the overlay path located in /apps.

One more thing I would suggest to try (not sure if that would help to omit this error):
Create a proxy resource having
sling:resourceSuperType: cq/workflow/components/pages/model
AND
/conf/global/settings/workflow/models/request_for_activation/jcr:content should use the resourceType as NEW PROXY created resource and trigger the build.


Thanks. Keep me posted if you still have issues and the above 2 didn't help.

View solution in original post

1 Reply
milind_bachani
Correct answer by
Level 5
Level 5

Hi @Asutosh_Jena_ ,

Hope you are doing good. Since, it is internal resourceType one of thing you can do is to :
Create an overlay of the path "cq/workflow/components/pages/model" in /apps (/apps/cq/workflow/components/pages/model) and  then try, it would resolve because then it wont be internal and you have the control over the overlay path located in /apps.

One more thing I would suggest to try (not sure if that would help to omit this error):
Create a proxy resource having
sling:resourceSuperType: cq/workflow/components/pages/model
AND
/conf/global/settings/workflow/models/request_for_activation/jcr:content should use the resourceType as NEW PROXY created resource and trigger the build.


Thanks. Keep me posted if you still have issues and the above 2 didn't help.