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
BedrockMission!

Learn More

View all

Sign in to view all badges

Change directory and run "node" command using Java

Avatar

Avatar
Validate 10
Level 3
arturl43391132
Level 3

Likes

18 likes

Total Posts

68 posts

Correct Reply

10 solutions
Top badges earned
Validate 10
Validate 1
Ignite 1
Give Back
Boost 5
View profile

Avatar
Validate 10
Level 3
arturl43391132
Level 3

Likes

18 likes

Total Posts

68 posts

Correct Reply

10 solutions
Top badges earned
Validate 10
Validate 1
Ignite 1
Give Back
Boost 5
View profile
arturl43391132
Level 3

31-07-2020

Hello Adobe Community,

 

We're using the workflow and one of requirments is running "node.js" command which should be run under some directory of project. The problem that we're trying it to run e.g. core/src/.../Workflow.java and the command should be run under e.g. frontend/.../placeWhereItShouldBeRun. The biggest problem is that user.dir of System.getProperties() is "/opt/aem/author". So we can't just make something like "cd ... node ...".

 

Could you please suggest something?

 

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

216 likes

Total Posts

272 posts

Correct Reply

65 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile

Avatar
Springboard
MVP
Shashi_Mulugu
MVP

Likes

216 likes

Total Posts

272 posts

Correct Reply

65 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Applaud 100
Establish
View profile
Shashi_Mulugu
MVP

31-07-2020

@arturl43391132 Thanks for posting in community. To be more clear, what are you trying with node? are you trying to process sometime external to AEM? Why cannot you built node as external/individual application and expose REST API from it, and in AEM workflow process setup, consume it?

 

My suggestion is to keep both application a individual contributor in their own space, let REST do it in peace. 

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 4
raghavc
Level 4

Likes

63 likes

Total Posts

61 posts

Correct Reply

19 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 50
View profile

Avatar
Validate 1
Level 4
raghavc
Level 4

Likes

63 likes

Total Posts

61 posts

Correct Reply

19 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 50
View profile
raghavc
Level 4

05-08-2020

@arturl43391132 Have you tried configuring the script path as external script in GoTo Step ?

I have not tried it before, worth exploring it .

 

Worth considering @Shashi_Mulugu suggestion which would be much neater form of communication between two systems.