[jboss-svn-commits] JBL Code SVN: r34181 - in labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US: Chapter-Commands/Section-API and 1 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Jul 26 08:19:25 EDT 2010


Author: ge0ffrey
Date: 2010-07-26 08:19:24 -0400 (Mon, 26 Jul 2010)
New Revision: 34181

Modified:
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CamelRoutesCreation.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CreatingDroolsCommands.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CreatingOurCamelContext.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-RegisteringKnowledgeSession.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-SendingMessagesExchanges.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-API/Section-API.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-AbortWorkItemCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-BatchExecutionCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-Commands.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-CompleteWorkItemCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-FireAllRulesCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetGlobalCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetObjectCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetObjectsCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-InsertElementsCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-InsertObjectCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-ModifyCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-QueryCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-RetractCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-SetGlobalCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-SignalEventCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-StartProcessCommand.xml
Log:
JBRULES-2587 code highlighting java for drools-integration + don't use <programlisting> inside <para>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CamelRoutesCreation.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CamelRoutesCreation.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CamelRoutesCreation.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -35,15 +35,13 @@
   <para>The most important thing in this section is to know how to create your
   Drools Endpoint, best shown in an example:</para>
 
-  <para><programlisting>RouteBuilder rb = new RouteBuilder() { 
+  <programlisting role="JAVA">RouteBuilder rb = new RouteBuilder() {
    public void configure() throws Exception {
       from("direct:with-session-xstream").to("drools:sm/ksession1?dataFormat=drools-xstream");
    }
 };
-camelContext.addRoutes(rb);</programlisting></para>
+camelContext.addRoutes(rb);</programlisting>
 
-  <para></para>
-
   <para>In this example we created a simple route with a <link
   xlink:href="http://camel.apache.org/direct.html">Direct Endpoint</link> as
   the input and a Drools Endpoint as the output. A Direct input allow us to

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CreatingDroolsCommands.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CreatingDroolsCommands.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CreatingDroolsCommands.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -13,12 +13,12 @@
 
   <para></para>
 
-  <para><programlisting>BatchExecutionCommand cmd = new BatchExecutionCommand();
+  <programlisting role="JAVA">BatchExecutionCommand cmd = new BatchExecutionCommand();
 cmd.setLookup("ksession1");
 cmd.getCommands().add(new InsertObjectCommand(new Person("lucaz", 25), "person1"));
 cmd.getCommands().add(new InsertObjectCommand(new Person("hadrian", 25), "person2"));
 cmd.getCommands().add(new InsertObjectCommand(new Person("baunax", 21), "person3"));
-cmd.getCommands().add(new FireAllRulesCommand());</programlisting></para>
+cmd.getCommands().add(new FireAllRulesCommand());</programlisting>
 
   <para>At this moment, the supported commands are:</para>
 

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CreatingOurCamelContext.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CreatingOurCamelContext.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CreatingOurCamelContext.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -12,7 +12,7 @@
   Local grid connection. The next step after the LocalConnection creation is
   to get a new ExecutionNode and register this inside the CamelContext.</para>
 
-  <programlisting>LocalConnection connection = new LocalConnection();
+  <programlisting role="JAVA">LocalConnection connection = new LocalConnection();
 ExecutionNode node = connection.getExecutionNode();
 node.setId("node");
 Context jndiContext = new JndiContext();

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-RegisteringKnowledgeSession.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-RegisteringKnowledgeSession.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-RegisteringKnowledgeSession.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -10,5 +10,5 @@
   into the ExecutionNode all the KnowledgeSessions that you are going to
   use.</para>
 
-  <programlisting>node.get(DirectoryLookupFactoryService.class).register("ksession1", ksession);    </programlisting>
+  <programlisting role="JAVA">node.get(DirectoryLookupFactoryService.class).register("ksession1", ksession);    </programlisting>
 </section>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-SendingMessagesExchanges.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-SendingMessagesExchanges.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-SendingMessagesExchanges.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -10,13 +10,13 @@
   <link
   xlink:href="http://camel.apache.org/producertemplate.html">ProducerTemplate</link></para>
 
-  <para><programlisting>ProducerTemplate template = camelContext.createProducerTemplate();</programlisting></para>
+  <programlisting role="JAVA">ProducerTemplate template = camelContext.createProducerTemplate();</programlisting>
 
   <para>After you have a template, you can start to send message exchange to
   your route:</para>
 
-  <para><programlisting>String xml = "&lt;xml&gt;example&lt;/xml&gt;";
-template.requestBody("direct:with-session-xstream", xml);</programlisting></para>
+  <programlisting role="JAVA">String xml = "&lt;xml&gt;example&lt;/xml&gt;";
+template.requestBody("direct:with-session-xstream", xml);</programlisting>
 
   <note>
     <para>When we use commands created with JAXB we need to use a special
@@ -81,16 +81,17 @@
         <para>Here we are adding our XSD model definition to our
         KnowledgeBuilder as a resource</para>
 
-        <para><programlisting>Options xjcOpts = new Options();
+        <programlisting role="JAVA">Options xjcOpts = new Options();
 xjcOpts.setSchemaLanguage( Language.XMLSCHEMA );
 JaxbConfiguration jaxbConfiguration = KnowledgeBuilderFactory.newJaxbConfiguration( xjcOpts, "xsd" );
-kbuilder.add( ResourceFactory.newClassPathResource("person.xsd", getClass()), ResourceType.XSD, jaxbConfiguration);</programlisting>Then
+kbuilder.add( ResourceFactory.newClassPathResource("person.xsd", getClass()), ResourceType.XSD, jaxbConfiguration);</programlisting>
+        <para>Then
         you need to add your knowledge resources into the kbuilder and create
         your KnowledgeBase. These steps are the same as those in the Drools
         Expert documentation. Finally, we are going to create the
         JAXBContext</para>
 
-        <para><programlisting>// Add object model to classes array
+        <programlisting role="JAVA">// Add object model to classes array
 List&lt;String&gt; classesName = new ArrayList&lt;String&gt;();
 classesName.add("org.drools.model.AddressType");
 classesName.add("org.drools.model.ObjectFactory");
@@ -102,14 +103,15 @@
 catch (Exception e) {
    LOG.info("Errors while creating JAXB Context.", e);
    throw new RuntimeException(e);
-}</programlisting></para>
+}</programlisting>
       </listitem>
 
       <listitem>
