Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Conversion corrections

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

JADE has an API which makes it possible to use the JADE Engine in any application which can execute Java .jar files, e.g. Scala, Groovy, ....

An example how to include JADE as a component in your application, using the configuration in an ini-file:

Code Block

 JadeEngine objJadeEngine = new JadeEngine();
 JADEOptions objOptions = objJadeEngine.Options()
 
 objOptions.settings.Value(strSettingsFile); // settings file name
 objOptions.profile.Value(pstrProfileName);  // name of transfer profile
 objOptions.ReadSettingsFile();
  	
 objJadeEngine.Execute();  // start transfer
 objJadeEngine.Logout();   // logout and disconnect

Another example with configure JADE options programmaticaly:

Code Block

 public void testRenameMultipleFilesLocal() throws Exception \{
    JadeEngine objJadeEngine = new JadeEngine();
    JADEOptions objOptions = objJadeEngine.Options()

    objOptions.getConnectionOptions().Source().protocol.Value("local");
    objOptions.file_spec.Value("^.*\\.txt$");
    objOptions.local_dir.Value(strTestPathName + "/JADE/");
    objOptions.operation.Value("rename");
   
    objOptions.replacing.Value("(.*)(.txt)");
    objOptions.replacement.Value("\\1_[date:yyyyMMddHHmm];\\2");

    objJadeEngine.Execute();
    objJadeEngine.Logout();
 \}

More Information on how to use the API you can find here: jadeAPIReference

For infos about the parameters see the parameter documentation on jadeParameterReference.