Overriding RESTful URL
We can override the REST URL at run time by placing Put-Context-Var before Web Services REST Consumer Activity in the Process Flow.
Steps to override the REST URL:
On the Adeptia Suite homepage, go to Develop > Services > Web Services > Consumer.
Create a RESTful Consumer activity by using a dummy URL in the URL field.
Click Save.
Create a Target Activity.
On the Adeptia Suite homepage, go to Develop > Process > Process Flow.
Create a process flow using the following activities in sequence (see Figure 359):
Click hierarchy structure in the Repository View panel. Expand the Action list and select the put-context-var action to drag it to the Graph Canvas area before the REST Consumer Activity.
Connect the put-context-var to the REST Consumer Activity.
Right-click the put-context-var and select View Properties. Its properties are displayed in the Properties Panel in the Bottom Pane.
Click the Edit button to edit the value of context variable. The Edit Context Variables dialog box is displayed.
Click the Add Variable ( ) to add new context variable. The Context Variable Information screen is displayed.
Select the Rest Consumer activity (which is to be overridden) from the dropdown list Activity Name. All variables of this Rest Consumer activity are listed in the dropdown list Variable Name.
Select restURL variable from the dropdown list Variable Name.
Enter the Url that you want to override during the run time, in the textbox Variable Value.
Click Done to close the Context Variable Information screen. This takes the control back to the screen Edit Context Variables. The newly created variable is added to the list of existing context variables.
Click Done to close the Edit Context Variables screen and return to Process Designer.
Select your Target activity.
Save the process flow and exit from Process Designer.
Execute the process flow, this overrides the dummy URL provided at the design time.