-        <para>BatchExecutionCommand marshalling <programlisting>StringWriter xmlReq = new StringWriter();
+        <para>BatchExecutionCommand marshalling</para>
+        <programlisting role="JAVA">StringWriter xmlReq = new StringWriter();
 Marshaller marshaller = jaxbContext.createMarshaller();
 marshaller.setProperty("jaxb.formatted.output", true);
-marshaller.marshal(batchExecutionCommand, xmlReq);</programlisting></para>
+marshaller.marshal(batchExecutionCommand, xmlReq);</programlisting>
       </listitem>
 
       <listitem>
@@ -117,10 +119,10 @@
 
         <para>In this step we need to use another ProducerTemplate method
         called requestBodyAndHeader() because the Drools Component needs to
-        know wich JAXBContext must use to unmarshall the XML.</para>
+        know which JAXBContext must use to unmarshall the XML.</para>
 
-        <para><programlisting>String xml = xmlReq.toString();
-byte[] xmlOutput = (byte[]) template.requestBodyAndHeader("direct:test-with-session", xmlReq.toString(), "jaxb-context", jaxbContext);</programlisting></para>
+        <programlisting role="JAVA">String xml = xmlReq.toString();
+byte[] xmlOutput = (byte[]) template.requestBodyAndHeader("direct:test-with-session", xmlReq.toString(), "jaxb-context", jaxbContext);</programlisting>
       </listitem>
 
       <listitem>
@@ -130,9 +132,7 @@
         <para>And the final step is to convert the XML output to an
         ExecutionResults instance</para>
 
-        <para><programlisting>ExecutionResults resp = (ExecutionResults) jaxbContext.createUnmarshaller().unmarshal(new ByteArrayInputStream(xmlOutput));</programlisting></para>
-
-        <para></para>
+        <programlisting role="JAVA">ExecutionResults resp = (ExecutionResults) jaxbContext.createUnmarshaller().unmarshal(new ByteArrayInputStream(xmlOutput));</programlisting>
       </listitem>
     </orderedlist>
 

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-API/Section-API.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-API/Section-API.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-API/Section-API.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -80,7 +80,7 @@
 
       <para></para>
 
-      <para><programlisting>Options xjcOpts = new Options();
+      <programlisting role="JAVA">Options xjcOpts = new Options();
 xjcOpts.setSchemaLanguage(Language.XMLSCHEMA);
 JaxbConfiguration jaxbConfiguration = KnowledgeBuilderFactory.newJaxbConfiguration( xjcOpts, "xsd" );
 kbuilder.add(ResourceFactory.newClassPathResource("person.xsd", getClass()), ResourceType.XSD, jaxbConfiguration);
@@ -89,7 +89,7 @@
 List&lt;String&gt; classesName = new ArrayList&lt;String&gt;();
 classesName.add("org.drools.test.Person");
    
-JAXBContext jaxbContext = KnowledgeBuilderHelper.newJAXBContext(classesName.toArray(new String[classesName.size()]), kbase);</programlisting></para>
+JAXBContext jaxbContext = KnowledgeBuilderHelper.newJAXBContext(classesName.toArray(new String[classesName.size()]), kbase);</programlisting>
     </section>
 
     <section>
@@ -113,10 +113,10 @@
 
       <para></para>
 
-      <para><programlisting>List&lt;String&gt; classNames = new ArrayList&lt;String&gt;();
+      <programlisting role="JAVA">List&lt;String&gt; classNames = new ArrayList&lt;String&gt;();
 classNames.add("org.drools.test.Person");
 JAXBContext jaxbContext = DroolsJaxbContextHelper.createDroolsJaxbContext(classNames, null);
-Marshaller marshaller = jaxbContext.createMarshaller();</programlisting></para>
+Marshaller marshaller = jaxbContext.createMarshaller();</programlisting>
 
       <para></para>
     </section>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-AbortWorkItemCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-AbortWorkItemCommand.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-AbortWorkItemCommand.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -47,11 +47,12 @@
     </listitem>
 
     <listitem>
