After digging through the source code I realized that in the Test Scenario
you can assign previously created instance to complex type using "=" prefix.
So if you created object instance engineInstance, you can assign this
instance to a car object instance using engine: "=engineInstance" (without
the quotes).
Cheers,
Libor
Libor Nenadál wrote:
Garner, Shawn-3 wrote:
>
> 2) How do you use the test scenarios with complex object structures?
> -eg Create a fact in working memory that has another Object in it which
> in turn has a list of Objects in it.
> -Seems like any Fact in working memory is assumed to only have only
> primitive values like Strings or numbers.
> -We would like a more depth of objects where objects have a deep
> relationship to other objects at least 2-4 levels deep.
>
I am also experiencing this problem. It seems that currently you cannot
create instance of a complex structure in Guvnor test scenario. That is a
show stopper for me because business users are not able to validate their
changes in test scenarios. :-(
Is it possible to achieve this by manual edit of the scenario XML file? I
unsuccessfully searched for the scenario schema in the sources but I am
not experienced in GWT.
Thanks,
Libor Nenadál
--
View this message in context:
http://www.nabble.com/questions-on-guvnor-and-drools-5.0-tp23821810p25007...
Sent from the drools - user mailing list archive at
Nabble.com.