Creating sub-entity and sub-sub-entity at the same time - association problem

0
I have a problem with creating associacions between entities in microflow. I have three entities with these relationships in the domain model: A <- [1][*] - B <- [1][*] - C   When I click on a button in the form (for A), I want to create a B related to A and (at the same time) a C associated to the newly created B.   Simple action (within one microflow): 1) create B 2) create a association to A (via “change object”) which A is passed to the microflow as a parameter 3) create C 4) create a association between C and A (via change object)   Result? 1) B is created – OK 2) A - B association is created – OK 3) C is created – OK 4) but the B - C association is NOT CREATED – not OK :(   Anyone have an idea why? Am I doing something wrong?
asked
5 answers
3

Hey Marc,

As you told in your question, the association of C is with B (not with A), so in the change member of C, make its association with B, and you will get your issue resolved.

It's because C has an association with B.

 

Let me know if you face any issues.

Hope it helps!

 

 

answered
0

@Utku:

answered
0

it works actually

 

 

 

answered
0

I do everything exactly as you do and for reasons I don't understand, it doesn't work for me :/.
I have the same relationship defined in Domain Model, the same process in microflow - a new object (ExtraProfileData) is created but I don't know why it is not associated with ProfileSM :/ On the other hand the association between ProfileSM and User is created correctly.
Just to be sure, I even created the data copied from ProfileSM to ExtraProfileData after creating the first one and this data is indeed in the second one.

Oh well, I'll keep thinking about it, but I'm tearing my hair out alreadyOh well, I'll keep thinking about it, but I'm tearing my hair out already

answered
0

Hi Marc,

 

In step 3, create C with an association to B an no step 4.

 

Go Make It

answered