-      <para>Command creation<programlisting>BatchExecutionCommand command = new BatchExecutionCommand();
+      <para>Command creation</para>
+      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 AbortWorkItemCommand abortWorkItemCommand = new AbortWorkItemCommand();
 abortWorkItemCommand.setWorkItemId(1001);
-command.getCommands().add(abortWorkItemCommand);</programlisting></para>
+command.getCommands().add(abortWorkItemCommand);</programlisting>
 
       <para></para>
     </listitem>
@@ -63,9 +64,9 @@
         <listitem>
           <para>XStream</para>
 
-          <para><programlisting>&lt;batch-execution lookup="ksession1"&gt;
+          <programlisting>&lt;batch-execution lookup="ksession1"&gt;
   &lt;abort-work-item id="1001"/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>
@@ -73,7 +74,7 @@
         <listitem>
           <para>JSON</para>
 
-          <para><programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"abort-work-item":{"id":1001}}}} </programlisting></para>
+          <programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"abort-work-item":{"id":1001}}}} </programlisting>
 
           <para></para>
         </listitem>
@@ -81,10 +82,10 @@
         <listitem>
           <para>JAXB</para>
 
-          <para><programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
+          <programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
 &lt;batch-execution lookup="ksession1"&gt;
     &lt;abort-work-item id="1001"/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-BatchExecutionCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-BatchExecutionCommand.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-BatchExecutionCommand.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -56,12 +56,13 @@
     </listitem>
 
     <listitem>
-      <para>Command creation<programlisting>BatchExecutionCommand command = new BatchExecutionCommand();
+      <para>Command creation</para>
+      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 InsertObjectCommand insertObjectCommand = new InsertObjectCommand(new Person("john", 25));
 FireAllRulesCommand fireAllRulesCommand = new FireAllRulesCommand();
 command.getCommands().add(insertObjectCommand);
-command.getCommands().add(fireAllRulesCommand);</programlisting></para>
+command.getCommands().add(fireAllRulesCommand);</programlisting>
 
       <para></para>
     </listitem>
@@ -73,7 +74,7 @@
         <listitem>
           <para>XStream</para>
 
-          <para><programlisting>&lt;batch-execution lookup="ksession1"&gt;
+          <programlisting>&lt;batch-execution lookup="ksession1"&gt;
   &lt;insert&gt;
     &lt;org.drools.test.Person&gt;
       &lt;name&gt;john&lt;/name&gt;
@@ -81,7 +82,7 @@
     &lt;/org.drools.test.Person&gt;
   &lt;/insert&gt;
   &lt;fire-all-rules/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>
@@ -89,7 +90,7 @@
         <listitem>
           <para>JSON</para>
 
-          <para><programlisting>{"batch-execution":{"lookup":"ksession1","commands":[{"insert":{"object":{"org.drools.test.Person":{"name":"john","age":25}}}},{"fire-all-rules":""}]}} </programlisting></para>
+          <programlisting>{"batch-execution":{"lookup":"ksession1","commands":[{"insert":{"object":{"org.drools.test.Person":{"name":"john","age":25}}}},{"fire-all-rules":""}]}} </programlisting>
 
           <para></para>
         </listitem>
@@ -97,7 +98,7 @@
         <listitem>
           <para>JAXB</para>
 
-          <para><programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
+          <programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
 &lt;batch-execution lookup="ksession1"&gt;
     &lt;insert&gt;
         &lt;object xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
@@ -106,7 +107,7 @@
         &lt;/object&gt;
     &lt;/insert&gt;
     &lt;fire-all-rules max="-1"/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-Commands.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-Commands.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-Commands.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -70,8 +70,8 @@
     </listitem>
   </itemizedlist>
 
-  <para><note>
-       In the next snippets code we are going to use a POJO org.drools.test.Person that has two fields 
+  <note>
+      <para>In the next snippets code we are going to use a POJO org.drools.test.Person that has two fields</para>
 
       <itemizedlist>
         <listitem>
@@ -83,43 +83,35 @@
         </listitem>
       </itemizedlist>
 
-       
-    </note></para>
+  </note>
 
-  <para><note>
-       In the next examples, to marshall the commands we have used the nexts snippet codes: 
+  <note>
+      <para>In the next examples, to marshall the commands we have used the nexts snippet codes:</para>
 
       <itemizedlist>
         <listitem>
           <para>XStream</para>
 
-          <para>
-            <programlisting>String xml = BatchExecutionHelper.newXStreamMarshaller().toXML(command);</programlisting>
-          </para>
+          <programlisting role="JAVA">String xml = BatchExecutionHelper.newXStreamMarshaller().toXML(command);</programlisting>
         </listitem>
 
         <listitem>
           <para>JSON</para>
 
-          <para>
-            <programlisting>String xml = BatchExecutionHelper.newJSonMarshaller().toXML(command);</programlisting>
-          </para>
+          <programlisting role="JAVA">String xml = BatchExecutionHelper.newJSonMarshaller().toXML(command);</programlisting>
         </listitem>
 
         <listitem>
           <para>JAXB</para>
 
