From the Network APIs section of the list of actions available along the left column of the Action Editor, you can add the following three actions. Click an action for instructions on how to add it to an action sequence.
The Invoke Synchronous Service action in the Action Editor calls a synchronous service in response to the triggering of an event for a widget. When you add a synchronous service to an action sequence, all the services that are part of the service definition file appear in the drop-down list.
When you make a service call, you have the option to make a secure call (https call). You also have the option to block the UI till the service call is complete. Selecting this option blocks the UI and prevents you from performing other actions on the UI.
Block UI
Freezes the UI till the service call is complete.
Secure
Makes the service call through a secure connection, i.e., https protocol.
Note: Block UI and Secure are mutually exclusive options. You can select either of the options, both the options, or none of the options based on your requirement.
Open Mapping Editor
This button is enabled when you select a service. With the Mapping Editor you can map the service parameters to the widgets on the form from which the service was invoked.
Add Custom HTTP Headers
You can add your own custom http headers in this frame. You can define any information you want to pass in the header of the service call, apart from the default header parameters. Each row allows you to add a custom header parameter along with its value. You can define the value in the Mapping Editor or write an expression to derive the value.
The header name must be unique for every custom header. You can give any name to the custom headers you define except for the reserved header names. However, it is recommended to use user-friendly names for the headers.
Note: Authorization is a reserved header name that captures the user authentication details.
To define an action sequence for invoking a synchronous service, do the following:
For invoking an asynchronous service when an event is triggered for a widget, use this action sequence in the Action Editor. When you add an asynchronous service to an action sequence, all the services that are part of the service definition file appear in the drop-down list.
When you make a service call, you have the option to make a secure call (https call).
Secure
Makes the service call through a secure connection, i.e., https protocol.
Open Mapping Editor
This button is enabled when you select a service. The Mapping Editor enables you to map the service parameters to the widgets on the form from which the service was invoked.
Add Custom HTTP Headers
You can add your own custom HTTP headers in this frame. You can define any information you want to pass in the header of the service call, apart from the default header parameters. Each row allows you to add a custom header parameter along with its value. You can define the value in the Mapping Editor or write an expression to derive the value.
The header name must be unique for every custom header. You can give any name to the custom headers you define except for the reserved header names. However, it is recommended to use user-friendly names for the headers.
Note: Authorization is a reserved header name that captures the user authentication details.
To define an action sequence for invoking an asynchronous service, do the following:
For invoking an Object service when an event is triggered for a widget, use this action sequence in the Action Editor. When you try to add an Object service to an action sequence, all Object services that are part of the service definition file appear in the drop-down list.
To define an action sequence for invoking an Object service, do the following:
Under the Network APIs available in Visualizer, a new API is added. The new API is called Invoke Identity Service. When you use this API, the list of all identity services created and linked to the associated Kony Fabric application is displayed. You can view the type of the identity service and if there are any request parameters or response structure in the mapping editor, you can view them too. If the identity service is of type OAuth or SAML, a default browser widget is created on the form. You can choose whether the operation is login or logout on the identity service.
To define an action sequence for invoking an Object service, do the following:
Copyright © 2013 Kony, Inc. All rights reserved. |