...
- 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.
Info To know how to create RESTful Consumer, please refer to the Creating Web Service Consumer Activity to Access RESTful Web Service section.
- Click Save.
Create a Target Activity.
Info To know how to create a Target Activity, please refer to theCreating Target Activity section.
- On the Adeptia Suite homepage, go to Develop > Process > Process Flow.
Create a process flow using the following activities in sequence (see Figure 359):
Server Entities
Description
Context Variable
Put-Context-Var
Consumer Activity
REST
Target Activity
Any
- 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.
Info There are two ways to override RESTful URL at the run time:
- Provide the whole RESTful URL in the Variable value text box.
- Provide some parts of RESTful URL in the Variable value text box.
Where values of Context Variables Var1, Param, and Value are defined as TimeService, appid, and YahooDemo in the Process Flow Designer respectively.