IBM BPM, V8.0.1, All platforms > Create processes in IBM Process Designer > Modeling processes > Building services

Building an Ajax service

Build an Ajax service when you want a Coach View to send data to or retrieve data from the server asynchronously, such as for autocompletion in text fields, for default selection values in selection lists, and so forth.


Procedure

  1. Create the Ajax service as described in Create a service

  2. Add variables that the service will use as input or output.

    You can also add private variables. See Declaring variables for a BPD or a service for information.

  3. Add components to the service diagram and then set up the sequence flow.

    For more information about components, see Understanding service components.

  4. Configure the components in the sequence flow.

    For example, if you are using a Server Script component, add a script in the Implementation properties.

  5. Save changes. The Ajax service is available for use in Coach Views.


Example

To view an example of an Ajax service, the following Ajax services are provided in the Coaches (8.0) toolkit: Coaches Localized Messages Loader, Default Autocompletion Service, and Default Selection Service.

Building services


Related tasks:
Calling Ajax services from Coach Views


Related information:
Building an Ajax service with Heritage Coaches