Using the Debug Engine
Creating the Reference
To create a reference using the Swagger code that you retrieved from the service, you must first create a Swagger file in the Service Descriptors folder of your process.
Create a process for the reference if you do not already have one. You will need to create a .json file in its Service Descriptors folder.
Procedure
- Right-click the Service Descriptors folder of the process and select .
- Enter a name for the .json file and click Finish.
- Right-click the newly created .json file in the Service Descriptors folder and select .
- Paste the JSON code that you copied from the Swagger file into the Text Editor and save the project.
- Expand the .json file in the Service Descriptors folder to expose the paths.
- Drag and drop a path from the Service Descriptors folder to the right boundary of the Process Editor to create a reference.
To make your reference application portable
The reference that you created above can only access a service that is running on a reachable network address. You can modify the reference to use a hostname and port that is configurable even after this application is deployed. Using a Module Property for the hostname and/or port will allow that property value to be provided by an administrator that is running the application. The value may also need to be changed if the service is physically moved to another host or port.
Follow these steps to modify the reference such that it can invoke a service from a location determined even after this application is deployed: