Changing interaction properties dynamically during run time
You can change the InteractionSpec properties dynamically at run time by setting the properties child data object of the input Business graph.
The Business graph defined by WebSphere Process Server contains a child data object called properties. We can change the Interaction Spec properties dynamically at run time by setting this properties child data object of the input Business graph. This child data object has the following definition in the Business graph schema:
<element name="properties" type="anyType" minOccurs="0"/>The data object contains name-value pairs, with the name of the Interaction Spec property starting with the prefix IS, followed by the property name. This property name prefixed with “IS” is set in the InteractionSpec on the JCA adapter during run time.
For example, the ‘ISstartIndex' set in the 'properties' business object is mapped to the ‘startIndex' property defined in JDBCInteractionSpec.
The properties child data object can be set by any caller components of the adapter outbound interface like the Java™ component, BPEL business process or the mediation flow.
For example, in the Java component, we can set the properties by adding the below code snippet:
DataObject props = inputCustomerBG.getDataObject("properties"); if(props == null){ props = inputCustomerBG.createDataObject("properties"); } props.setInt("ISstartIndex", startIndex); this.locateService_JDBCOutboundInterfacePartner() .invoke("retrieveallSampleCustomerBG", inputCustomerBG);Changing the interaction properties during run time depends on the Business graph. Hence, ensure that you select the Generate a business graph for each business object check box in the external service wizard.