1 Reply Latest reply on Oct 4, 2012 1:08 AM by heenac

    How to conditionally execute an action

    heenac

      Hi,

       

      Is there a way in JBoss ESB so that an action can be conditionally executed.

       

      My requirement is to conditionally transform an XML if the incoming XML has an attribute resubmitmode with tag value as true. Is there any way to do this with SmooksAction. I want to avoid the transformation if the tag value is false.

       

      <p:resubmitMode>true</p:resubmitMode>

       

      I did a lot of R&D but could not get this working. One alternative taht came to mind was to add a transformation/XSLT rule but not sure if that would work

       

      I am using JBOSS SOA Enterprise platform 5.3 and ESB 4.11

       

      Kindly help

       

      Thanks

      Heena

        • 1. Re: How to conditionally execute an action
          heenac

          Some additional information, pasting snippet of jboss-esb.xml. smooks-res.xml contains the transformation rules.

           

          <action class="org.jboss.soa.esb.smooks.SmooksAction" name="simple-transform">

               <property name="smooksConfig" value="/smooks-res.xml"/>

               <!-- property name="reportPath" value="/zap/smooks-report.html" / -->

              </action>