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.

Anchor
OLE_LINK8
OLE_LINK8
This feature is available in:

Enterprise

Premier

Professional

Express

??

?

 


Steps to create Native Call activity

  1. On the Adeptia Suite homepage, click the Develop tab.
  2. Go to Services > Extensions and then click Native Call.

...

  1. The Manage Native Call

...

  1.  screen is displayed (see Figure 576).

    Image Modified

...

...

  1. Figure 576: Manage Native Call

  2. Click the Create New link. The Create Native Call screen is displayed.
  3. Enter the name and description of the new Native Call activity in the textboxes Name and Description fields respectively.
  4. Select the extension of the file i.e. .exe, .bat or .sh from the dropdown list Default Extension.
  5. Enter the filename with full path in the textbox File Name(Absolute Path).
  6. To specify any arguments for selected batch or executable file enter the arguments in the Argument(s) space separated field (see Figure 577).

    Image Modified

...

...

  1. Figure 577: Create Native Call

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

    Image Removed
    Info

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

    Image Removed
    Info

    If Working Directory is not specified, the home directory of Adeptia Server, (i.e. ../../AdeptiaServer/AdeptiaeServer-6.2) becomes the working directory. All the files specified into batch or executable file will be looked into Adeptia 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.txt. File1.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.

  3. Click the Save button.

...

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.

Anchor
_Creating_Notification_Activity
_Creating_Notification_Activity
Anchor
_Creating_Polling_Service
_Creating_Polling_Service
Anchor
_Toc112820718
_Toc112820718
Anchor
_Toc114635259
_Toc114635259
Anchor
_Toc134848200
_Toc134848200
Anchor
_Toc144314341
_Toc144314341
Anchor
_Toc177977244
_Toc177977244
Anchor
_Toc226191143
_Toc226191143

13