Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-613

<otherwise> element rules do not actually create rules that could ever execute

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 2.3.0.Final
    • None
    • None

      Hi,
      
      I wrote an XML rule with an action specified in "otherwise" part, but
      the action is not launched when the condition is false :-(
      
      Here is my rule :
      <rule id="TagLib release">
                   <when>
                       <filecontent pattern="release" filename="{*}Tag.java" />
                   </when>
                   <otherwise>
                           <hint message="C7.1 : No release in Tag" effort="4" />
                   </otherwise>
      </rule>
      
      In overview panel, this xml rule is converted in
      addRule()
      .when(And.all(FileContent.matches(release).inFilesNamed({*}Tag.java).as(default))
      )
           .perform(new NoOp()
      )
      withId("TagLib release")
      
      It seems that "otherwise" action disappeared !
      
      Any tip ?
      
      
      Gilles.
      

            jsightle@redhat.com Jess Sightler
            lincolnthree Lincoln Baxter III (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: