File Context

Access Remote files from rules engine

  • Handle remote files in rules engine

  • Context Variable: file

  • Only applicable to

API Interface

//Delete this file
boolean delete();

//Get's the remote file name
String getFileName() ;

//Retrieves the file content from the remote file
byte[] getData();

//Get's the remote file's full path
String getFilePath();

//Get's the home directory of the remote login
String getHomeDir();

//Get's the current working directory of the remote login
String getWorkingDir();

//Copy this file to a different folder with same name
boolean copyTo(String path);

//Copy this file to a different folder with different name
boolean copyTo(String path, String fileName);

//Move this file to a different folder with different name
boolean moveTo(String path, String fileName);

//Move this file to a different folder with same name
boolean moveTo(String path);