CSPathStatus[]
attachFiles(CSAreaRelativePath[] filePaths)
I remove everything from my code at this point I just want to attach a file from somewhere.
Here the code I'm running now, I'm getting an exception "e"...?
public void execute(CSClient client, CSExternalTask task, Hashtable params) throws CSException{
try{
CSAreaRelativePath attachedFiles = new CSAreaRelativePath("system/reports/reportBaseValidation"); CSAreaRelativePath[] curFilePath = new CSAreaRelativePath[0]; curFilePath[0]=attachedFiles; task.attachFiles(curFilePath);
task.chooseTransition(task.getTransitions()[0], "Done go to next task"); } // end try catch(CSAuthorizationException CSae) { System.out.println("CSae"); System.out.println(CSae.getMessage()); }
catch(CSRemoteException CSre) { System.out.println("CSre"); System.out.println(CSre.getMessage()); }
catch(CSObjectNotFoundException CSOe) { System.out.println("CSOe"); System.out.println(CSOe.getMessage()); } catch(CSInactiveTaskException CSite) { System.out.println("CSite"); System.out.println(CSite.getMessage()); }
catch(CSExpiredSessionException CSee) { System.out.println("CSee"); System.out.println(CSee.getMessage()); }
catch(CSException CSe) { System.out.println("CSe"); System.out.println(CSe.getMessage()); }
catch(Exception e) {System.out.println("e"); System.out.println(e.getMessage()); }
} // end of execute
...CSAreaRelativePath attachedFiles = new CSAreaRelativePath("system/reports/reportBaseValidation");
Your right system was a different WA, I guest before I ran it again I should set the new WA with setArea before.Can I add a file from another WA?