cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thank you Ankur...

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

Best Regards

Jonathan.

Answers (0)