Ok, 
I solved this issue.

I solved reinstalling the workflow module, by removing the configuration.

After this, I had to manually remove a lot of orphan nodes from JCR, using the 
rescue Interactive Groovy Console Servlet.

The uuid and scripts I used are the following (Magnolia 5.2.3, keep attention, 
because paths and uuids can be different for other versions):

[code]
/*
First Script drop the following UUID, please run this for each item. 
7d514795-8b8f-4b6f-b9c9-e31be548eafe
e05c0894-8409-4ed0-9770-f94f1cc5499e
17d6eef7-483a-4ce8-8b3c-91dde741c35d
bad7c29c-5786-48a0-b792-b7b9263360e8
c77903a7-14ce-4192-a861-06d8bfb0adc4
ac73e423-277b-44c9-8867-a7286627524c
99fc2c07-f710-4046-a9f2-37af80169417
*/      

import info.magnolia.context.*;
import info.magnolia.*;
import info.magnolia.tools.*;
import info.magnolia.cms.util.*;

hm = MgnlContext.getSystemContext().getHierarchyManager("config"); // Change to 
appropriate workspace
node = 
hm.getContentByUUID("99fc2c07-f710-4046-a9f2-37af80169417").getJCRNode(); // 
Change to get the appropriate node
parent = node.getParent()

node.remove()
parent.save()

println 'Parent node'
DumperUtil.dump(parent) 

/*
First Script drop the following config path nodes, please run this for each 
item. 
/modules/pages/apps/pages/subApps/browser/actions/startPublication
/modules/pages/apps/pages/subApps/browser/actions/startPublicationRecursive
/modules/pages/apps/pages/subApps/browser/actions/startUnpublication
/modules/pages/apps/pages/subApps/browser/actions/startPublicationOfDeletion
/modules/pages/apps/pages/subApps/browser/actions/activate/params
/modules/pages/apps/pages/subApps/browser/actions/activateDeletion/params
/modules/pages/apps/pages/subApps/browser/actions/activateRecursive/params
/modules/pages/apps/pages/subApps/browser/actions/deactivate/params
/modules/pages/apps/pages/subApps/detail/actions/startPublication
/modules/pages/apps/pages/subApps/detail/actions/startUnpublication
*/

import info.magnolia.context.*;
import info.magnolia.*;
import info.magnolia.tools.*;
import info.magnolia.cms.util.*;

hm = MgnlContext.getSystemContext().getHierarchyManager("config"); // Change to 
appropriate workspace
node = 
hm.getContent("/modules/pages/apps/pages/subApps/detail/actions/startUnpublication").getJCRNode();
 // Change to get the appropriate node
parent = node.getParent()

node.remove()
parent.save()

println 'Parent node'
DumperUtil.dump(parent) 
[/code]

After this, I reinstalled the module and Magnolia told me to some other 
configuration warning. I followed instructions to fix the configuration as 
described in installation notes and publication started to work again, but 
without the workflow approval sep:

[code]
Magnolia Workflow Module (version 5.2.2)

    Property "commandName" was expected to exist at 
/modules/pages/commands/website/activate with value "versioned-activate" but 
has the value "workflow-activate" instead.
    Property "commandName" was expected to exist at 
/modules/pages/commands/website/deactivate with value "versioned-deactivate" 
but has the value "workflow-activate" instead.
    Property "messageView" was expected not to exist at 
/modules/pages/apps/pages/subApps/browser/actions/activate, but exists with 
value "pages:publish" and was going to be created with value "pages:publish".
    Property "messageView" was expected not to exist at 
/modules/pages/apps/pages/subApps/browser/actions/activateRecursive, but exists 
with value "pages:publish" and was going to be created with value 
"pages:publish".
    Property "messageView" was expected not to exist at 
/modules/pages/apps/pages/subApps/browser/actions/deactivate, but exists with 
value "pages:unpublish" and was going to be created with value 
"pages:unpublish".
    Property "class" was expected to exist at 
/modules/pages/apps/pages/subApps/browser/actions/activate with value 
"info.magnolia.ui.framework.action.ActivationActionDefinition" but has the 
value 
"info.magnolia.module.workflow.action.WorkflowPublicationActionDefinition" 
instead.
    Property "class" was expected to exist at 
/modules/pages/apps/pages/subApps/browser/actions/deactivate with value 
"info.magnolia.ui.framework.action.DeactivationActionDefinition" but has the 
value 
"info.magnolia.module.workflow.action.WorkflowPublicationActionDefinition" 
instead.
    Property "class" was expected to exist at 
/modules/pages/apps/pages/subApps/browser/actions/activateRecursive with value 
"info.magnolia.ui.framework.action.ActivationActionDefinition" but has the 
value 
"info.magnolia.module.workflow.action.WorkflowPublicationActionDefinition" 
instead.
[/code]

Thanks a lot, Davide.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=7891d30b-b25e-4bf9-93bd-6bb67aa9e273


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to