-          <para>
-            <programlisting>Marshaller marshaller = jaxbContext.createMarshaller();
+          <programlisting role="JAVA">Marshaller marshaller = jaxbContext.createMarshaller();
 StringWriter xml = new StringWriter();
 marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
 marshaller.marshal(command, xml);</programlisting>
-          </para>
         </listitem>
       </itemizedlist>
 
-       
-    </note></para>
+  </note>
 
   <xi:include href="Section-BatchExecutionCommand.xml" />
   <xi:include href="Section-InsertObjectCommand.xml" />

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-CompleteWorkItemCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-CompleteWorkItemCommand.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-CompleteWorkItemCommand.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -54,11 +54,12 @@
     </listitem>
 
     <listitem>
-      <para>Command creation<programlisting>BatchExecutionCommand command = new BatchExecutionCommand();
+      <para>Command creation</para>
+      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 CompleteWorkItemCommand completeWorkItemCommand = new CompleteWorkItemCommand();
 completeWorkItemCommand.setWorkItemId(1001);
-command.getCommands().add(completeWorkItemCommand);</programlisting></para>
+command.getCommands().add(completeWorkItemCommand);</programlisting>
 
       <para></para>
     </listitem>
@@ -70,9 +71,9 @@
         <listitem>
           <para>XStream</para>
 
-          <para><programlisting>&lt;batch-execution lookup="ksession1"&gt;
+          <programlisting>&lt;batch-execution lookup="ksession1"&gt;
   &lt;complete-work-item id="1001"/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>
@@ -80,7 +81,7 @@
         <listitem>
           <para>JSON</para>
 
-          <para><programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"complete-work-item":{"id":1001}}}} </programlisting></para>
+          <programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"complete-work-item":{"id":1001}}}} </programlisting>
 
           <para></para>
         </listitem>
@@ -88,10 +89,10 @@
         <listitem>
           <para>JAXB</para>
 
-          <para><programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
+          <programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
 &lt;batch-execution lookup="ksession1"&gt;
     &lt;complete-work-item id="1001"/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-FireAllRulesCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-FireAllRulesCommand.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-FireAllRulesCommand.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -66,12 +66,13 @@
     </listitem>
 
     <listitem>
-      <para>Command creation<programlisting>BatchExecutionCommand command = new BatchExecutionCommand();
+      <para>Command creation</para>
+      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 FireAllRulesCommand fireAllRulesCommand = new FireAllRulesCommand();
 fireAllRulesCommand.setMax(10);
 fireAllRulesCommand.setOutIdentifier("firedActivations");
-command.getCommands().add(fireAllRulesCommand);</programlisting></para>
+command.getCommands().add(fireAllRulesCommand);</programlisting>
 
       <para></para>
     </listitem>
@@ -83,10 +84,10 @@
         <listitem>
           <para>XStream</para>
 
-          <para><programlisting>&lt;batch-execution lookup="ksession1"&gt;
+          <programlisting>&lt;batch-execution lookup="ksession1"&gt;
   &lt;fire-all-rules max="10" out-identifier="firedActivations"/&gt;
 &lt;/batch-execution&gt;
-</programlisting></para>
+</programlisting>
 
           <para></para>
         </listitem>
@@ -94,7 +95,7 @@
         <listitem>
           <para>JSON</para>
 
-          <para><programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"fire-all-rules":{"max":10,"out-identifier":"firedActivations"}}}}</programlisting></para>
+          <programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"fire-all-rules":{"max":10,"out-identifier":"firedActivations"}}}}</programlisting>
 
           <para></para>
         </listitem>
@@ -102,10 +103,10 @@
         <listitem>
           <para>JAXB</para>
 
-          <para><programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
+          <programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
 &lt;batch-execution lookup="ksession1"&gt;
    &lt;fire-all-rules out-identifier="firedActivations" max="10"/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetGlobalCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetGlobalCommand.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetGlobalCommand.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -56,12 +56,13 @@
     </listitem>
 
     <listitem>
-      <para>Command creation<programlisting>BatchExecutionCommand command = new BatchExecutionCommand();
+      <para>Command creation</para>
+      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 GetGlobalCommand getGlobalCommand = new GetGlobalCommand();
 getGlobalCommand.setIdentifier("helper");
 getGlobalCommand.setOutIdentifier("helperOutput");
-command.getCommands().add(getGlobalCommand);</programlisting></para>
+command.getCommands().add(getGlobalCommand);</programlisting>
 
       <para></para>
     </listitem>
@@ -73,9 +74,9 @@
         <listitem>
           <para>XStream</para>
 
-          <para><programlisting>&lt;batch-execution lookup="ksession1"&gt;
+          <programlisting>&lt;batch-execution lookup="ksession1"&gt;
   &lt;get-global identifier="helper" out-identifier="helperOutput"/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>
@@ -83,7 +84,7 @@
         <listitem>
           <para>JSON</para>
 
-          <para><programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"get-global":{"identifier":"helper","out-identifier":"helperOutput"}}}} </programlisting></para>
+          <programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"get-global":{"identifier":"helper","out-identifier":"helperOutput"}}}} </programlisting>
 
           <para></para>
         </listitem>
