The IDL Workbench contains functionality to help you write and publish Tasks for use in ENVI Services Engine (ESE). This includes the ability to easily create JSON and PRO code, edit and validate JSON files, and publish Tasks from IDL directly to an ESE Server.
.pro file) that will be part of this task.IDL creates the Task folder as well as the templates for the Task's config.json and .pro files. You can navigate to and open these files via the Project Explorer, just as you would any other IDL code.
Note: When developing ESE Tasks using !SERVER in the IDL Workbench, make sure to add \lib\!server__define.pro and \lib\verifyserver.pro to IDL's !PATH system variable.
The config.json editor window, showing the "Publish" tab at the bottom:
config.json and *.pro files for your Task using the Project Explorer.config.json file when you save it. If part of your config.json does not pass validation, IDL will mark the line that is not valid by adding a red and white "x" icon in the left gutter of the JSON editor. Note: IDL allows you to save your config.json even if it is not valid, but it will not allow you to upload it to an ESE server until it passes validation.
For more information on creating tasks, consult your ENVI Services Engine online documentation.
Once you complete writing your Task's .pro and config.json files, you can upload the Task directly to an ESE server from within the IDL Workbench using the Publish tab:
config.json file and save it.config.json editor. http://<hostname>:<port>/ESE. The default port is 8181 and the default Catalog name is "ESE", so typically http://<hostname>:8181/ESE will be the location you will specify here. You can get this information directly from your ESE Admin Console or from your System Administrator.Note: If you set your Project > Properties > JSON Properties to validate config.json, the file must be valid before IDL will allow you to publish your task. If it is not valid, the Publish tab is not visible at the bottom of the Workbench's JSON editor.
Note: The Workbench will not allow you to upload a synchronous task to an asynchronous service, and vice versa. If you try to upload across services, the Publish button will be inactive.
The Publish tab that you access from the config.json file gives you ways to manage and organize your Services, folders, and tasks.
On the Service Endpoint part (right side) of the Publish Task tab, you can do the following:
|
Icon |
Name |
Description |
|---|---|---|
|
|
Publish |
Select the ESE directory or a folder and then click the Publish button to publish the task |
|
|
New Folder |
Select the ESE directory or a folder and then click the Folder button to add a folder. |
|
|
New Service |
Select the ESE directory or a subfolder and then click the New Service button to add a new service. You must type a name and select the type of service (Asynchronous or Synchronous). You can also add an optional description. |
|
|
Edit Properties |
Select an item in the Service Endpoint directory structure and click the Edit Properties button to change the name or description. |
|
|
Delete |
Select an item in the Service Endpoint directory structure and click the Delete button to remove the item. |