Resetting State Attributes in Product Administration

Sometimes variables that store the state of invoked REST APIs, such as profile attributes and session global attributes, can affect the functionality of subsequent REST API calls.

To reset these profile attributes, you must define them in the SWI External Integration Service business service. This business service uses the ResetSessionCache method to accept a list of attributes as business service user properties, and then resets them. After you specify the attributes that you need to reset, you use the EAI REST Adapter Service business service to invoke the ResetSessionCache business method before or after specified REST API calls.

Note: For more information about business service user properties, see Integration Platform Technologies: Siebel Enterprise Application Integration.

Before you can reset variables in Siebel REST API, you must enable preprocessing and postprocessing. For more information on the EAI REST Adapter Service, and enabling preprocessing and postprocessing, see Configuring Preprocessing and Postprocessing Steps in Inbound REST API.

To reset attribute values in product administration

  1. Open the SWI External Integration Service business service, and define the attributes you want to reset.

    By default, some attributes are already listed in the Business Service User Props pane. The following figure shows the Business Service User Props pane and some sample profile attributes and values:

  2. Open the EAI REST Adapter Service business service, and map the URI or URI pattern, as well as the business service and business method that is responsible for each preprocessing and postprocessing function. The following table contains a sample URI and its corresponding user properties and values to configure preprocessing and postprocessing steps.
    User Property Key User Property Value

    resource_1

    data/*

    resource_1_preprocess

    Not applicable.

    resource_1_postprocess

    SWI External Integration Service:ResetSessionCache

    The following figure shows the Business Service User Props pane and sample resource mapping user property keys and values:

    The Business Service User Props pane and sample resource mapping user property keys and values.