-
Bug
-
Resolution: Obsolete
-
Minor
-
None
-
6.x.x
-
None
Description of problem:
Even if the model class is properly imported in the Import section, this class can't be resolved in the gateway expression
Version-Release number of selected component (if applicable):
bpm 6.0.2
How reproducible:
always
Steps to Reproduce:
1. Create model class using Data Modeler
org.redhat.gss.Person
attribute name:String
2. Create new process, with following structure:
start->xorgateway--expression-> script -> end
--expression-> script -> end
3. COnfigure the important statements, on the process level, like this:
org.redhat.gss.Person|default
4. Create process variable person:Person
5. Now implement one of the expression, like this:
return KieFunctions.contains(person.getName(),"admin");
6. Save the process
7. Following can be observed
Person cannot be resolved to a type Person cannot be resolved to a type
Actual results:
Import statements are not respected in the Gateway Expression
Expected results:
Import statements are respected in the Gateway Expression
Additional info:
workaround is to define process variable using FQCN, i.e.
person:org.redhat.gss.Person
instead of
person:Person