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
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.
View this message in context:
Sent from the drools - user mailing list archive at Nabble.com