Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Apr 21, 2006 at 07:53 PM

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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you Ankur...

      Your tip solved my problem; I already reward you with 10 points!!

      Best Regards

      Jonathan.