CMDBuild Forum

How to automatically create new card or update card in other class

Dear CMDTeam,

 

Now I'm testing your cmdbuild ver 2.3.4

i'm already create two classes , AssetsMaster which hold all assets data and PurchaseOrders which hold purchase data of all assets.

I'm triying to connect these two classes, so when purchase order are completely created then automatically create new card into AssetsMaster class or

if the item already exists in assets master, it will automatically update / increment its amount of stock in assets master class.

 

So it's like trigger in database. or event when the button is pressed .

 

I will be very gratefull and thanks you if you can give me explanation about how to do that.

 

Thank you very much

 

 

You can create triggers on the DB, but the best solution is to create a wizard using the of CMDBuild workflow mechanisms:
http://www.cmdbuild.org/en/progetto/funzionalita/motore-di-workflow
http://www.cmdbuild.org/en/documentazione/manuali/workflow-manual

CMDBuild Team