Dear Team,
Can you please support here.
Query 1 :
I am trying to unlock the page as well as the children pages under the folder . But the page is stuck with In workflow
I am attaching the screenshots below.
![UnlockWorkflow.png UnlockWorkflow.png](https://community.crownpeak.com/t5/image/serverpage/image-id/4539i61A1DC3F7785B76E/image-size/large?v=v2&px=999)
![page.png page.png](https://community.crownpeak.com/t5/image/serverpage/image-id/4540i3856580614339352/image-size/medium?v=v2&px=400)
Code :
se = context.getElement();
List pages = se.getChildren(Page.class, true).toList();
for(Page page : pages) {
try {
if(page instanceof Page) {
// reset recursive lock
context.logInfo("writelock gelockt");
page.setColor(java.awt.Color.BLACK);
page.setWriteLock(false);
page.setLock(false);
}
} catch (Exception e) {
context.logError(log + " Error: ",e);
e.printStackTrace();
}
}
se.setLock(false);
// non recursive lock, normal state during workflow
se.setLock(true, false);
//context.doTransition("End");
Anything wrong here . please support.Thank you!
Query 2 :
When iam trying to Edit a locked page the Message is pop up "Information
The object with ID... is marked in the workflow "read only". Editing is therefore not possible!" instead of "read only "
i need to modify as "Translation in progress" . Is it possible to override the default message ?
![Edit Message.png Edit Message.png](https://community.crownpeak.com/t5/image/serverpage/image-id/4541iFF21FB776CB06A01/image-size/medium?v=v2&px=400)
Please support.Thank you in advance!