@@ -91,10 +92,10 @@
         <listitem>
           <para>JAXB</para>
 
-          <para><programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
+          <programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
 &lt;batch-execution lookup="ksession1"&gt;
     &lt;get-global out-identifier="helperOutput" identifier="helper"/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetObjectCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetObjectCommand.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetObjectCommand.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -56,12 +56,13 @@
     </listitem>
 
     <listitem>
-      <para>Command creation<programlisting>BatchExecutionCommand command = new BatchExecutionCommand();
+      <para>Command creation</para>
+      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 GetObjectCommand getObjectCommand = new GetObjectCommand();
 getObjectCommand.setFactHandleFromString("123:234:345:456:567");
 getObjectCommand.setOutIdentifier("john");
-command.getCommands().add(getObjectCommand);</programlisting></para>
+command.getCommands().add(getObjectCommand);</programlisting>
 
       <para></para>
     </listitem>
@@ -73,9 +74,9 @@
         <listitem>
           <para>XStream</para>
 
-          <para><programlisting>&lt;batch-execution lookup="ksession1"&gt;
+          <programlisting>&lt;batch-execution lookup="ksession1"&gt;
   &lt;get-object fact-handle="0:234:345:456:567" out-identifier="john"/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>
@@ -83,8 +84,8 @@
         <listitem>
           <para>JSON</para>
 
-          <para><programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"get-object":{"fact-handle":"0:234:345:456:567","out-identifier":"john"}}}}
-</programlisting></para>
+          <programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"get-object":{"fact-handle":"0:234:345:456:567","out-identifier":"john"}}}}
+</programlisting>
 
           <para></para>
         </listitem>
@@ -92,10 +93,10 @@
         <listitem>
           <para>JAXB</para>
 
-          <para><programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
+          <programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
 &lt;batch-execution lookup="ksession1"&gt;
     &lt;get-object out-identifier="john" fact-handle="0:234:345:456:567"/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetObjectsCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetObjectsCommand.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetObjectsCommand.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -57,11 +57,12 @@
     </listitem>
 
     <listitem>
-      <para>Command creation<programlisting>BatchExecutionCommand command = new BatchExecutionCommand();
+      <para>Command creation</para>
+      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 GetObjectsCommand getObjectsCommand = new GetObjectsCommand();
 getObjectsCommand.setOutIdentifier("objects");
-command.getCommands().add(getObjectsCommand);</programlisting></para>
+command.getCommands().add(getObjectsCommand);</programlisting>
 
       <para></para>
     </listitem>
@@ -73,9 +74,9 @@
         <listitem>
           <para>XStream</para>
 
-          <para><programlisting>&lt;batch-execution lookup="ksession1"&gt;
+          <programlisting>&lt;batch-execution lookup="ksession1"&gt;
   &lt;get-objects out-identifier="objects"/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>
@@ -83,7 +84,7 @@
         <listitem>
           <para>JSON</para>
 
-          <para><programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"get-objects":{"out-identifier":"objects"}}}}</programlisting></para>
+          <programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"get-objects":{"out-identifier":"objects"}}}}</programlisting>
 
           <para></para>
         </listitem>
@@ -91,10 +92,10 @@
         <listitem>
           <para>JAXB</para>
 
-          <para><programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
+          <programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
 &lt;batch-execution lookup="ksession1"&gt;
     &lt;get-objects out-identifier="objects"/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-InsertElementsCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-InsertElementsCommand.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-InsertElementsCommand.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -65,14 +65,15 @@
     </listitem>
 
     <listitem>
-      <para>Command creation<programlisting>BatchExecutionCommand command = new BatchExecutionCommand();
+      <para>Command creation</para>
+      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 InsertElementsCommand insertElementsCommand = new InsertElementsCommand();
 List&lt;Object&gt; objects = new ArrayList&lt;Object&gt;();
 objects.add(new Person("john", 25));
 objects.add(new Person("sarah", 35));
 insertElementsCommand.setObjects(objects);
-command.getCommands().add(insertElementsCommand);</programlisting></para>
+command.getCommands().add(insertElementsCommand);</programlisting>
 
       <para></para>
     </listitem>
@@ -84,7 +85,7 @@
         <listitem>
           <para>XStream</para>
 
-          <para><programlisting>&lt;batch-execution lookup="ksession1"&gt;
+          <programlisting>&lt;batch-execution lookup="ksession1"&gt;
   &lt;insert-elements&gt;
     &lt;org.drools.test.Person&gt;
       &lt;name&gt;john&lt;/name&gt;
@@ -95,7 +96,7 @@
       &lt;age&gt;35&lt;/age&gt;
     &lt;/org.drools.test.Person&gt;
   &lt;/insert-elements&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>
@@ -103,7 +104,7 @@
         <listitem>
           <para>JSON</para>
 
-          <para><programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"insert-elements":{"objects":[{"containedObject":{"@class":"org.drools.test.Person","name":"john","age":25}},{"containedObject":{"@class":"org.drools.test.Person","name":"sarah","age":35}}]}}}} </programlisting></para>
+          <programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"insert-elements":{"objects":[{"containedObject":{"@class":"org.drools.test.Person","name":"john","age":25}},{"containedObject":{"@class":"org.drools.test.Person","name":"sarah","age":35}}]}}}} </programlisting>
 
           <para></para>
         </listitem>
