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
...
:
Click Configure > EXTENSIONS > Extensions and then click Native Call.
The Manage Click Create Native Call screen is displayed.
Manage Native Call
- Click the Create New link. The Create Native Call screen is displayed.
- Enter the name and description of the new Native Call activity service in the textboxes text boxes Name and Description fields respectively.
- Select the extension of the file i.e. .exe, .bat or .sh from the dropdown list drop-down list of Default Extension.
- Enter the filename with full path in the textbox text box File Name(Absolute Path).
To specify any arguments for selected batch or executable file enter the arguments in the Argument(s) space separated field.
Create Native Call
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.
Adeptia Server, (i.e. ../../AdeptiaServer/AdeptiaeServer-6.2) becomesInfo If Working Directory is not specified, the home directory of
AdeptiaConnect Server becomes the working directory. All the files specified into batch or executable file will be looked into Connect Server home path.
into ../../AdeptiaServer/AdeptiaServer-5.1For 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 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. - Click the Save button.Expand the Advanced Properties.
- Select the Project from the drop-down list of Project. This option is visible only when GAC is enabled.
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.