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