@@ -111,7 +112,7 @@
         <listitem>
           <para>JAXB</para>
 
-          <para><programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
+          <programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
 &lt;batch-execution lookup="ksession1"&gt;
     &lt;insert-elements return-objects="true"&gt;
         &lt;objects xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
@@ -123,7 +124,7 @@
             &lt;name&gt;sarah&lt;/name&gt;
         &lt;/objects&gt;
     &lt;/insert-elements&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-InsertObjectCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-InsertObjectCommand.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-InsertObjectCommand.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -64,12 +64,13 @@
     </listitem>
 
     <listitem>
-      <para>Command creation<programlisting>BatchExecutionCommand command = new BatchExecutionCommand();
+      <para>Command creation</para>
+      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 InsertObjectCommand insertObjectCommand = new InsertObjectCommand(new Person("john", 25));
 insertObjectCommand.setOutIdentifier("john");
 insertObjectCommand.setReturnObject(false);
-command.getCommands().add(insertObjectCommand);</programlisting></para>
+command.getCommands().add(insertObjectCommand);</programlisting>
 
       <para></para>
     </listitem>
@@ -81,14 +82,14 @@
         <listitem>
           <para>XStream</para>
 
-          <para><programlisting>&lt;batch-execution lookup="ksession1"&gt;
+          <programlisting>&lt;batch-execution lookup="ksession1"&gt;
   &lt;insert out-identifier="john" return-object="false"&gt;
     &lt;org.drools.test.Person&gt;
       &lt;name&gt;john&lt;/name&gt;
       &lt;age&gt;25&lt;/age&gt;
     &lt;/org.drools.test.Person&gt;
   &lt;/insert&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>
@@ -96,8 +97,8 @@
         <listitem>
           <para>JSON</para>
 
-          <para><programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"insert":{"out-identifier":"john","return-object":false,"object":{"org.drools.test.Person":{"name":"john","age":25}}}}}}
-</programlisting></para>
+          <programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"insert":{"out-identifier":"john","return-object":false,"object":{"org.drools.test.Person":{"name":"john","age":25}}}}}}
+</programlisting>
 
           <para></para>
         </listitem>
@@ -105,7 +106,7 @@
         <listitem>
           <para>JAXB</para>
 
-          <para><programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
+          <programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
 &lt;batch-execution lookup="ksession1"&gt;
     &lt;insert out-identifier="john"&gt;
         &lt;object xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
@@ -113,7 +114,7 @@
             &lt;name&gt;john&lt;/name&gt;
         &lt;/object&gt;
     &lt;/insert&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-ModifyCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-ModifyCommand.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-ModifyCommand.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -56,14 +56,15 @@
     </listitem>
 
     <listitem>
-      <para>Command creation<programlisting>BatchExecutionCommand command = new BatchExecutionCommand();
+      <para>Command creation</para>
+      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 ModifyCommand modifyCommand = new ModifyCommand();
 modifyCommand.setFactHandleFromString("123:234:345:456:567");
 List&lt;Setter&gt; setters = new ArrayList&lt;Setter&gt;();
 setters.add(new SetterImpl("age", "30"));
 modifyCommand.setSetters(setters);
-command.getCommands().add(modifyCommand);</programlisting></para>
+command.getCommands().add(modifyCommand);</programlisting>
 
       <para></para>
     </listitem>
@@ -75,11 +76,11 @@
         <listitem>
           <para>XStream</para>
 
-          <para><programlisting>&lt;batch-execution lookup="ksession1"&gt;
+          <programlisting>&lt;batch-execution lookup="ksession1"&gt;
   &lt;modify fact-handle="0:234:345:456:567"&gt;
     &lt;set accessor="age" value="30"/&gt;
   &lt;/modify&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>
@@ -87,18 +88,18 @@
         <listitem>
           <para>JSON</para>
 
-          <para><programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"modify":{"fact-handle":"0:234:345:456:567","setters":{"accessor":"age","value":30}}}}} </programlisting></para>
+          <programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"modify":{"fact-handle":"0:234:345:456:567","setters":{"accessor":"age","value":30}}}}} </programlisting>
         </listitem>
 
         <listitem>
           <para>JAXB</para>
 
-          <para><programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
+          <programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
 &lt;batch-execution lookup="ksession1"&gt;
     &lt;modify fact-handle="0:234:345:456:567"&gt;
         &lt;set value="30" accessor="age"/&gt;
     &lt;/modify&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-QueryCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-QueryCommand.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-QueryCommand.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -65,14 +65,13 @@
     </listitem>
 
     <listitem>
-      <para>Command creation<programlisting>BatchExecutionCommand command = new BatchExecutionCommand();
+      <para>Command creation</para>
+      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 QueryCommand queryCommand = new QueryCommand();
 queryCommand.setName("persons");
 queryCommand.setOutIdentifier("persons");
