CMDBuild Forum

CMDBuild and transictions

Hello, is it possible to use the transiction with script BSH?

I noticed that if an activity in the workflow I use different scripts created and ones fails, my database remains inconsistent. The transiction could resolve it.
Any idea?
Thank you.
Hi, shark 4.4 supports BSH scripts, but the context is slightly different from the scripts.  I'm not sure that the object cmdb is present in the transition context.
Btw, if you need this feature only to manage a script failure, maybe the right choice is handle the exception using java try/catch.
 
Thanks for the answer.
I would like to use transactions only for insert/update query at the same time.
Unfortunately, the object cmdb isn't present in the transition context.
I must insert informations on more table card at the same time or the workflow must not do anything.
For the errors I used try/catch yet.
 
 
Previously Tecnoteca wrote:
Hi, shark 4.4 supports BSH scripts, but the context is slightly different from the scripts.  I'm not sure that the object cmdb is present in the transition context.
Btw, if you need this feature only to manage a script failure, maybe the right choice is handle the exception using java try/catch.