-
Language:
English
-
Language:
English
9.14. Execution XML Examples
A custom XStream marshaler can be used with the JBoss Rules Pipeline to achieve XML scripting, which is perfect for services. Here are two examples of this:
BatchExecution XML:
<batch-execution>
<insert out-identifier='outRed'>
<org.drools.Car>
<type>red</type>
<price>25000</price>
<oldPrice>0</oldPrice>
</org.drools.Car>
</insert>
</batch-execution>
ExecutionResults XML:
<execution-results>
<result identifier='outBlue'>
<org.drools.Car>
<type>Blue</type>
<oldPrice>25</oldPrice>
<price>30000</price>
</org.drools.Car>
</result>
</execution-results>