[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1121) Operator field and the fact's variable field required in the "then" part of the rule
sreeni sabapathy (JIRA)
jira-events at lists.jboss.org
Mon Aug 27 03:29:22 EDT 2007
[ http://jira.jboss.com/jira/browse/JBRULES-1121?page=comments#action_12373937 ]
sreeni sabapathy commented on JBRULES-1121:
-------------------------------------------
The calculation box does not take in any alphabets,but it takes in special characters and numerals, as the "SI" is of float data type.
If the variable is of string type it takes all the keys.
can you please suggest me in how to remove the data type validation in jbrms.
What my idea is, in the "when" part, we have an option of "bound with variable", similar to it can we have "computation on variables" in "then" part.The functionality will be same, just the difference in usage.
> Operator field and the fact's variable field required in the "then" part of the rule
> ------------------------------------------------------------------------------------
>
> Key: JBRULES-1121
> URL: http://jira.jboss.com/jira/browse/JBRULES-1121
> Project: JBoss Rules
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Eclipse IDE, drools-brms
> Affects Versions: 4.0.0.GA
> Environment: drools-jbrms stand alone and Eclipse drools-4.0.0
> Reporter: sreeni sabapathy
> Assigned To: Michael Neale
> Priority: Minor
> Fix For: FUTURE
>
> Original Estimate: 10 minutes
> Remaining Estimate: 10 minutes
>
> In the drools-jbrms standalone and even in the eclipse plugin version of "New guided drl file"
> the "then" part of the rule has the limitation of assigning the fixed value to the fact's variable.
> But in many condition the the value of the variable depends upon the value of another variable.
> I have taken a simple example for explanation.
> For calcluating simple interest
> SI = P*T*R/100
> Now in the rule file if the
> "when" condition as the check of " Calcluation type (simple ineterst or compound interest)"
> "then" part having SI,
> At the present drool-jbrms definition the
> "then" part has SI = text field.
> But my requirement is to look up the class variable "principle", "Time" and the "Rate" and then calculate, not just
> assign some fixed values.
> In a simple sentence I would appreciate if the drools- jbrms has the options related to "when" in the "then" part of the rule also.
--
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