-command.getCommands().add(queryCommand);</programlisting></para>
-
-      <para></para>
+command.getCommands().add(queryCommand);</programlisting>
     </listitem>
 
     <listitem>
@@ -82,9 +81,9 @@
         <listitem>
           <para>XStream</para>
 
-          <para><programlisting>&lt;batch-execution lookup="ksession1"&gt;
+          <programlisting>&lt;batch-execution lookup="ksession1"&gt;
   &lt;query out-identifier="persons" name="persons"/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>
@@ -92,20 +91,18 @@
         <listitem>
           <para>JSON</para>
 
-          <para><programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"query":{"out-identifier":"persons","name":"persons"}}}} </programlisting></para>
+          <programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"query":{"out-identifier":"persons","name":"persons"}}}} </programlisting>
 
-          <para></para>
         </listitem>
 
         <listitem>
           <para>JAXB</para>
 
-          <para><programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
+          <programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
 &lt;batch-execution lookup="ksession1"&gt;
     &lt;query name="persons" out-identifier="persons"/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
-          <para></para>
         </listitem>
       </itemizedlist>
     </listitem>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-RetractCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-RetractCommand.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-RetractCommand.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -54,21 +54,21 @@
         <listitem>
           <para>Create the Fact Handle from a string</para>
 
-          <para><programlisting>BatchExecutionCommand command = new BatchExecutionCommand();
+          <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 RetractCommand retractCommand = new RetractCommand();
 retractCommand.setFactHandleFromString("123:234:345:456:567");
-command.getCommands().add(retractCommand);</programlisting></para>
+command.getCommands().add(retractCommand);</programlisting>
         </listitem>
 
         <listitem>
           <para>Set the Fact Handle that you received when the object was
           inserted</para>
 
-          <para><programlisting>BatchExecutionCommand command = new BatchExecutionCommand();
+          <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 RetractCommand retractCommand = new RetractCommand(factHandle);
-command.getCommands().add(retractCommand);</programlisting></para>
+command.getCommands().add(retractCommand);</programlisting>
         </listitem>
       </orderedlist>
 
@@ -82,30 +82,27 @@
         <listitem>
           <para>XStream</para>
 
-          <para><programlisting>&lt;batch-execution lookup="ksession1"&gt;
+          <programlisting>&lt;batch-execution lookup="ksession1"&gt;
   &lt;retract fact-handle="0:234:345:456:567"/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
-          <para></para>
         </listitem>
 
         <listitem>
           <para>JSON</para>
 
-          <para><programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"retract":{"fact-handle":"0:234:345:456:567"}}}}</programlisting></para>
+          <programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"retract":{"fact-handle":"0:234:345:456:567"}}}}</programlisting>
 
-          <para></para>
         </listitem>
 
         <listitem>
           <para>JAXB</para>
 
-          <para><programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
+          <programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
 &lt;batch-execution lookup="ksession1"&gt;
     &lt;retract fact-handle="0:234:345:456:567"/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
-          <para></para>
         </listitem>
       </itemizedlist>
     </listitem>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-SetGlobalCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-SetGlobalCommand.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-SetGlobalCommand.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -72,16 +72,15 @@
     </listitem>
 
     <listitem>
-      <para>Command creation<programlisting>BatchExecutionCommand command = new BatchExecutionCommand();
+      <para>Command creation</para>
+      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 SetGlobalCommand setGlobalCommand = new SetGlobalCommand();
 setGlobalCommand.setIdentifier("helper");
 setGlobalCommand.setObject(new Person("kyle", 30));
 setGlobalCommand.setOut(true);
 setGlobalCommand.setOutIdentifier("output");
-command.getCommands().add(setGlobalCommand);</programlisting></para>
-
-      <para></para>
+command.getCommands().add(setGlobalCommand);</programlisting>
     </listitem>
 
     <listitem>
@@ -91,30 +90,27 @@
         <listitem>
           <para>XStream</para>
 
-          <para><programlisting>&lt;batch-execution lookup="ksession1"&gt;
+          <programlisting>&lt;batch-execution lookup="ksession1"&gt;
   &lt;set-global identifier="helper" out-identifier="output"&gt;
     &lt;org.drools.test.Person&gt;
       &lt;name&gt;kyle&lt;/name&gt;
       &lt;age&gt;30&lt;/age&gt;
     &lt;/org.drools.test.Person&gt;
   &lt;/set-global&gt;
-&lt;/batch-execution&gt;</programlisting></para>
-
-          <para></para>
+&lt;/batch-execution&gt;</programlisting>
         </listitem>
 
         <listitem>
           <para>JSON</para>
 
-          <para><programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"set-global":{"identifier":"helper","out-identifier":"output","object":{"org.drools.test.Person":{"name":"kyle","age":30}}}}}}</programlisting></para>
+          <programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"set-global":{"identifier":"helper","out-identifier":"output","object":{"org.drools.test.Person":{"name":"kyle","age":30}}}}}}</programlisting>
 
-          <para></para>
         </listitem>
 
         <listitem>
           <para>JAXB</para>
 
-          <para><programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
+          <programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
 &lt;batch-execution lookup="ksession1"&gt;
     &lt;set-global out="true" out-identifier="output" identifier="helper"&gt;
         &lt;object xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
