[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1155) In Decision Table actions, cannot reference variables that were not referenced in LHS
Thomas Hehl (JIRA)
jira-events at lists.jboss.org
Mon Sep 17 07:51:11 EDT 2007
[ http://jira.jboss.com/jira/browse/JBRULES-1155?page=comments#action_12377098 ]
Thomas Hehl commented on JBRULES-1155:
--------------------------------------
So say you have a "variable" which is really a service, you could pass in "answerService". Then in the actions of the rules, you can do:
answerService.setAnswer(true); etc...
[ Show » ]
Michael Neale [15/Sep/07 01:09 AM] If you use Variables - you can set a type and a name, and then pass this into the working memory (stateful session) - the variables is then accessible on the RHS of a rule. So say you have a "variable" which is really a service, you could pass in "answerService". Then in the actions of the rules, you can do: answerService.setAnswer(true); etc...
Have you tested this? B/c this is how I got started down this road in the first place. I tried to do what you're suggesting and it didn't work unless the variable was defined on the LHS.
> In Decision Table actions, cannot reference variables that were not referenced in LHS
> -------------------------------------------------------------------------------------
>
> Key: JBRULES-1155
> URL: http://jira.jboss.com/jira/browse/JBRULES-1155
> Project: JBoss Rules
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Decision tables
> Affects Versions: 4.0.1
> Environment: Windows
> Reporter: Thomas Hehl
> Assigned To: Mark Proctor
> Priority: Minor
> Fix For: 4.0.2
>
>
> If I use a decision table to build rules for my application, there doesn't appear to be a way to store an answer on a variable that wasn't referenced in the LHS of the rule. This is because the reference to the object that must be built can only be defined in the LHS.
> I would like to be able to directly reference these "catcher" objects from the action to store the result even if they were not needed as part of the LHS.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list