Migration of workflow from /etc to /var for 6.5 to 6.5 upgrade | Adobe Higher Education
Skip to main content
shaheenas113483
Level 3
November 22, 2019
Beantwortet

Migration of workflow from /etc to /var for 6.5 to 6.5 upgrade

  • November 22, 2019
  • 6 Antworten
  • 6237 Ansichten

I migrated my custom workflow model from /etc to /var and scripts from /etc to /apps. But on execution of the workflow I am getting the below error:

"...  com.adobe.granite.workflow.core.rule.ScriptingRuleEngine Could not find script resource /apps/workflow/scripts/new.ecma.  Workflow Scripts may need to be located in /libs or /apps to be executed  ...."

I have crossed check my workflow. It refers to the script at path /apps/workflow/scripts/new.ecma but on execution it is not able to find the resource.

Is there anything that I missed out which might be causing this issue?

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von vish.dhaliwal

Hello,

You have to explicitly give Read permission to workflow-service (initiates the workflowSession) to this new location /apps/workflow/scripts.

Regards,

Vishu

6 Antworten

Nirmal_Jose
Adobe Employee
Adobe Employee
November 25, 2019

Can you please confirm you have done all the workflow related movements as mentioned in Common Repository Restructuring in AEM 6.4

Also please ensure you have synced the workflow models on edit page of models from http://localhost:4502/libs/cq/workflow/admin/console/content/models.html

it will come like below at the top right once synced.

Adobe Employee
November 25, 2019

Also, check permissions of the workflow-service user to these scripts at the given paths.

Thanks,

Wasil

shaheenas113483
Level 3
November 26, 2019

Im following that document for the migration, and I had migrated all the workflow model and instances to the new location. But, when I migrated the scripts I got the error that I had mentioned.

shaheenas113483
Level 3
November 26, 2019

To /etc/workflow i have this:

and to /etc/workflow/scripts i have this:

This is post migration and I am still getting similar error:

"...  com.adobe.granite.workflow.core.rule.ScriptingRuleEngine Could not find script resource /etc/workflow/scripts/new.ecma.  Workflow Scripts may need to be located in /libs or /apps to be executed  ...."

Adobe Employee
November 26, 2019

Hello,

You have to explicitly give Read permission to workflow-service (initiates the workflowSession) to this new location /apps/workflow/scripts.

Regards,

Vishu

October 24, 2024

How do we change the location of the generated-packages from etc/workflow/packages to var/workflow/packages?

shaheenas113483
Level 3
November 28, 2019

Thanks Wasil and Vishu, that permission fixed the problem partially.

The behaviour of my custom workflow seems to be a little peculiar. For some workflow models, the scripts are getting picked and complied correctly, whereas for some other, I am getting the above error that the script doesn't exist [even though it does]. Any help on that?

Level 2
October 26, 2020
Hello @ shaheenas113483, I have same problem with my new instance AEM 6.5. Workflows work well, but some scripts are not found. How did you fix this error? Thanks