(0000144)
|
administrator
|
2012-08-08 15:51
(edited on: 2012-08-08 15:57) |
|
Added the new "checkupdate" option for objects (in the lifecycle definition) and links (in the linktype definition)
lifecycle edit <LCNAME> ... [!|not]checkupdate... ;
lifecycle show <LCNAME> get { ... checkupdate ... } token ... ;
linktype edit <LTNAME> ... [!|not]checkupdate... ;
linktype show <LTNAME> get { ... checkupdate... } token ... ;
If the "checkupdate" flag is enabled, each modification performed on the object/link increases an internal counter. When another user updates the instance, the sync counter that you read before appling your changes is not the same and the platform blocks the operation returning the message like: "Your instance is out-of-date, please reload it before apply changes"
It is possible to read the current value of sync counter in the following way:
object show <id/CNR> get { ... counter ... } token ... ;
link show <id> get { ... counter ... } token ... ;
when you need to update the instance you may use the "sync" option, reporting the previously read value:
object edit <id/CNR> sync <value> ... ;
link edit <id> sync <value> ... ;
|
|