assign a list type business variable

Hi;

According to your advice, I redid the BDM as follows:
AdtA04: business variable (com.company.model1.AdtA04). which contains as attributes:
Id_msg: string,
pid: PID (another business variable) and
obx: OBX (another business variable of type list)

attached my .bos project?

https://drive.google.com/open?id=1ji7SbJvBlZWlc4jUzjwn6BvPF-uTX7Ln

I do not understand where is the problem?

Hi,

From what I can see you are trying to affect a list with a single object: adt_A04.setObx takes a List<OBX> while the obx variable is of type OBX.

I do not know from logic perspective, but in term of code you can solve the compilation issue by doing Arrays.asList(obx) in the right hand-side of the operation.

Hope this helps,

Captain Bonita