Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Scenario

...

JADE has provides an API which that allows to use the JADE Engine engine in any application which that can execute Java .jar files, e.g. Scala, Groovy , ....etc.

Using JADE with options from a settings file

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

Code Block
languagejava
 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

Using JADE with options programmatically

A different example that configures Another example with configure JADE options programmaticaly:

Code Block
languagejava
 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();
 }

See also

  • More Information on how to use the API

...

...

  parameter reference documentation on jadeParameterReference.