Create Folder in IBM BPM/BAW on Cloud

In on-Prem we were using terminal (if OS is linux) to connect WAS to execute commands. But in on cloud we don’t have access to WAS.

But still we can execute commands like below inside the process app as a javascript command.

If we need to create folder in specific location (which we already have rights) we can execute the commands below in Javascript integration.

var runtime = java.lang.Runtime.getRuntime();
var proc = runtime.exec(“mkdir -p -m 777 /tenant/home/Selcuk”);

This command basically creates a a folder in specific path.