Skip to Content
0
Former Member
Jan 14, 2008 at 01:48 PM

execution of model object which has a parameter value with cardinality 0:n

19 Views

Hello,

I have the following context node in the component controller with context binding:

RequestCreateIncident

---ResponseCreateIncident

------incidentHeader (cardinality 1:1)

------invPersons(cardinality 0:n)

------ResponseCreateIncident

----


returnCreateIncident

In the view controller context I mapped this to the component controller context.

The node involvedPersons I fill in this way:

WDCopyService.copyElements(wdContext.nodeInjuredPersons(), wdContext.nodeInvPersons());

The nodes injuredPersons and invPersons are from same model class.

If I debug this the elements of injuredPersons will be copied to invPersons. But during the execution of RequestCreateIncident with wdContext.currentRequestCreateIncidentElement().modelObject().execute(); the invPersons didn't arrive in the EJB-method.

The method looks like this: public String createIncident(IncidentHeader incidentHeader, List<Person> invPersons)

But the incidentHeader will arrive.

What's the problem?

Regards,

Armin