The next step shows how to create optional XML-based scripts. Our script will be used to invoke the persistence layer to retrieve our BusinessObjectSet of Suppliers.
The script itself is very easy to understand:
<script name="retrieve_business_object_set">
<bean name="bo_set"
class="com.browsersoft.bc.BusinessObjectSet">
<arg
value="supplierSet" type="string"
/>
</bean>
<method name="retrieve"
target="$bo_set">
<arg
value="$request.persisterId" type="string"
/>
<arg
value="$request.params" type="java.util.Hashtable"
/>
</method>
</script>
Here it is in pseudo code:
Next: Create a Client