Hi,
if your collection is in attribute myCollection, you need
getMyColletion/setMyCollection.
and then you create a literal = (a,b,c]
Depending on which version of Guvnor (5.3 5.4 and 5.5), there is a way to
do guided list.
It should work (does for me)
Cheers
Nicolas
2013/1/17 dmoreno <josedavidmj-compras(a)yahoo.es>
I have imported a POJO model jar in Guvnor. The jar is made up of
typical
data transfer objects, with properties accessible through getters and/or
setters.
Some of those properties are collections, only accessible through getters,
and therefore, they can only be modified through the usual collection
methods: add, remove, and so on.
Then I have created some business rules using facts from the imported
model.
What I haven't found is a way to set up such collection fields in the Given
section of a Test Scenario. Trying to assign a literal value gives the
error:
"Unable to run the scenario.
[Error: could not access/write property …]"
Does anyone know any way to achieve that goal? Bear in mind that I don't
have access to the POJO model source code.
Thanks in advance.
--
View this message in context:
http://drools.46999.n3.nabble.com/Unable-to-modify-collection-fields-in-G...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users