Hi John, What leads you to think that it wouldn't be possible? Note that in the code you give, you are missing a closing parentheses, your user-defined Jess function name starts with a capital letter (which is unusual since this syntax is reserved for denoting class names), and there is no Jess keyword or function named "calling". Are you getting some kind of error message?
-- Cheers, Jason ---------------------------------------------------------- Morris Technical Solutions LLC [email protected] (517) 304-5883 On Wed, Mar 10, 2010 at 11:13 AM, John Chrysakis <[email protected]>wrote: > > Hello, > > I need your help on a quite simple rule > Simply I need to get a value from the bean property getDisplayRooms and to > pass it as argument to my jess-user-defined function ShowContent > > Is it possible? > > > (defrule ProfileService-rule-2 > > (CurrentEvent {nameofevent == "ProfileUpdated"}) > (CurrentEvent (emmiterofevent ?username) (infoofevent ?newmodel)) > (User (OBJECT ?usr) {name == ?username}) > > => > (?usr setModel ?newmodel) > (update ?usr) > ???????????????? (bind ?newrooms (?usr getDisplayRooms)) > (calling ShowContent ?newrooms) > > > > Thank you in advance, > > John. > > > > -------------------------------------------------------------------- > To unsubscribe, send the words 'unsubscribe jess-users [email protected]' > in the BODY of a message to [email protected], NOT to the list > (use your own address!) List problems? Notify [email protected]. > -------------------------------------------------------------------- > >
