Creating Native Call Activity
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 Native Call activity
- On the Adeptia Suite homepage, click the Develop tab.
Go to Services > Extensions and then click Native Call.
The Manage 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 in the textboxes Name and Description fields respectively.
- Select the extension of the file i.e. .exe, .bat or .sh from the dropdown list Default Extension.
- Enter the filename with full path in the textbox 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.
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.- Click the Save button.
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.
13