Versions Compared

Key

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

Native Call is used to run the .EXE, .BAT or .SH files asynchronously during the execution of a process flow.
This feature is available in:

Steps to create a Native Call activity

...

:

  1. Click Configure > EXTENSIONS > Extensions and then click Native Call.

  2. The Manage Click Create Native Call screen is displayed. 

    Image Removed

    Manage Native Call

  3. Click the Create New link. The Create Native Call screen is displayed.

  4. Image Added

  5. Enter the name and description of the new Native Call activity service in the textboxes text boxes Name and Description fields respectively.
  6. Select the extension of the file i.e. .exe, .bat or .sh from the dropdown list drop-down list of Default Extension.
  7. Enter the filename with full path in the textbox text box File Name(Absolute Path).
  8. To specify any arguments for selected batch or executable file enter the arguments in the Argument(s) space separated field.

    Image Removed

    Create Native Call

  9. Enter the path of directory, where you want the run the specified batch or executable file, in the Working Directory (Absolute Path) field.

    All files specified into batch or executable file must be placed on the server on which the Adeptia Server is running.

    Info
    If Working Directory is not specified, the home directory of
    Adeptia Server, (i.e. ../../AdeptiaServer/AdeptiaeServer-6.2) becomes
    Connect Server becomes the working directory. All the files specified into batch or executable file will be looked into
    Adeptia
    Connect Server home path.

    For example, there is batch file Mybatch.bat and it is placed on C drive. The contents of batch file are Copy File1.txt File2.txtFile1.txt is placed in C drive. Since the working directory is not specified the batch file will look for File1.txt
     into ../../AdeptiaServer/AdeptiaServer-5.1
     and it will cause error. So you can either specify the working directory (i.e. C:) or specify the absolute path (e.g. copy C:\File1.txt C:\File2.txt) in the batch file.


  10. Click the Save button.Expand the Advanced Properties.
  11. Select the Project from the drop-down list of Project. This option is visible only when GAC is enabled.
  12. Click Save.

    Info
    When using a native call in a process flow, the waitForEnd property is set to False by default. This implies that the native call and other activities in the process flow are executed simultaneously. If you want to wait till the native call is complete, before executing the next activity in the process flow, you need to set this property to True.