How to develop a Repository Service to trigger a workflow automatically??

Hi All,
     I have configured a approval workflow on the folder <b>/documents/test</b> in <b>KM Content</b>.
     <b>I want to trigger this workflow automatically whenever a new document is created in this folder.</b>
     How can i do it? Should i create a Repository Service? or is there any other way??
     I can't find a lot of info about creating Repository Service. I have seen other threads in this forum too.
     Can any1 plz help me in this regard?? <b>Any code samples???</b>
     Would appreciate any kind of help. It's kinda urgent.
Thanks in advance.
<b>Regards,
Sai Krishna.</b>

Hello Praveen,
thank you for answer and the link to the sap help.
sorry for my beginner questions, but in sap help in chapter "Setting up the J2EE Engine for Debugging" under number one "Start the Config tool and connect to the J2EE Engine database.".
Where will I find this config tool?
Regards,
Markus

Similar Messages

  • How can i sedn report output as attachment in workflow  automatically in ma

    hi,
      i want to send mail with attachment of report output as acrobat reader format.
      how can i do this one autimatically,
    please let me know.
    thanks
    Sankar

    For this you need to activate access method M in spool administration tcode SPAD.
    Refer to this links below.
    Change mail subject and body text
    http://www.geocities.com/rmtiwari/Resources/MySolutions/Dev/Codes/Report/Z_RMTIWARI_SEND_SPOOL_MAIL_ATT.html
    Regds
    Manohar

  • Transporting a repository service

    Hallo Experts,
    I developed an repository service in our development system and I want to transport it to our test-portal.
    Do somebody know how to transport such a service?
    Thanks in advanced.
    Best Regards,
    Markus

    Hi Markus,
    There will four menus in the top of the SA->KM->content management like below
    Actions  History  Mode help
    Step1 :  Go to Actions->Export and click Start option.
    Package will be created.
    Step2 : Go to Actions-> Export ->Add
    you will get 3 options and can select any area you updated or you can select complete configuration
    Once everything is done you can finalize the export and then import the same in other portal system using the same Actions option.
    Hope it helps. Please assign points if it is helpful
    Regards,
    Raghu

  • Trigger a workflow ?

    hi,
    can any one tell me how to trigger a workflow based on my auto-renewal date set up in my contract i.e.if the contract is going to expire then the wf has to be triggered before 10days.
    ganesh

    Hi Ganesh
    For triggering workflow based on your scenarion, you have to extend the Business Object BUS2014....Define the event to trigger the workflow(before 10 days) based on the renewal date...Link that event to workflow. Whenever the event is get triggered, it'll trigger the workflow automatically...
    Regards,
    Hemalatha.

  • How to get Resource Name in the Repository Service when Publish evt trigger

    Hi ,
    I have created a repository service in which I have registered the
    StatemanagementEvent.PUBLISH
    My requirement is I need to know which resource rather resource name triggered this event.
    This is the code which
    public class ApprovProcs extends AbstractRepositoryService implements IReconfigurable, IResourceEventReceiver
      private static final String TYPE = "ApprovProcs";
      private Collection repositoryManagers;
      public ApprovProcs()
        super();
        // Do not add code here. Add it to startUpImpl() instead
      public String getServiceType()
        return ApprovProcs.TYPE;
      protected void startUpImpl(Collection repositoryManagers) throws ConfigurationException, StartupException
        // implement this method as follows:
        // - Verify configuration data
        // - Get references to other needed (global) services
        // - Check whether other repository services (this service depends on) are also assigned to the repository managers
        // - Usually the service registers itself for certain events at all repository managers
                 this.repositoryManagers = repositoryManagers;
              Iterator it = repositoryManagers.iterator();
              while (it.hasNext())
                   try
                        addRepositoryAssignment( (IRepositoryManager) it.next());
                   catch (ServiceNotAvailableException e)
                        e.printStackTrace();
      protected void shutDownImpl()
         Iterator it = repositoryManagers.iterator();
         while (it.hasNext())
              try
                   removeRepositoryAssignment( (IRepositoryManager) it.next());
              catch (WcmException e)
                   e.printStackTrace();
      protected void addRepositoryAssignment(IRepositoryManager mgr) throws ServiceNotAvailableException
        // Implement this method: Usually the service registers itself for certain events at the repository manager.
         try
              // capture all the respurce which are published
              mgr.getEventBroker().register( this, new StatemanagementEvent( StatemanagementEvent.PUBLISH, null ));
         catch(WcmException e)
      protected void removeRepositoryAssignment(IRepositoryManager mgr) throws WcmException
        // Implement this method: Usually the service must unregister itself as an event handler.
         //mgr.getEventBroker().unregister(this, new ResourceEvent(ResourceEvent.CREATE_COLLECTION, null));
         mgr.getEventBroker().unregister( this, new StatemanagementEvent( StatemanagementEvent.PUBLISH, null  ));
      public void reconfigure(IConfiguration config) throws ConfigurationException
        this.stateHandler.preReconfigure();
        // check the new configuration data
        try {
        catch (ConfigurationException ex) {
          this.stateHandler.postReconfigure(ex);
          throw ex;
        this.config = config;
        this.stateHandler.postReconfigure();
      public void received(IEvent event)
         System.err.println( "----rid --42354543--- " );
           IResource rsrPublished  = (IResource)event.getParameter();
           if( rsrPublished != null )
              System.err.println( "----rid --42354543--- rsrPublished.getDescription() --- " + rsrPublished.getDescription() );
           else
              System.err.println( "Resource Does not exist -----" ) ;
    In the log file I am getting Null Pointer Exception
    Can any one please help me in this as where I am going wrong
    thanks
    pk

    Hi Romano & Detlev ,
    Thanks for the reply .
    This is what I was looking
    Detlev:
    About the NPE ... in the above code I am not getting that.
    Thats my mistake
    Earlier I tried with
    IResource rsrPublished  = (IResource)event.getParameter();
    String rid = rsrPublished.getRID().toString();
    In the second line of code I was getting the NPE
    after that I used to if condition to debug it
    Sorry for the confusion...
    One more thing
    which is the event triggered for approval or how to capture the Approval Event when a content is approved by the Approver
    thanks
    pk

  • How to develop Ping Service in Oracle Service Bus

    Hi all,
    I want to develop a ping service in OSB which will ping all the End-point URLs and Databases ( i.e It will do the health check of the end point URLs ) .
    when it is found any End Point URL is not reachable it should shutdown all the Osb Projects(or Proxy's) which is using the End-point URL and when ever the
    End-point URL is up it should Bring the Osb Project( or proxy) up to get the requests .
    I want to implement this for Asynchronous services or JMS services.
    Can we shutdown any Proxy or OSB project like BPEL process ??
    Thanks
    Phani

    I want to implement this for Asynchronous services or JMS services. For jms transport, instead of disabling the proxy you can make a java callout to pause the queue for consumption. This should a very small piece of java code using jmx api to pause the consumption.. So instead of designing a 'ping' service, what you can do is when an error occurs on the route node, do the following in the route error handler -
    - Configure an 'alert' action to notify to the support about the issue, This could be done in different ways depending on how your osb is integrated to the problem management system.
    - Pause the queue for consumption using the java callout.
    Support can manually come and resume the consumption on the queue after the issue is fixed.

  • How to trigger a workflow using generic object services?

    Hi Experts,
    Let me know on how to trigger a workflow using generic object services.
    My requirement is to trigger the FI document reversal document using Object services.
    Any info or docs relevant to this, please share with me..
    Thanks,
    Dinesh.

    Dinesh,
    First of you need to check if the transaction has a BO (in released status) published to use the GOS.
    These are the pre-requisites for GOS
    http://help.sap.com/saphelp_46c/helpdata/en/94/aa532cddd511d289860000e8216438/content.htm
    Once done.. check that you have valid workflow linkages active for this BO.
    Now when you click on the 'start workflow' the system will show all relevant workflows for the BO to choose from and to start.

  • How to develope, compile  and run soap service

    we want to implement the soap sevice in our concern.So its very diffcult to develope the soap program.I dont know about the soap service.please give me a input about soap and how to develope soap programs.Pls also give some sample programs and how to compile and run those programs.In our concern we are using UNIX operating system.
    Thanking you
    Yours faithfully
    Saran

    You should start by posting questions regarding web services on the correct forum ;)
    Next go to xml.apache.org and read the documentation regarding Apache Axis.
    You could also take a look at the Spring Framework's support for web services.
    You could even take a look at the Sun Web Service tutorials.
    The above resources have plenty of examples and sample code.

  • How to start developing an Enterprise Service

    Hi everybody.
    I'm a student who writes his diploma thesis at the moment.
    My aim is to identify different serivce candidates with the aid of a roadmap methodology in my company. After doing a business process analysis and identifying all the IT systems and interfaces to external systems I want to develop a enterprise (web) service (with ABAP/Java) offering some type of masterdata from SAP HCM and deploy it to the Exchagne Infrastructure of my company.
    But I don't know how to start. There is too much (poor) information. Until know I did not find concrete howto-guides with examples for "developing a service" (both ABAP and Java), "deploying and testing a service with XI". Could somebody give me some hints?
    I have access to the ABAP workbench, XI and the NWDS and have read all the theoretical stuff about SOA and SAP ESOA.
    Thanks in advance,
    Stefan

    Hi Stefan,
    I might not be bang on target but nevertheless try going through the below links:
    [How to Build an Enterprise Service using SAP NetWeaver Process Integration|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c05b36f9-e7d4-2910-4488-a46be7ba2906]
    [Enterprise Services Design Guide|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40c05360-0501-0010-63bd-aedd415b6e05]
    [Enterprise Services Discovery and Design Guide|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4c1ab044-0401-0010-7aae-b6578bb18b85]
    [Enterprise Services Design Guide|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/943e83e5-0601-0010-acb5-b16258f5f20a]
    [Creating a Purchase Order Store Record Web Service|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80fa3dff-ce76-2a10-3f94-f3df8f2db5a2]
    Also see my article which explains the creation of a Web Service using EJB (so basically a java web service):
    [How to Create a Web Service using Enterprise JavaBeans|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10]
    Bye
    Ankur

  • How to develop web service using Intellij Idea 6.0

    How to develop web services using Intellij Idea 6.x. A sample web service and service client is needed with full procedure. Thanx in advance.

    Web service is technology not a tools that bundle with IDE.
    For example you can't say how can I develope object orented program with Eclipse.
    1- You should get some general info about SOAP, WSDL and Web sevice usage
    2- Start to implmenet a simple Hello world web service and deploy it on application(web service) server
    3- Write Client code and test it.
    for step 2,3 Apache Axis(2) could be a good solution for developement or you can use JAX-WS for sun

  • How can to get the context of Repository Service?

    Hi All,
    How can we get the context of Repository Service?
    I am able to get the repository service using the below given code.
    IRepositoryServiceFactory sf = ResourceFactory.getInstance().getServiceFactory();
    IRepositoryService service=sf.getRepositoryService(IRFServiceWrapper.KEY);
    But want to know how to get the context of this RepositoryService.
    Regards
    George

    Hi George,
    Is this what you're wanting:
    IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
    IUser user = (IUser)request.getUser().getUser();
    IResourceContext resourceContext = new ResourceContext(user);
    // Get the Service
    IRepositoryServiceFactory repServiceFactory = null;
    try {
      repServiceFactory = ResourceFactory.getInstance().getServiceFactory();
    } catch (Exception ex) {
      ex.printStackTrace();
    if(repServiceFactory == null) {
      System.out.println("Repository Service Factory is null!!");
    // Check to make sure that the folder that was passed in is valid.
    RID folderRID = new RID(startFolder);
    try {
      IResource resource = ResourceFactory.getInstance().getResource(folderRID, resourceContext);
    } catch ( InvalidUriException ie ) {
      System.out.println("in the InvalidUriException catch");
      ie.printStackTrace();
    } catch ( Exception e) {
      System.out.println("exception: " + e.getMessage());
      e.printStackTrace();
    If this isn't what you're looking for, maybe you could tell us what specifically you're trying to do.
    Thanks!
    -StephenS

  • How to develop and call Asynchronous web service

    Hi All,
    I need to have a java web service that will be called asynchronously.
    That should execute, once triggered and caller shouldnt need to wait till its completion.
    How to develop and call asynchronoue web service ?
    Thanks
    Saikrishna

    Let your web service start its own background thread (*) somehow and move your business logic from web service to this thread. Then you can return from your web service. The client won't be blocked and your application will run on your server after service callout will be finished.
    I hope that's what you need. Anyway, there is only "asynchronous communication" and nothing like "asynchronous web service". At least from HTTP point of view, every call is synchronous - you have request and response.
    (*) You shouldn't start your own thread since you are in JEE world. Look at documentation for your container. E.g. for weblogic there are workers you can use this way. Or you can choose the other way. I hope that for any container you can just enqueue your web service request to any JMS queue and move your business logic to an appropriate MDB. Then, your web service will be just a simple JMS producer and your web service client won't be forced to wait for business logic to finish.
    Last but not least, next time choose a better forum. :-)

  • How to develop repository manager with initial folder structure

    Hi 2 all!
    I wonder if it is possible to create new repository programmatically with defined folder structure. I'm interested in solutions when repository manager is works with db or file system. Can you provide any example or tell me where can I define my structure?
    thnx

    Hi Nata!
    Basicly this task consists of two steps:
    1. Deploy a new configuration object for the repository manager
    2. Create the intial folder structure
    Step one is simple. Here is the configuration object of the repository manager for /documents. It's been exported from the KM configuration by using the standard export mechanisms. This can be included into a portal application project in Netweaver Studio.
    documents.co.xml
    <?xml version="1.0"  encoding="UTF-8" ?>
    <!-- file generated by configuration framework Jun 27, 2008 9:16:36 AM -->
    <Configurable configclass="CmRepositoryManager" owner="km.appl.rep.mgr.prjconfig">
    <property name="ro-expiry-time" value="0"></property>
    <property name="fsconttrack" value="true"></property>
    <property name="poolid" value="dbcon_wcmdb_cm"></property>
    <property name="securitymgr.aclcacheid" value="ca_rsrc_acl"></property>
    <property name="localroot"></property>
    <property name="serverfarm" value="false"></property>
    <property name="propertysearchmgr.class" value="com.sapportals.wcm.repository.manager.cm.CmPropertySearchManager"></property>
    <property name="keepVersionHistory" value="false"></property>
    <property name="securitymgr.aclcfg" value="acl_jdbc_rep"></property>
    <property name="versioning.localroot"></property>
    <property name="persistence.mode" value="db"></property>
    <property name="hidden" value="false"></property>
    <property name="fsnosync" value="false"></property>
    <property name="cacheid.versionhistory"></property>
    <property name="prefix" value="/documents"></property>
    <property name="fsContentCacheMaxEntries" value="-1"></property>
    <property name="fsContentCache"></property>
    <property name="name" value="documents"></property>
    <property name="cacheid.content"></property>
    <property name="compressLimit" value="-1"></property>
    <property name="cacheid.foldercontent"></property>
    <property name="cacheid.properties"></property>
    <property name="active" value="true"></property>
    <property name="cacheid.rid"></property>
    <property name="ignorerootdisplayname" value="false"></property>
    <property name="class" value="com.sapportals.wcm.repository.manager.cm.CmRepositoryManager"></property>
    <property name="cclist"></property>
    <property name="intLinksDefaultDynamic" value="true"></property>
    <property name="contentmgr.class" value="com.sapportals.wcm.repository.manager.cm.CmNamespaceAndContentManager"></property>
    <property name="cacheid.documents"></property>
    <property name="versioningmgr.class" value="com.sapportals.wcm.repository.manager.cm.CmVersioningManager"></property>
    <property name="securitymgr.w2kcfg.systemid"></property>
    <property name="lockmgr.class" value="com.sapportals.wcm.repository.manager.cm.CmLockManager"></property>
    <property name="cacheid.locks"></property>
    <property name="securitymgr.class"></property>
    <property name="persistence.db.instance-id" value="documents"></property>
    <property name="cacheid" value="ca_cm"></property>
    <property name="namespacemgr.class" value="com.sapportals.wcm.repository.manager.cm.CmNamespaceAndContentManager"></property>
    <property name="autoversioning" value="false"></property>
    <property name="description"></property>
    <property name="securitymgr.ref" value="AclSecurityManager"></property>
    <property name="fsContentCacheLimit" value="100"></property>
    <property name="propertymgr.class" value="com.sapportals.wcm.repository.manager.cm.CmPropertyManager"></property>
    <property name="services" value="accessstatistic, com.dkv.DKVApprovalAndTranslation, com.dkv.jobtool.repository.JobToolCreationService, comment, discussion, feedback, layout, personalnote, properties, rating, statemngt, subscription, svc_acl, tbp"></property>
    <property name="sendevents" value="true"></property>
    </Configurable>
    This is a DB repository. The config object for a filesystem repository might differ.
    Step 2, the creation of the initial file structure may be done with in two different ways:
    a) Include a Repository Service with your repository, which creates the folder structure on the first access of your repository.
    b) Include a Portal app which has to be called once to create the folder structure.
    For more info about using the API to create km folders take at look at this:
    https://www.sdn.sap.com/irj/sdn/thread?threadID=933638&messageID=5663711#5663711
    Cheers,
      Jürgen

  • How and where to checkin service bus module.

    Hello Geeks,
    I am a newbie to Oracle Service Bus and trying to learn it.
    Today i have developed my first service bus application and I am also able to deploy it.
    As a deployment artifact , I am having sbconfig.jar.
    My module contains 1 proxy , 1 business service and few xsd.
    My question is
    1.) what is the standard practice for checking service bus applications .?
    2.) Where we checkin these files and how. ?
    3.) do i have to checkin the sbconfig.jar itself in the repository. ?
    Please help.
    Cheers
    SJ

    > do i have to checkin the sbconfig.jar itself in the repository. ?
    No, this is a derived artifact, and shouldn't be checked into any VCS(*)
    You check in the source files -- *.proxy, *.biz, *.xsd and so on, and also the content of the DevConfiguration folder.
    P.S. Granted, those files are XML and branching and merging is a MAJOR PAIN in OSB, but this is the best you can do.
    (*) Unless it is the Release Management VCS where they often require to drop the deployable artifact into there, because they are not very interested in sources when promote the code to PROD.

  • Repository Service not working

    Hi all,
    I have designed a very simple repository service based on the several code samples here on the forums. Here is the received(IEvent) method i implemented:
    public void received(IEvent event) {
           IResourceEvent resEvent = (IResourceEvent) event;
         IResource resource = resEvent.getResource();
         try {
           resource.rename("my_resource_" + resource.getName());
         } catch (Exception e) {
             e.printStackTrace();           
    When i deploy this PAR file, the service appears on the Repository Services part of the config iView. Then i created a new Repository Manager pointing to /room_extensions/cm_stores/questions/workspaces, which is the directory where this Service must act, and associated my Service with it. Even after restarting, the creation of documents on this folder does not trigger the Rep Service!!! Do you know what am i getting wrong?
    Thanks in advance!
    Thiago

    Hi Thiago,
    Even I am facing a similar issue.Can you please let me know how did you resolve this.
    I had one more doubt,
    I have written a service for a CM repository manager , where the files are managed by the file system.
    My query is -
    If I create a new file directly in the file system (not through KM), will the repository service be triggered.
    I hope it does. Please let me know.
    Regards,
    Vivek

Maybe you are looking for

  • EHP1 Upgarde Monitor screen resolution problem in a support message

    Hi Experts, We have recently upgraded our Solution manager to EHP1, iam facing a screen resolution problem with 15 inch monitors. Our key users have 15 inch monitors to their system and when they try to reply a support message under transaction data-

  • USB 2.0 port no longer recognizes ext. HD; USB 3.0 seems fine W510

    Have had several BSODs in last few days. Two of most recent referred to nusb3xhc.sys Other symptoms: I have 3 WesternDigital 500GB ext. USB 2.0 HDs none of which are being recognized even when plugging directly in to laptop USB port rather than USB h

  • How to convert spool to pdf & then sent mail ?

    For Billing document in SD module ,via VF02 we are creating spools. We are using RSTXPDFT4, to convert spool request to PDF. There are some 100 Invoices, & hence there are 100 spools. We have to give this spool no one by one in the above program to c

  • Runtime visual C++ error related to nimxs.exe

    Hi I am getting a microsoft visual c++ error saying that this application has requested to be terminated in an unusal way and it points to nimxs.exe and mentions to contact applicatons support team. Everythingwas running fine one moment and then I ha

  • Need advice about keyframe spacing (at least I think that's what is causing the issue)

    I have never noticed this ever happening before, I think it's because it's going from non-static to completely static images. It's a small tidbit at the end of an animation.  Once the credits start rolling, the video begins to pulse every second or s