Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem with "lbl.publish" transition when skip approval programmatically

Hi all ...

I am currently trying to "Skip Approval" programmatically by executing the "lbl.publish" transition, like this in a KM repository service:

IRepositoryServiceFactory repositoryServiceFactory =
   ResourceFactory.getInstance().getServiceFactory();

IStatemanagementManager statemanagementManager = 
    (IStatemanagementManager) repositoryServiceFactory.getRepositoryService(resource, IWcmConst.STATEMANAGEMENT_SERVICE);

IStatemanagementResource sResource = 
	statemanagementManager.getStatemangementResource(resource);

IResourceTransition resourceTransition =
	sResource.getTransition("lbl.publish");

if (resourceTransition != null)
    resourceTransition.execute();							

But this do not work, and instead raise this ExecMessage: <b>"You are not allowed to carry out this action"</b>

Please Help

Best regards

Jonathan

replied

to skip approval and publish it directly use lbl.skip.inprogress

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question