@@ -122,9 +118,8 @@
             &lt;name&gt;kyle&lt;/name&gt;
         &lt;/object&gt;
     &lt;/set-global&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
-          <para></para>
         </listitem>
       </itemizedlist>
     </listitem>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-SignalEventCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-SignalEventCommand.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-SignalEventCommand.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -62,15 +62,14 @@
     </listitem>
 
     <listitem>
-      <para>Command creation<programlisting>BatchExecutionCommand command = new BatchExecutionCommand();
+      <para>Command creation</para>
+      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 SignalEventCommand signalEventCommand = new SignalEventCommand();
 signalEventCommand.setProcessInstanceId(1001);
 signalEventCommand.setEventType("start");
 signalEventCommand.setEvent(new Person("john", 25));
-command.getCommands().add(signalEventCommand);</programlisting></para>
-
-      <para></para>
+command.getCommands().add(signalEventCommand);</programlisting>
     </listitem>
 
     <listitem>
@@ -80,14 +79,14 @@
         <listitem>
           <para>XStream</para>
 
-          <para><programlisting>&lt;batch-execution lookup="ksession1"&gt;
+          <programlisting>&lt;batch-execution lookup="ksession1"&gt;
   &lt;signal-event process-instance-id="1001" event-type="start"&gt;
     &lt;org.drools.pipeline.camel.Person&gt;
       &lt;name&gt;john&lt;/name&gt;
       &lt;age&gt;25&lt;/age&gt;
     &lt;/org.drools.pipeline.camel.Person&gt;
   &lt;/signal-event&gt;
-&lt;/batch-execution&gt;</programlisting></para>
+&lt;/batch-execution&gt;</programlisting>
 
           <para></para>
         </listitem>
@@ -95,15 +94,13 @@
         <listitem>
           <para>JSON</para>
 
-          <para><programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"signal-event":{"process-instance-id":1001,"@event-type":"start","event-type":"start","object":{"org.drools.pipeline.camel.Person":{"name":"john","age":25}}}}}}</programlisting></para>
-
-          <para></para>
+          <programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"signal-event":{"process-instance-id":1001,"@event-type":"start","event-type":"start","object":{"org.drools.pipeline.camel.Person":{"name":"john","age":25}}}}}}</programlisting>
         </listitem>
 
         <listitem>
           <para>JAXB</para>
 
-          <para><programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
+          <programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
 &lt;batch-execution lookup="ksession1"&gt;
     &lt;signal-event event-type="start" process-instance-id="1001"&gt;
         &lt;event xsi:type="person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
@@ -111,9 +108,7 @@
             &lt;name&gt;john&lt;/name&gt;
         &lt;/event&gt;
     &lt;/signal-event&gt;
-&lt;/batch-execution&gt;</programlisting></para>
-
-          <para></para>
+&lt;/batch-execution&gt;</programlisting>
         </listitem>
       </itemizedlist>
     </listitem>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-StartProcessCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-StartProcessCommand.xml	2010-07-26 12:00:00 UTC (rev 34180)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-StartProcessCommand.xml	2010-07-26 12:19:24 UTC (rev 34181)
@@ -65,13 +65,12 @@
     </listitem>
 
     <listitem>
-      <para>Command creation<programlisting>BatchExecutionCommand command = new BatchExecutionCommand();
+      <para>Command creation</para>
+      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 StartProcessCommand startProcessCommand = new StartProcessCommand();
 startProcessCommand.setProcessId("org.drools.task.processOne");
-command.getCommands().add(startProcessCommand);</programlisting></para>
-
-      <para></para>
+command.getCommands().add(startProcessCommand);</programlisting>
     </listitem>
 
     <listitem>
@@ -81,36 +80,28 @@
         <listitem>
           <para>XStream</para>
 
-          <para><programlisting>&lt;batch-execution lookup="ksession1"&gt;
+          <programlisting>&lt;batch-execution lookup="ksession1"&gt;
   &lt;start-process processId="org.drools.task.processOne"/&gt;
-&lt;/batch-execution&gt;</programlisting></para>
-
-          <para></para>
+&lt;/batch-execution&gt;</programlisting>
         </listitem>
 
         <listitem>
           <para>JSON</para>
 
-          <para><programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"start-process":{"process-id":"org.drools.task.processOne"}}}} </programlisting></para>
-
-          <para></para>
+          <programlisting>{"batch-execution":{"lookup":"ksession1","commands":{"start-process":{"process-id":"org.drools.task.processOne"}}}} </programlisting>
         </listitem>
 
         <listitem>
           <para>JAXB</para>
 
-          <para><programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
+          <programlisting>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
 &lt;batch-execution lookup="ksession1"&gt;
     &lt;start-process processId="org.drools.task.processOne"&gt;
         &lt;parameter/&gt;
     &lt;/start-process&gt;
-&lt;/batch-execution&gt;</programlisting></para>
-
-          <para></para>
+&lt;/batch-execution&gt;</programlisting>
         </listitem>
       </itemizedlist>
     </listitem>
   </itemizedlist>
-
-  <para></para>
 </section>



More information about the jboss-svn-commits mailing list