[Windup-users] XML Rule with otherwise action

Gilles Bardouillet gilles.bardouillet at atos.net
Fri May 22 06:14:02 EDT 2015



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.




More information about the Windup-users mailing list