<?xml version="1.0" encoding="UTF-8"?> <a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" trace="true"> <a:init-procedure> <batch-apply sourcepath="/parameter"> <p:switch test="@current_parameter/@_status"> <p:case value="update"> <a:model-update model="rpt.RPT1040.rpt_datasource"/> <a:model-batch-update model="rpt.RPT1040.rpt_datasource_field" sourcePath="@current_parameter/sub"/> </p:case> <p:case value="insert"> <a:model-insert model="rpt.RPT1040.rpt_datasource"/> <a:model-batch-update model="rpt.RPT1040.rpt_datasource_field" sourcePath="@current_parameter/sub"/> </p:case> <p:case value="delete"> <a:model-delete model="rpt.RPT1040.rpt_datasource"/> <a:model-delete model="rpt.RPT1040.rpt_datasource_field"/> </p:case> </p:switch> </batch-apply> </a:init-procedure> <a:service-output output="/parameter"/> </a:service>