Application Integration (On-Premises) : Creating REST applications : Setting Up Your REST Application : Converting an Existing Application
Converting an Existing Application
If you have an existing application that you want to transform into a REST application, you can consider using the URL template-based approach and configure REST resources for the application. This is the most straightforward approach you can use to transform the application.
If you want to use the legacy approach, then you can consider either of the following approaches to transform the existing application:
*Refactor your existing services into _get, _put, _post, _patch and _delete services.
*Use the invoke directive, as shown in the following example:
For existing applications that use the invoke directive, you can update a service to call the pub.flow:getTransportInfo service and then perform a branch on /transport/http/method to execute the appropriate portions of your existing code, as in the following example:
Note:  
If you use the invoke directive, you cannot use the $resourceID and $path pipeline variables. In addition, you cannot use the _default service.
Copyright © 2015- 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback