CMDBuild Forum

Create card based on another class attribute

I would like to known if someone can help me to handle this issue.
I have a class name Switch and another class name Interfaces and a relation(domain) N:N between both classes

In class “Switch” I have an attribute “Model” (Lookup type) which I have to choose the right switch model.
Based on the switch model that I select from this lookup type attribute, I need to create in class “Interfaces” all the interfaces from this type of switch.

I would like to not do this manually.

I don´t known but after save the switch card, a script could be run ? That script could do that task (create interfaces in class ‘interfaces’).

I have to consider that for which type of switch model I have different number of interfaces and format

Anyone have an ideia on how I can make this come true?

Thanks in advanced