<transition name="delete" destinationState="deleted">
<description>Move document to trash (temporary delete)</description>
</transition>
+ <transition name="undelete" destinationState="project">
+ <description>Undelete the document.</description>
+ </transition>
</transitions>
<states>
<state name="project" description="Default state" initial="true">
</transitions>
</state>
<state name="deleted" description="Document is deleted">
- <!-- No transitions allowed from locked state. -->
+ <transitions>
+ <transition>undelete</transition>
+ </transitions>
</state>
</states>
</lifecycle>
<transition name="delete" destinationState="deleted">
<description>Move document to trash (temporary delete)</description>
</transition>
+ <transition name="undelete" destinationState="project">
+ <description>Undelete the document.</description>
+ </transition>
</transitions>
<states>
<state name="project" description="Default state" initial="true">
<!-- No transitions allowed from locked state. -->
</state>
<state name="deleted" description="Document is deleted">
- <!-- No transitions allowed from locked state. -->
+ <transitions>
+ <transition>undelete</transition>
+ </transitions>
</state>
</states>
</lifecycle>
try {
assertStatusCode(res, testName);
PermissionsList list = res.getEntity(PermissionsList.class);
- int EXPECTED_ITEMS = 2 + 2; //2 seeded base resource permissions and 2 workflow-related permissions
+ int EXPECTED_ITEMS = 2 + 4; //2 seeded base resource permissions and 4 workflow-related permissions
int actual = list.getPermission().size();
if (logger.isDebugEnabled()) {
logger.debug(testName + ": received = " + actual