How to run JAVA code inside Campaign | Community
Skip to main content
Raghavendra_Tot
January 17, 2019
Solved

How to run JAVA code inside Campaign

  • January 17, 2019
  • 1 reply
  • 1697 views

I want to run a small utility java jar inside the campaign workflow. I tried to use DOS Script , tried to set a path and classpath before running java -jar .

But this didn't run. Any documentation or sample code on this code will be helpful.

Thanks,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jonathon_wodnicki

Hi,

Make sure you set the environment for the java executable; in Windows, this is Path env under Advanced System Settings, or just set as part of the command.

It may be easier and more flexible to use js activity with execCommand(). Wrap with logInfo() get output streams.

Thanks,

-Jon

1 reply

Jonathon_wodnicki
Community Advisor
Jonathon_wodnickiCommunity AdvisorAccepted solution
Community Advisor
January 17, 2019

Hi,

Make sure you set the environment for the java executable; in Windows, this is Path env under Advanced System Settings, or just set as part of the command.

It may be easier and more flexible to use js activity with execCommand(). Wrap with logInfo() get output streams.

Thanks,

-Jon