When trying to save additional properties of an NMRelation via MultipleAction, the values are not saved to the database.
This is quite hard to read, therefore a formatted Version:
controller: TerminateController
data : {
"action0": {
"usr_action":"associate",
"oid":"ChiNodeTarget:26195",
"associateoids":"ChiNodeSource:26203"
,"associateAs":"child"
},
"action1": {
"usr_action":"save",
"{last_created_oid:NMChiNodeChiNode}": {
"oid":"{last_created_oid:NMChiNodeChiNode}",
"type":"NMChiNodeChiNode",
"values": {
"1": {
"relationType":"generalization",
"Name":"Generalization"
}
}
}
}
}
request_format: JSON
response_format: JSON
usr_action: multipleAction
Expected behaviour: The NMRelation should be created and the relationType and Name should be set to given values
Observed behaviour: The NMRelation is created, but the properties are not saved.
This problem is related to the roles concept. If you replace NMChiNodeChiNode by NodeSourceEnd it works.
Nevertheless this should work regardless of the current object role and will be fixed in a future revision.