Starting a BPM-flow programmatically

Hi,
When we start a BPM-flow in a manual way, via Configuration Management - Processes and Tasks - Process Repository, we can which user has initiated the process in Operation Management - Manage Processes in the column 'Started by'.
However, when we try to start the same process programmatically, eg. in a webdyn pro app, via the assigned webservice in the start event, we don't see the user who has started the flow, instead we get to see 'Guest_'.
Anyone an idea to resolve this issue?
Thx!
Wesley

Hi,
When we start a BPM-flow in a manual way, via Configuration Management - Processes and Tasks - Process Repository, we can which user has initiated the process in Operation Management - Manage Processes in the column 'Started by'.
However, when we try to start the same process programmatically, eg. in a webdyn pro app, via the assigned webservice in the start event, we don't see the user who has started the flow, instead we get to see 'Guest_'.
Anyone an idea to resolve this issue?
Thx!
Wesley

Similar Messages

  • Getting error while Startting a BPM process programmatically

    Hi Experts,
    I am getting an error while trying to start the BPM process programmatically. What i have done till now is
    1. Created a WS in process composer
    2. Binded this ws with start of the process
    3. Created input parameters
    4. Testing it in WS Navigator
    I am following this doc /people/arafat.farooqui/blog/2009/08/13/introduction-to-sap-netweaver-bpm-part-4
    and I am getting error while testing in WS Navigator. I am getting error at the last step i.e. in result step and the error is
    Web Service returned an error. Fault Code: "(http://schemas.xmlsoap.org/soap/envelope/)Client" Fault String: "No operation found using soap keys [], [cn_comments]. InterfaceMapping Object class: com.sap.engine.services.webservices.espbase.mappings.InterfaceMapping mappings: (BindingType=Soap, SEIName=NewWSDLFile, BindingQName=(http://www.example.org/NewWSDLFile/)NewWSDLFileSOAP, PortTypeQName=(http://www.example.org/NewWSDLFile/)NewWSDLFile, SoapVersion=SOAP11, Galaxy_SDO=true, InterfaceMappingID=45ffb27c:1237f972cd8:-7d7e)."
    If possible can any one help me out.
    Thanks and regards
    Pranav

    Hi Arafat,
    Thanks for replying. Yes i have completed the output mapping. Input parameters i need for this service are :
    1. cn_comments
    ca_comments
    2. cn_planningGroup
    ca_account
    ca_serialnumber
    and few more attributes
    Now, what i did was i have created a complex type and added elements in it. But to my surprise i was not able to get these nodes and elements in output mapping. So, i changed the type of "parameter" from "new operation" to my complex type. By doing this i was able to get my nodes and elements in output mapping. Now i tested the entire thing in WS Navigator and i got that error.
    Please suggest how o proceed.
    Regards
    Pranav

  • Start a BPM process programmatically

    Hi Experts,
    I am trying to start my BPM process using a button event from WD JAVA. I have created a Web service and I have assigned it with my start step of process. But, problem is in WS Navigator I am able to see that service in Local JAVA AS but not in my central server. Can any body please tell me how to publish web service in central server or any other alternative to start BPM from WD JAVA.
    Regards
    Pranav

    Thanks for replying again Arafat. I am not getting any deploy or build error. What i have done till now is
    1. Expand the process modeling
    2. Expand service interfaces
    3. Right click on WSDL Files folder and selected new WSDL.
    4. Followed all the steps.
    5. Deploy local development
    Not getting any error here. But when i tried testing it in WS navigator i am not able to see my service there in providedsystems.
    please suggest some thing.
    Regards
    Pranav

  • Call BPM flow from EJB container

    Hi,
    I wondered, since we can start a BPM flow through a webservice call, how we could call a webservice from an EJB 3.x container?
    Anyone an idea?
    Thx,
    Wesley

    You mean from a bean?
    Like any other web service call, in which case your EJB will be a WS-Client
    regards,
    Harsha

  • Can't Start Oracle BPM Workspace

    I'm trying to start oracle BPM workspace through this URI http://localhost:7001/bpm/workspace but it gives me an error which is:
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    *10.4.5 404 Not Found*
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    If anyone know about that,please help me.I can't complete my semester project_
    Note: it works when I try to start the following URIs:
    http://localhost:7001/console/login/LoginForm.jsp
    http://localhost:7001/em

    Most likely you didn't check the 'Oracle BPM Suite'/'Oracle BPM Suite for developers' when you configured the SOA domain. Go to '<YOUR_MIDDLEWARE_HOME>\Oracle_SOA1\common\bin\' and run the config.cmd.
    Choose 'Extend an existing Web Logic Domain' and then be sure to select 'Oracle BPM Suite'/'Oracle BPM Suite for developer'. Then it should work.
    Good luck,
    Mihai

  • How to start a BPM process from ERP system

    Hi,
    I created a process in Netweaver Developer Studio with the Process Composer in SAP CE 7.1 BPM, now I want to automatically start the process by saving a SAP document like purchase requisition or purchase order. Therefore I think about implementing a UserExit / Badi or something else.
    The following systems are available in my Landascape:
    - PI 7.1
    - ERP 2005
    - CE 7.1 EHP1 with ESR
    Does someone have an idea how to start the BPM Process or how to trigger start event?
    Greetings,
    Christian

    the process by saving a SAP document like purchase requisition or purchase order.
    Based on your business process, you will have to decide what data should be sent to other system. It could be in the form of Idoc trigger or an RFC calls. If there are non-SAP systems involved, you should be using PI 7.1 too. In that case, you can communicate using Abap proxy call too. For this you may either call an RFC internally in a report and schedule it.
    Regards,
    Prateek

  • Problem start a BPM process, No ADF binding is defined for the service.

    Hi,
    I am trying to use oracle.soa.management.facade.Service.request method to start a BPM process.
    The service works fine while being tested using Enterprise Manager. But while I am trying to invoke the service from a java client, exception occurs.
    The Service toString:
    Service {
    name = TechDocModifyProcess.service
    properties = {}
    bindings = [Binding {
    Name = WSBinding
    Type = ws
    Mode = entryPoint
    Properties = null
    WSDL URL = /TechDocModifyProcess.wsdl
    WSDL URL = http://eis-bpm-server.eis.smec-cn.com:8001/soa-infra/services/default/TechDocModifyProject!0.2*soa_fee2a899-b630-4c7c-8bbb-c740d37a1b03/TechDocModifyProcess.service?WSDL
    Below is the java code I used to call the service.
    try {
    NormalizedMessage input = new NormalizedMessageImpl();
    String uuid = "uuid:" + UUID.randomUUID();
    input.addProperty(NormalizedMessage.PROPERTY_CONVERSATION_ID,
    uuid);
    // payload is the partname of the process operation
    input.getPayload().put("creator", "jcooper");
    input.getPayload().put("notificationId", 1L);
    input.getPayload().put("title", "test");
    // process is the operation of the employee service
    NormalizedMessage res = null;
    try {
    svc.post("operation", input);
    } catch (Exception e) {
    e.printStackTrace();
    } catch (ProcessMetadataServiceException e) {
    e.printStackTrace();
    } catch (Exception e) {
    e.printStackTrace();
    Below is the exception stack trace:
    oracle.fabric.common.FabricInvocationException: java.rmi.RemoteException: EJB Exception: ; nested exception is:
         java.lang.RuntimeException: No ADF binding is defined for the service.!
         at oracle.soa.management.internal.facade.ServiceImpl.post(ServiceImpl.java:178)
         at com.smec.eis.bpm.api.SOASvcProvider.main(SOASvcProvider.java:84)
    Caused by: java.rmi.RemoteException: EJB Exception: ; nested exception is:
         java.lang.RuntimeException: No ADF binding is defined for the service.!
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
         at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
         at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl_1035_WLStub.executeServiceMethod(Unknown Source)
         at oracle.soa.management.internal.ejb.EJBLocatorImpl.executeServiceMethod(EJBLocatorImpl.java:837)
         at oracle.soa.management.internal.facade.ServiceImpl.post(ServiceImpl.java:174)
         ... 1 more
    Caused by: java.lang.RuntimeException: No ADF binding is defined for the service.!
         at oracle.soa.management.internal.ejb.impl.FacadeFinderBeanImpl.executeServiceMethod(FacadeFinderBeanImpl.java:982)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.jee.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:104)
         at oracle.security.jps.ee.ejb.JpsAbsInterceptor$1.run(JpsAbsInterceptor.java:94)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.ejb.JpsAbsInterceptor.runJaasMode(JpsAbsInterceptor.java:81)
         at oracle.security.jps.ee.ejb.JpsAbsInterceptor.intercept(JpsAbsInterceptor.java:112)
         at oracle.security.jps.ee.ejb.JpsInterceptor.intercept(JpsInterceptor.java:105)
         at sun.reflect.GeneratedMethodAccessor2129.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy411.executeServiceMethod(Unknown Source)
         at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
         at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl.executeServiceMethod(Unknown Source)
         at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:668)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    fusion order demo to the rescue ..
    specify binding.adf within the <service> in composite.xml and you are good to go ..

  • Unable to see the BPM Flow Trace

    Hi, can anybody help,I'm not get the BPM flow trace in EM console but I'm able to see the BPEL flow trace,currently I'm working in 11.1.1.5.Thanks in advance.

    Do you mean JDeveloper 11gR2? BPM is not supported on that version. You must use the matching JDev version and soa+ bpm extension versions.
    Latest is 11.1.1.5.0 with extension version either 11.1.1.5.0 or 1.1.1.1.5.0FP.
    http://www-content.oracle.com/technetwork/middleware/bpm/downloads/index.html
    Heidi.

  • BPM flow instance identifier in message mapping

    Question: Is the unique instance identifier (number) of an executing BPM flow available to a message map being executed in a transformation step in the flow?  I'm thinking that it would be a parameter available in the container object, or something like that.  I would expect to need a user defined function to access it.
    Thanks,
    Chris

    I doubt that you can do that.
    All the StreamTransformationConstants that you can access can be found if you write
    StreamTransformationConstants.
    and press ctrl+space, in eclipse (or NWDS).
    Make sure you have
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    and that you have added aii_map_api.jar to your project.
    Regards,
    Henrique.

  • How to start/stop process flow from sql*plus?

    Hi,
    i know how to start a process flow via sqlplus_exec_template.sql, but i cannot find any information on how to stop (and rollback) a working flow from sql*plus. Any help would be appreciated.
    Greetings
    Christoph
    Message was edited by:
    ctrierweiler

    Hi,
    I've had a go.
    How should I interpret the results of list_requests:
    owner_owr@ORKDEV01> @list_requests
    ====================
    DEPLOYMENTS
    ====================
    Audit ID Status Name Date Owner
    2706 READY Deployment Fri Nov 11-NOV-05 10:49:59 OWNER_OWR
    11 10:46:37 CET 2
    005
    ====================
    DEPLOYMENT UNITS
    ====================
    Audit ID Status Name Date Owner
    2707 READY Unit0 11-NOV-05 10:49:59 OWNER_OWR
    ====================
    EXECUTIONS
    ====================
    Er zijn geen rijen geselecteerd.
    owner_owr@ORKDEV01>
    Whilst a process flow is executing the last query will list executions, all of which have status BUSY:
    owner_owr@ORKDEV01> @list_requests
    ====================
    DEPLOYMENTS
    ====================
    Audit ID Status Name Date Owner
    2706 READY Deployment Fri Nov 11-NOV-05 10:49:59 OWNER_OWR
    11 10:46:37 CET 2
    005
    ====================
    DEPLOYMENT UNITS
    ====================
    Audit ID Status Name Date Owner
    2707 READY Unit0 11-NOV-05 10:49:59 OWNER_OWR
    ====================
    EXECUTIONS
    ====================
    Audit ID Status Name Date Owner
    394512 BUSY PF_ONB01 04-MEI-06 09:11:12 OWNER_OWX
    395328 BUSY ONB:FULL_PREPARE 04-MEI-06 09:11:55 OWNER_OWR
    395324 BUSY PF_ONB01:ONB 04-MEI-06 09:11:55 OWNER_OWR
    owner_owr@ORKDEV01>
    As an aside, I will attempt to get rid of the READY deployment and deployment unit using deactive_deployment.sql
    Now, if I attempt to use deactivate_execution.sql on any of the executions with status BUSY I get:
    owner_owr@ORKDEV01> @deactivate_execution
    Voer waarde voor 1 in: 396136
    declare
    FOUT in regel 1:
    .ORA-20003: The object is not in a valid state for the requested operation
    ORA-06512: at "OWNER_OWR.WB_RTI_EXCEPTIONS", line 94
    ORA-06512: at "OWNER_OWR.WB_RTI_EXECUTION", line 774
    ORA-06512: at "OWNER_OWR.WB_RT_EXECUTION", line 90
    ORA-06512: at line 4
    owner_owr@ORKDEV01>
    So all the seems to remain is to use abort_exec_request.sql
    This does the job, but the script itself hangs.
    I think it has to do with the l_stream_id not being checked again after the initial IF. I think it should probably be part of the loop condition as it is again reset in the do_acks inside the loop.
    Cheers & thanks,
    Colin

  • Two recieve steps to start a BPM?

    Can I start a BPM with a Fork Step that has two Recieve Steps that expects messages from two different Interfaces?

    Hi,
    <i>The idea is that the process must start with one message either message1 or message2 according the help the process won't go on if the two messages not arrive one after the other</i>
    >>Yes, you are right. This is because of the in Fork step properties , you are mentioning the neccessary branches 2. In this case, fork exit condition is 2 branches should execute.
    In your case, you can make Neccessary branch is 1 in the fork step. SO either of one will start the process.
    But in this case, fork will not wait for other message.
    Regards,
    Moorthy
    Message was edited by: Krishna Moorthy P

  • Starting/Stoping Communication Channel programmatically

    Hello Experts,
    is there a way to stop/start PI communication channels programmatically?
    maybe sending a message to a special interface or smth?
    Best Regards,
    Artsiom Anichenka

    Hello,
    You can use Availability Time Planning Tool to schedule a start&stop of desired channels.
    http://help.sap.com/saphelp_nw04/helpdata/en/45/06bd029da31122e10000000a11466f/content.htm

  • IMac seems frozen in that following start-up, sun flower just keeps spinning on a blank screen (only Aplple logo on white screen)

    IMac seems frozen in that following start-up, sun flower just keeps spinning on a blank screen (only Aplple logo on white screen).  Turning off and on not helpful.  Any ideas?

    What  iMac is it and what version of OS X are you running?
    Try an SMC reset: https://discussions.apple.com/docs/DOC-3603
    If that doesn't help, try a Safe Boot: restart holding down the Shift key until you see a grey progress bar - you'll need to input your admin password during boot-up - and once booted, restart as normal from the Apple menu.

  • Need a more compact BPM flow than the one over here.

    This is the BPM i have encountered with.
    The parameters for the steps are :
    1. Start: One Queue
    1. Loop: Condition: CO_endloop value: not = true
    2. Parallel: End condition; necessary branches : value: 1
    3. Fork Start.
    4. Receive: message: Collect message; use correlation: Correlation
    5. Append : target: Collectmessagelist; operation: Append
    6. loop parameter1: target:Co_endloop;expression:False
    7. Wait:duration: 2mins;
    8. loop parameter2: target:co_endloop;expression:True
    9. Applymapping: source and target messages defined.
    10. Send New message: mode:asynchcronous.
    11. Stop: One queue.
    The graphical definition looks like this:
    .................................-> wait(15 minutes) > loop2>
    Start--> loop --> Parallel(Fork).....................Parallel Fork END --> loop END --> append >send>Stop
    .................................--> receive -->append --> loop1 --->
    Kindly show me how this works.
    Is it a good flow;Please inform if u can come up with a more reduced BPM for the said requirement.
    If we have a similar kind of bpm for another interface,with another branch to add in the parallel node specifying the number or cardinality function(specifying number of idocs to be collected along with the wait condition). how can we do it ?
    Please explain.
    If there are any  reference materials in any blogs for the same then please post in reply.

    This is the BPM i have encountered with.
    The parameters for the steps are :
    1. Start: One Queue
    1. Loop: Condition: CO_endloop value: not = true
    2. Parallel: End condition; necessary branches : value: 1
    3. Fork Start.
    4. Receive: message: Collect message; use correlation: Correlation
    5. Append : target: Collectmessagelist; operation: Append
    6. loop parameter1: target:Co_endloop;expression:False
    7. Wait:duration: 2mins;
    8. loop parameter2: target:co_endloop;expression:True
    9. Applymapping: source and target messages defined.
    10. Send New message: mode:asynchcronous.
    11. Stop: One queue.
    The graphical definition looks like this:
    .................................-> wait(15 minutes) > loop2>
    Start--> loop --> Parallel(Fork).....................Parallel Fork END --> loop END --> append >send>Stop
    .................................--> receive -->append --> loop1 --->
    Kindly show me how this works.
    Is it a good flow;Please inform if u can come up with a more reduced BPM for the said requirement.
    If we have a similar kind of bpm for another interface,with another branch to add in the parallel node specifying the number or cardinality function(specifying number of idocs to be collected along with the wait condition). how can we do it ?
    Please explain.
    If there are any  reference materials in any blogs for the same then please post in reply.

  • How to start learning work flow ?

    Hi guys,
    I am working as sap xi developer and worked with BPM and i developed interst to learn sap workflow.
    can any body guide how to start with and any links to documentation of work flow would be great.
    Thanks in advance
    k s reddy

    Hi,
    For more details pls check.........
    Here is a step by step document to create a workflow:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fb/135983457311d189440000e829fbbd/frameset.htm
    Workflow tutorials with step-by-step and with screenshots are available at
    http://www.****************/Tutorials/Workflow/Workflow.htm
    Check this links.
    http://www.sapgenie.com/workflow/
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2857887
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2855919
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2735228
    Thanks and Regards,
    Prabhakar Dharmala

Maybe you are looking for