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

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -