Api for 'submit for approval'

I would like to be able to use the content management event system to watch for incoming files. when a new file comes in i want to set some attributes based on the payload before it is submitted for approval. i am having problems finding the proper procedure to automatically submit the file for approval once i set the attribute values (which must be done while the file is in draft mode)
is that possible?

sorry. i posted this in the wrong forum.

Similar Messages

  • Api call for 'submit for approval'

    would like to be able to use the content management event system to watch for incoming files. when a new file comes in i want to set some attributes based on the payload before it is submitted for approval. i am having problems finding the proper procedure to automatically submit the file for approval once i set the attribute values (which must be done while the file is in draft mode)
    is that possible?

    If the target node for your operation is a sibling, I believe you're going to have to pass the parent node of the sibling into the AddNode() API call when this operation occurs within a version. Note that copyNodesAcrossVersions is a new method that has a copyAsSibling parameter, but AddNode() does not.
    Edited by: Naren Truelove on Nov 12, 2012 3:12 PM
    ...grammatical correction...

  • Skipping ' submit for Approval '

    Hi ,
    I am setting up a document workflow process in KM . I have a requirement as follows ..
    Once a document is uploaded into the folder ( which is assigned with set of approval steps and
    users ) , I need to send all the documents in that folder  for approval process with out Approver admin manually clicking ' submit for Approval ' button . Is this possible by configuration or we need to write some extra code .
    Any help is appreaciated .
    Thanks
    Aneez

    Hi Aneez,
    yes you will need to write some extra code. The concept would be like that:
    1. you will have to implement an eventlistener which will be called, if a document is created or uploaded.
    2. this event listener has to call the API of the statemanagement service in order to submit the document.
    3. For each repository of interst, you can register your event listener using the getEventBroker method.
    There you have to specify the events, you are intersted in.
    Details:
    1. class MyEventListerner implements IEventReceiver{
    private static IResourceEvent CREATE_CHILD_EVENT = new ResourceEvent(ResourceEvent.CREATE_CHILD, null);
      public void received(IEvent event) {
        event.isLike(CREATE_CHILD_EVENT)) {
          IResource resource = (IResource)event.getParameter();
       this.submitResource(resource);
       private void submitResource(IResource resource){
         // get the statemanagement service from the resource
          IRepositoryServiceFactory factory = ResourceFactory.getInstance().getServiceFactory();
    IStatemanagementManager statemanagement =
          (IStatemanagementManager)factory.getRepositoryService(resource, IWcmConst.STATEMANAGEMENT_SERVICE);
    IStatemanagementResource sResource =
    statemanagement.getStatemangementResource(resource)
    IResourceTransition transition = sResource.getTransition("lbl.submit")
    // if everything is correct than transition is not null
    if (transition != null) transition.execute();   
    Please keep in mind, that this is only a scatch how it may work. You have to ensure, that the statemanagement is enabled for the parent folder of the resource. Otherwise, the transition may be null or not executable.
    I hope this helps.
    regards
    Andreas

  • Repository Service for Auto Submit for Approval

    Hi all,
    Can anyone help me with the creation of a Repository Service to auto 'submit for approval' any document created.
    My main problem is in two methods:
    1) removeRepositoryAssignment(IRepositoryManager mgr)
      In some samples, I saw always this code line:
      mgr.getEventBroker().unregister(this, ResourceEvent.CREATE_CHILD);
      But in my project the unregister method doesn't have that parameters
    2) received(IEvent event)
      I need some help to know what code should I put
    The remaining steps, I think I can handle by myself.
    Many Thanks,
    Luis

    Hi,
    1) make sure you use com.sapportals.wcm.repository.manager.IRepositoryManager, use the JAR (bc.rf.framework_api.jar from the \usr\sap\XXX\JCXX\j2ee\cluster\serverX\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.netweaver.bc.rf\lib folder) from the portal you are willing to develop to make sure you have the actual libraries.
    2) in this method you have to catch the events that creates the resource (ResourceEvent.CREATE_CHILD) - later you will see, that you have to handle also the CHANGE events and so on. When you have the event, get the resource - for CREATE_CHILD it is
    event.getResource()
    Now you can handle the submit for approval by yourself.
    Romano

  • Submit for approval in KM - automatically?

    Hi guys!
    When I create document in folder, where Approval process is enabled , I have to click on "Submit for approval", when I want to send document for approval.
    Is it possible to send it for approval automatically? SO I create document and it is automatically sent to approvers inbox..
    Thanx for answer!
    Peter

    Peter,
    I think without coding no way.
    You can create a repository service which will listen to events like <b>ResourceEvent.CREATE_CHILD</b>. When the event is caught the repository service will submit the resource for approval. For more info about repository services just search the SDN (or let me know).
    Romano
    PS: does my reply to this <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=261413">Thread: mailto link wanted in XML form app</a> helped? If so, please close it - it will help others in searching for answers to their questions...

  • Cannot Submit for approval

    Hi,
    I have written an WDP Application which creates a resource in KM and subsequently <b>"Submits it for approval".</b>
    Now the problem is, all the users can create the content, but only user having a <b>Content Management</b> role can perform the submit for approval action. I have given the content admin the application role. We can see the resource getting created in the KM folder for all the users. But only Content admin can submit.
    I have given all the reqd. users the full control over the folders.
    Now what could be the problem???!!!!!
    Helpful answers will be rewarded
    Thanks in advance
    BP

    Hi,
       We had to write this code. It's a button that allow you to submit a document and change acl permission.
    Patricio.
    public IRenderingEvent execute(IResource res, Event event) throws WcmException {
              if (event instanceof ConfirmEvent) {
                   String pepe = "";
                   ConfirmEvent cce = (ConfirmEvent) event;
                   pepe += " a1 ";
                   if (ConfirmEvent.CHOICE_YES.equals(cce.getChoice())) {
                        IRepositoryServiceFactory repositoryServiceFactory = ResourceFactory.getInstance().getServiceFactory();
                        IStatemanagementManager statemanagementManager =
                             (IStatemanagementManager) repositoryServiceFactory.getRepositoryService(res, IWcmConst.STATEMANAGEMENT_SERVICE);
                        IStatemanagementResource sResource = statemanagementManager.getStatemangementResource(res);
                        IResourceTransition resourceTransition = sResource.getTransition("lbl.submit");
                        if (resourceTransition != null) {
                             resourceTransition.execute();
                        try {
                             ISecurityManager sm = res.getRepositoryManager().getSecurityManager(res);
                             pepe += " a7 ";
                             if (sm != null && sm instanceof IAclSecurityManager) {
                                  IAclSecurityManager asm = (IAclSecurityManager) sm;
                                  IResourceAclManager ram = asm.getAclManager();
                                  IResourceAcl ra = ram.getAcl(res);
                                  if (ra == null) {
                                       IUMPrincipal administradores = WPUMFactory.getGroupFactory().getGroup("Loyal ISO Administrador");
                                       IUMPrincipal publicadores = WPUMFactory.getGroupFactory().getGroup("Loyal ISO Publicador");
                                       ra = ram.createAcl(res);
                                       ra.addOwner(administradores);
                                       ra.addOwner(publicadores);
                                  IUMPrincipal everyone = WPUMFactory.getGroupFactory().getGroup("Everyone");
                                  IResourceAclEntryList rel = ra.getEntries();
                                  IResourceAclEntryListIterator it = rel.iterator();
                                  while (it.hasNext()) {
                                       IResourceAclEntry entry = it.next();
                                       if (entry.getPrincipal().equals(everyone)) {
                                            ra.removeEntry(entry);
                        } catch (AclPersistenceException e) {
                             return new InfoEvent(Status.ERROR, "Error en el cambio de permisos");
                        } catch (ResourceException e) {
                             System.out.println("I raised a ResourceException " + e.getMessage());
                             return new InfoEvent(Status.ERROR, "Error en el recurso");
                        } catch (UserManagementException e) {
                             System.out.println("I raised a UserManagementException" + e.getMessage());
                             return new InfoEvent(Status.ERROR, "Error en el manejo de usuarios");
                        return new InfoEvent(Status.OK, "Done !");
                   } else if (ConfirmEvent.CHOICE_NO.equals(cce.getChoice())) {
                        return ConfirmComponent.onNo(event, res.getContext().getLocale());
                   } else if (ConfirmEvent.CHOICE_CANCEL.equals(cce.getChoice())) {
                        return ConfirmComponent.onCancel(event, res.getContext().getLocale());
              return new InfoEvent(Status.ABORT, "Aborted.");

  • Error at submit for approval in partner program

    Hi All,
    I am created the partner program in r12 and when i click the submit for approval i receive this error
    Start :Item Type : AMSGAPP Item key : CONCEPTPRGT140282
    Invalid Workflow Role for Approver
    send me the solution for it as soon as possible
    Thanks
    Edited by: user12235518 on Mar 8, 2012 4:36 AM

    user12235518 wrote:
    Hi All,
    I am created the partner program in r12 and when i click the submit for approval i receive this error
    Start :Item Type : AMSGAPP Item key : CONCEPTPRGT140282
    Invalid Workflow Role for Approver
    send me the solution for it as soon as possiblePlease see if these docs help.
    Budget Allocation or Offer Approval Error: "Invalid Workflow Role for Approver" [ID 414053.1]
    Invalid Workflow Role For Approver Error When Trying To Approve A Deliverable In Marketing [ID 181484.1]
    Unable To Approve Quota With Error : AMSGAPP Invalid Workflow Role for Approver [ID 422910.1]
    Error when Generating Invite List of Oneoff Event [ID 266349.1]
    Errors Occuring During Claim Approval [ID 1361361.1]
    Thanks,
    Hussein

  • Submit for Approval throws error

    Hi Experts,
    we are facing a strange error with the approval workflow. Once the user select "submit for approval" from Details the following error is displayed.
    Could not execute command 'com.sapportals.wcm.rendering.uicommand.cm.UIStatemanagementCommand'
    Somebody knows how this problem occurs and can be fixed?
    Thanks and Regards,
    Ingo Taraske

    Hi Ingo
    Also do check the monotoring section for KM Components and in the "System Configuration" for KM, if you see any warning or error message while navigating in Global Services or User Interfaces or some other section, sometimes it could have also lead to error if it related to "Submit for appoval" action.
    As Rafael said, hot deployment of KM components is mostly the reason for this. System restart is the best options if above suggestions already hold good.
    Thanks
    Deepak

  • Submit for Approval in XML Forms

    Hi Experts,
        I have created a News Application using XML Form Builder.  Once I create any news based on this form builder, I need to submit this news item for approval.  I have configured the approval process for that particular KM Folder.
        I need submit for approval option in News Explorer/News Admin iView.  How can I achieve this?  Do, I need to change the layout set properties or in XML Form Builder application itself.
       Help me in this regard.
    Thanks & Regards,
    Art

    Hi Art,
    > Do I need to change the layout set properties or in XML Form Builder application itself.
    You should extend the command set used on the resource renderer (the resource renderer is defined in the layout set), using the approval command group, I don't know the exact name, but it will be something with "approval" or "statemanagement" in it...
    Hope it helps
    Detlev

  • Submit for review In-app Purchase NEW

    Today i see this new panel in Submit for review of an in-app purchase!
    I need to understand if this in a problem with my iTunes Connect account or not!

    Yes, but i do not understand what change!
    I think that i can sell immediately a retail folio without wait the approvation!
    Is it correct?

  • MDM JAVA API SCA file for MDM 7.1 SP04

    I need to download MDM JAVA API SCA file for MDM 7.1 SP04. When I added to the download basket through service marketplace it is looking for the approval process, just for the API file. I was able to get the other files though like webdynpro framework, change tracker. We haven't setup the Solution Manager yet. It might take a while. Meanwhile is there any other way to get the SCA file.
    Thanks

    Opened message with SAP and they have approved the download basket. Now able to download the sca file.

  • Waiting...and waiting for Adobe to approve my upload

    I have been waiting for a long time for Adobe to approve my brush upload. Does anyone know why it takes so long? I read through some other posts on this subject and it seems like it is normal for Adobe to take a long time especially if it's your first time. If only ALL "first times" took this long. But honestly what is the hold up? Does anyone know if there is something I can do to expidite this process?

    Jose,
    I just checked the status of the order as it was showing Unauthorized. You might try placing the order again. Did you submit your Educational information to qualify for the student pricing?
    Order Details
    Order Number: AD003062948EDU
    Store: OLS-EDU
    Order Date: Apr. 27, 2014 2:47:48 PM PDT
    Order Date Local Time: Apr. 27, 2014 17:47:48 PM US/Eastern
    Order Status: Unauthorized
    Thanks
    Scott

  • Script for uploading the Approved Supplier in bulk

    Dear All
    I need the Script or API to upload the approved supplier List in bulk
    Regards
    Afsar

    Afsar --
    You're very unlikely to get an answer to this question in this forum, which focuses on the Oracle Configurator product.  You should look for another forum where this subject would be more relevant.
    Eogan

  • My 9 year old somehow ran up $99.00 while playing games on my iPad. How do I submit for a refund?

    My 9 year old son somehow ran up $99.00 in app purchases on my iPad. How do I submit for a refund? I have been all over the website but of course, this is the ONE thing I can't find.

    There are no refunds.
    You can try contacting itunes support and asking for an exception.
    Click "Support" at the top of this page, then click the link under "Contact Us"

  • Adobe Acrobat X Pro - Javascript for submit button

    Hi,
    I am new to Adobe Acrobat X Pro and I have just designed a fillable form and enabled user rights for reader, for them to send the form back as a PDF. I created the form with a submit button and have mailto:[email protected] but I want to know if it is possible to create a button that will run a javascript to bring up a persons Mircosoft Outlook contacts, so they can choose who they want to send the completed form too.
    Any help would be greatly appreciated.
    Thanks.

    See post #7 and #10 in the following topic: http://forums.adobe.com/thread/793083?tstart=0

Maybe you are looking for

  • Chords / Transpositions no Longer working

    Really frustrated with this today. I save all my logic Pro 9 projects to an external hard drive. Booted up a few projects today, and all the chords / transpositions in the global track settings are no longer changing the chords. I'm working on a few

  • Components in grid panel out of order

    Experiencing this with VWP but had it some with Creator 2 as well: I line up my components in the right order in the designer, but wen I deploy they are in a different order. Usually they are in the wrong order in the JSP as well...the designer still

  • Capture the exceptions from BW Bex Report in a class/interface

    Hi.... I am trying to capture the exceptions defined in the BW BEx Reports in a class (superclass - CL_RSR_WWW_MODIFY_TABLE) in a variable or something. This is actually to change the properties of a table in Web Applcn. acc to the exceptions by alte

  • Calling PL/SQL Functions

    I want to call a couple of pl/sql portal. I don't see any documentation regarding calling functions. Does toplink support this functionality? Thanks, Marcelo

  • CUIS / CUIC Custom Reporting Summary

    I am using Cisco CUIS versiopn 7.5.(4) I have been able to successfully add a new reporting field in CUIS using the formula editor.  Here is the formula: [RowField]/Sum([RowField])  Gives me a percent of the total of the entire report.   This report