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

Avatar

Avatar
Validate 1
Level 3
shaheenas113483
Level 3

Likes

9 likes

Total Posts

57 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 3
shaheenas113483
Level 3

Likes

9 likes

Total Posts

57 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
shaheenas113483
Level 3

22-11-2019

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

189 likes

Total Posts

356 posts

Correct reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

189 likes

Total Posts

356 posts

Correct reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Vish_dhaliwal
Employee

26-11-2019

Hello,

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

Regards,

Vishu

Answers (5)

Answers (5)

Avatar

Avatar
Boost 50
Employee
WASIL
Employee

Likes

51 likes

Total Posts

386 posts

Correct reply

51 solutions
Top badges earned
Boost 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Boost 50
Employee
WASIL
Employee

Likes

51 likes

Total Posts

386 posts

Correct reply

51 solutions
Top badges earned
Boost 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
WASIL
Employee

25-11-2019

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

Thanks,

Wasil

Avatar

Avatar
Validate 1
MVP
Nirmal_Jose
MVP

Likes

119 likes

Total Posts

207 posts

Correct reply

58 solutions
Top badges earned
Validate 1
Establish
Coach
Contributor
Shape 1
View profile

Avatar
Validate 1
MVP
Nirmal_Jose
MVP

Likes

119 likes

Total Posts

207 posts

Correct reply

58 solutions
Top badges earned
Validate 1
Establish
Coach
Contributor
Shape 1
View profile
Nirmal_Jose
MVP

25-11-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.

Screenshot 2019-11-25 at 12.52.51.png

Avatar

Avatar
Validate 1
Level 3
shaheenas113483
Level 3

Likes

9 likes

Total Posts

57 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 3
shaheenas113483
Level 3

Likes

9 likes

Total Posts

57 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
shaheenas113483
Level 3

27-11-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?

Avatar

Avatar
Validate 1
Level 3
shaheenas113483
Level 3

Likes

9 likes

Total Posts

57 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 3
shaheenas113483
Level 3

Likes

9 likes

Total Posts

57 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
shaheenas113483
Level 3

25-11-2019

To /etc/workflow i have this:

image1.png

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

image2.png

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  ...."

Avatar

Avatar
Validate 1
Level 3
shaheenas113483
Level 3

Likes

9 likes

Total Posts

57 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 3
shaheenas113483
Level 3

Likes

9 likes

Total Posts

57 posts

Correct reply

1 solution
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
shaheenas113483
Level 3

25-11-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.