Hi How to call command Line tool from the Java code ?I am using Java program as the preprocessor that does some validation on initiation of the workflow, for which I need to call CLT to find if the selected file is attached to any other workflow or not.Please suggest how to achieve this.If we cannot call CLT directly from Java, is there any other way to do this ?If not through CLT, please suggest how to find out whether the attached file in this work flow is not attached to any other workflow.
int[] taskIds = client.getWorkflowEngine().getRelatedTaskIdsForFile(file);
You might also want to look at the newer ProcessBuilder instead of using Runtime. But you should look into using the cssdk and if there are any methods that you can use instead of using the Runtime.