java - Drools, if one of multiple values not equals null then assign this values to variable -
drools, if 1 of multiple values not equals null assign values variable
how can resolve logic accodting drools syntax ??
when man ($vallet : man.vallet != null || man.getattribute("vallet") != null) ...
only 1 wont equal null
you can rewrite rule bind either value of vallet
or getattribute("vallet")
based on 1 not null:
rule when man( $vallet : vallet != null ) or man( $vallet : getattribute("vallet") != null ) ...
Comments
Post a Comment