Hi, I create a lenyaDoc in my code and commit the session : my document is in the authoring area.
After that I want to publish my lenyaDoc. I try many piece of code, but nothing work... Can you help me please ? org.apache.cocoon.environment.Session cocoonSession = request.getSession(); Identity identity = (Identity) cocoonSession.getAttribute(Identity.class.getName()); Session session = RepositoryUtil.createSession(this.manager, identity, true); //Session session = RepositoryUtil.createSession(this.manager, null); //Session session = lenyaDoc.getRepositoryNode().getSession(); WorkflowUtil.invoke(this.manager, session, getLogger(), lenyaDoc, "submit"); WorkflowUtil.invoke(this.manager, session, getLogger(), lenyaDoc, "publish"); session.commit(); Have good day --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
