-
Bug
-
Resolution: Done
-
Major
-
None
-
6.0.3
-
None
Description of problem:
As per the documentation
http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html_single/index.html#d0e9051
drools is predefined variable, similar to kcontext which is available for usage - in RHS for example.
business-central is able to resolve kcontext but can't resolve drools variable,
Version-Release number of selected component (if applicable):
BPMS 6.0.3+rp#2
How reproducible:
always
Steps to Reproduce:
1. Create Guided Rule with drools variable used in RHS, i.e.:
1. | import java.lang.Number;
2. |
3. | rule "MyGuidedRule"
4. | dialect "mvel"
5. | when
6. | eval( true )
7. | then
8. | drools.setFocus( "whatever" );
9. | end
2. Save/validate/F5/re-open
3. Popup with following content is presented:
"ERROR: Could not find type for variable drools"
Actual results:
It is not possible to use drools variable in RHS in Guided Rule
Expected results:
It is possible to use drools variable in RHS in Guided Rule
Additional info:
The workaround is to use kcontext variable. Unfortunately, that's not possible due to
https://bugzilla.redhat.com/show_bug.cgi?id=1195241
So the workaround is to use plain DRL. Please have BZ-1195241 in mind when working on this.
- is related to
-
RHBPMS-809 kcontext usage in Free Form DRL of RHS breaks the Guided Rule
- Verified
- relates to
-
RHBPMS-809 kcontext usage in Free Form DRL of RHS breaks the Guided Rule
- Verified