Notes |
(0000071)
administrator (administrator)
2011-05-17 17:23
|
Possible with the following limitations:
-Iterations can be archived for comparison, for change trace and for change rollbacks.
-Object iterations cannot be retrieved with global searches (only the last iteration will be compared with query filters)
-Cannot recover overwritten object attached files |
|
(0000147)
administrator (administrator)
2012-08-08 16:57
edited on: 2012-08-08 17:06
|
Solution to this requirements is partially implemented as follows:
the new "undo" option has been added for objects (in the lifecycle definition) and links (in the linktype definition)
lifecycle edit <LCNAME> ... [!|not]undo... ;
lifecycle show <LCNAME> get { ... undo ... } token ... ;
linktype edit <LTNAME> ... [!|not]undo... ;
linktype show <LTNAME> get { ... undo... } token ... ;
If the "undo" flag is enabled, each modification performed on the object/link generates a new iteration where the previous values for changed properties are stored.
To get the last or current iteration number use:
object show <id/CNR> get { ... iteration ... } token ... ;
link show <id> get { ... iteration ... } token ... ;
or the SDK method for ObjectObj / Link classes:
int getCurrentIteration(Framework framework)
It is also possible to retrieve the values stored for each iteration:
object show <id/CNR> get { ... iteration[<number>] ... } token ... ;
link show <id> get { ... iteration[<number>] ... } token ... ;
where <number> is the number of iteration
The same result can be obtained with the SDK method:
String getIteration(int iterNumber,Framework framework)
|
|
(0000148)
administrator (administrator)
2012-08-08 17:13
edited on: 2012-08-08 17:14
|
The "undo" action is similar to the other user actions:
- it can be enabled in the lifecycle/stage for user/team/assignments
- it can raise check / action triggers to extend the basic behaviour
- it can be traced in the history table for both objects and links
Users enabled to perform the "undo" operation can execute the OOQL commands:
object undo <id/CNR>;
link undo <id>;
to go back to the previous status; or the following:
object undo <id/CNR> iteration[<number>];
link undo <id> iteration[<number>];
to return to the situation before the iteration N. <number>
|
|