on 04-21-2006 5:33 PM
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
to skip approval and publish it directly use lbl.skip.inprogress
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.