Hi Everyone !
I work with this alfresco version : All-In-One (AIO) project for SDK 4.0
I have created a new Doclib Action that create a new file ! (so with new nodeRef !)
My problem is : in alfreso portal, i always stay on the current nodeRef and i would like redirect to the new nodeRef :
http://localhost:8180/share/page/site/test/document-details?nodeRef=workspace://SpacesStore/NEW_NODEREF_GUID
Is it possible to redirect to the newNode in java ?
@Override
protected void executeImpl(Action action, NodeRef actionedUponNodeRef) {
if (serviceRegistry.getNodeService().exists(actionedUponNodeRef) == true) {
NodeService nodeService = serviceRegistry.getNodeService();
try {
NodeRef newNode = Tools.updateDocument(
nodeService, serviceRegistry.getFileFolderService(),
actionedUponNodeRef, propsNewDoc, propsOldDoc);
//TODO redirection to newNode
} catch (Exception e) {
throw new WorkflowException(e.getMessage());
}
}
}Thank you for your answer !