Hi ,
I am trying to execute od clt through java class in wfm but when I execute same code from backend i.e
> java classname
its getting executed and returning proc.exitValue() as 0 (success).
But When I execute same code via WFM urltask it returns result 1 (failure).Please the code below :
_________________________________________________________________________________
public class odTask implements CSURLExternalTask
{
public void execute(CSClient client, CSExternalTask task, Hashtable arg2)
throws CSException
{
// TODO Auto-generated method stub
String odClt = "/opt/Interwoven/OpenDeployNG/bin/iwodstart odtest";
Process proc;
try
{
proc = Runtime.getRuntime().exec(odClt);
proc.waitFor();
System.out.println(proc.exitValue()+"===This through odTask wfm ===");
}
catch (Exception e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}