Starting another process from Automated Activity

Hello,
is it generally possible to trigger the instantiation of another process via an automated activity?
I ask this question, because I already tried this and the service call did execute properly but the second process instance does not start. (Even though it starts when triggered vie the Webservice Navigator.)
Thank you,
Kevin

Thank you for the reply,
I just added a Provider System for my local system and assigned it to the Service Group I am using and now it works.
Kevin

Similar Messages

  • How to create Instace of another process from running process.

    Hi,
    I want to create an instance of another process from my running process. Along with this i want to pass a business object as input parameter to this instance. Please help me to do this !!!

    This and other ways to create an instance in another process was described in Re: create new process instance
    1. Here's how you can create an instance in a process using logic in an Automatic activity's method. This uses the "Fuego.Lib.ProcessInstance.create()" method shown below inside a process:
    // "argsIn" is an associative string array (Any[String])
    argsIn as Any[String]
    // this assumes that the Begin activity has two argument variables
    //   named "nameArg" (a string) and "myBpmObjectArg" (a BPM
    //   object variable) and you're setting them
    //   to the previously initialized variables "name" and
    //   "myBpmObject" respectively
    argsIn["nameArg"] = name
    argsIn["myBpmObjectArg"] = myBpmObject
    // logic here to determine the name of the process to create an instance in
    idOfProcess as String
    idOfProcess = <hard coded string that has the id (not the name) of the process to instantiate>
    ProcessInstance.create(processId : "/" + idOfProcess, arguments : argsIn,
         argumentsSetName : "BeginIn") ProcessInstance is in the Catalog inside Fuego.Lib.
    The processId parameter (the "idOfProcess" variable in the above logic) is the thing I most commonly screw up with this. It is the text you see when you right mouse click the process in the Project Navigator tab -> "Properties". Look at the value in the "Id" field and not the "Name" field here (the name without any space characters). Prefix it with a "/" as is shown here and if you've deployed this using an organization unit (OU) then prefix this to the string also.
    The third parameter is almost always "BeginIn". Begin activities in a process can have many incoming argument mappings, the default is "BeginIn". To see yours, double click the process's Begin activity and look at the mapping's name in the upper left corner of the dialog.
    "argsIn" is the set of incoming argument variables you want passed into the process. A common mistake is to type in the names of the incoming argument variables without the double quotes like this:
    // this will *NOT* work
    argsIn[nameArg] = name
    argsIn[myBpmObjectArg] = myBpmObject
    . . .Here is the correct syntax:
    // this *WILL* work
    argsIn["nameArg"] = name
    argsIn["myBpmObjectArg"] = myBpmObject
    . . .In this example, the process has two argument variables. It does not matter if the incoming argument variables are primitive type arguments (e.g. String, Integer, Decimal...) or BPM Objects, it is always done the same way. In this example, there is a String incoming argument called "nameArg" and a BPM Object incoming argument called "myBpmObjectArg".
    2. A process can create a new instance in another process using the Subflow activity which synchronously creates an instance in a child subprocess and waits for the result to return once the instance in the child subprocess reaches the End activity in the process. From the parent process, you'd match the incoming and outgoing argument variables of the called child process with instance variables in your parent process.
    3. A process can create a new instance in another process using the Process Creation activity which asynchronously creates an instance in a child subprocess (fire and forget) but does not wait for the child to respond to the parent. Once the child process begins, the parent continues its flow. From the parent process, you'd match the incoming argument variables of the called child process with instance variables in your parent process.
    Dan

  • Start BPM Process from ABAP with another User as GUEST

    Hi all,
    i would like to start the BPM Process by a webservice. It works if the user GUEST has the role BPM_SuperAdmin.
    My question is: How can i chance this user, who call the webservice starting the process. The user, who starts the process by calling the webservice should be my own user instead of GUEST.
    Thanks in advance.
    Regards,
    Christoph

    the last reply is regarding the configuration at consumer side.
    of course you have to configure at the service provider side to enable the logon ticket as acceptable authentication method.
    I checked at my side, i found the the service for triggering bpm is already configured to use id/pwd and logon ticket as authentication method.
    you can check in this way,
    CE nwa-> SOA  Management->Application and Scenario Communication-->Single Service Administration
    find your service, if you haven't assign any profile to your service, there will be only one configuration generate by system
    you can edit this configuration.
    go to configuration tab, select the endpoint, select security tab in the bottom tab list.
    change the setting there.
    Edited by: John Wu on Sep 10, 2010 7:29 PM

  • Process Composer - Automated Activity - Output Mapping Error

    Hi,
    I am trying to consume the standard
    DocumentERPCreateRequestConfirmation_In_V1
    service in a process - CE 7.1 EHP1.
    Created one automated activity in the process to execute this service.
    When I try to do Output Mapping for the automated activity to Context, it throws an error:
    Incompatible expression type.
    Expected:Log,ns="http://example.org/test"
    Found:Log,ns="http://sap.com/xi/EA-APPL/SE/Global"
    "http://example.org/test" is the namespace of the context I'm using - a Web Dynpro Context.
    Any idea why is it so & what the error is?
    Thanks,
    Harish

    Hi Harish,
                   When I try to do Output Mapping for the automated activity to Context, it throws an error:
    Incompatible expression type.
    Expected:Log,ns="http://example.org/test"
    Found:Log,ns="http://sap.com/xi/EA-APPL/SE/Global"
    "http://example.org/test" is the namespace of the context I'm using - a Web Dynpro Context
    once u have mapped the node, u will get this error message. to remove the error message, map all the attributes from Node A to Node B.
    Hope your problem will be solved.
    Thanks and regards

  • Start BPM process from ABAP report. Need some investigations.

    Hi there!
    I have to start a BPM process from ABAP report. I found an article http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10d75b45-7fef-2b10-bc8e-c6012e0a9457?QuickLink=index&overridelayout=true and have done everything it describes but the process doesn't start.
    What I've done:
    1) Created a service proxy in SE80.
    2) Created a logical port in SOAMANAGER.
    3) Write a code to start a WebService in ABAP Report.
    But when I start a program nothing happens, no errors.
    What analysis I did:
    1) See logs and traces in SOAMANAGER - there is nothing appears after I start the report.
    2) Tried to test connection to my WebService in SM59 - the connection works, but it use a POST method instead of GET:
      Error: com.sap.engine.services.webservices.espbase.server.additions.wsa.WSAddressingException: com.sap.SOA.wsr.030104 - Expected request method POST. Found GET.
    But I think it is OK and from the report it use a right method.
    3) Tried to delete a logical port - the error of communication problem appears. So it means that all settings are right.
    4) No logs in NWA logs
    My thoughts - if there is not any errors and no result, it can be because the user authorization. E.g. it tried to start a process by a user who doesn't have SAP_BPM_SuperAdmin role. But I can't find a way how to check what really happens. So I want to ask for a help, colleagues:).

    Dear Kirill Zhuklinets,
    Can you share your solution as i am facing the same error while trying to consume BPM webservice from SRM ECC
    Error Message from SRM ECC :
    Exception occurred in communication framework:Error in HTTP Framework:405Method Not Allowed
    Log from BPM Web service
    Error: process()
    [EXCEPTION]
    com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException: com.sap.engine.services.webservices.espbase.server.additions.wsa.WSAddressingException: com.sap.SOA.wsr.030104 - Expected request method POST. Found GET.
    Please share your solution..
    Regards,
    Yasin

  • Start GP Process from VC using Web Service with parameters

    Hi,
    II´m trying to instantiate a GP process from a Vc iView using a Web Service; I always used Instantiation via URL but using this method I don´t have any "return" data from GP saying "Ok - The process started succesfully".
    The questions are:
    1) Is possible to start a GP process via Web Services through a VC Flash iview? If so, is posible to send input parameters to the process via the web service?
    2) Does the web service returns any message with the status of the process? ( something like: "the process started succesfully")
    Best regards,
    Marco.

    1) Is possible to start a GP process via Web Services through a VC Flash iview? If so, is posible to send input parameters to the process via the web service?
    A: Yes. You can send input parameters to the service through WS.
    2) Does the web service returns any message with the status of the process? ( something like: "the process started succesfully")
    A: Yes. The return message can be added to the WS. It depends on how do designed the WS.
    -Ashutosh

  • Starting one process from another

    Hi,
    I want to wite a program which starts 2 java processes.
    One way is like , start.bat is a batch file , which contains two commands as ,
    start.bat
    java start_program_1
    java start_program_2
    Use exec command to run batch file.
    I tried doing this , but batch file is not called.
    Can any one help me out.
    Thanx.

    I understand now but, still, how can you be sure there's a problem with the command prompt?
    Let me try to explain better:
    When Runtime.exec() executes it returns a new Process object.
    This Process object does not use the same streams as your calling program. Instead it uses three new streams which can be obtained by calling Process.getInputStream(), Process.getOutputStream() and Process.getErrorStream(). (I believe the names are from the caller's point of view, i.e. in is actually out and vice versa) Before you can conclude there's something wrong with your system please try to read data from these streams.
    It is normal not to see anything in System.out and System.err. They are not being used at all by the called process!
    Finally be sure your caller process waits for the subprocess to finish before it terminates. Use Process.waitFor()

  • Start host process from within guest OS

    I am using VMWare Workstation 10.
    Some of my vm's are dedicated to compiling code using CruiseControl.NET.
    What I am attempting to do is add a step that automates testing a completed setup on several clean virtual machines. From what I can see, the guest OS will be required to 'announce' to the host OS that a build has completed and then launch a process to revert the virtual machines, start the virtual machines and then launch a process that does the following:
    Copy the setup.exe from a known location to a directory on the virtual machine
    Launch the setup.exe with parameters from a command line
    Wait for setup.exe to finish
    Launch an automated testing tool to validate basic functionality of the application.
    Wait for automated testing to complete
    Shut down the virtual machines
    Wait for next successful build
    I am attempting to work on this problem using vmrun.exe within a powershell script. With this script I can successfully revert virtual machines, start and stop virtual machines.
    What I am trying to work out is how to pass data from CruiseControl.net in the guest operating system to the host operating system. So I am turning to this community to see if anyone here has any ideas?
    I have not read of any ideas of communication from the guest to the host while there is a 'host' <yeah, pun is intended> of information of sending info from the host to the guest. Note that the guest OS does not have VMWare Workstation installed, nor is it desirable to do this.
    My initial thoughts, even as I write this question, is that all of the guest OS build machines map a drive to the host. At the end of of a successful build the setup is copied to a directory and a sentinel file is updated with information. The host OS will have CruiseControl.net installed and will monitor for file changes for the sentinel file. When changed then it will start the automated testing process.
    Is there a better way to accomplish this goal?
    I appreciate any suggestions.
    Sincerely,
    Dan Lee | Release Engineer

    >I guess I was expecting VPC to work like Remote Desktop, where you would automatically see the host drives listed in Windows Explorer ("C on hostname", "D on hostname", etc).
    It really should, but there's a RDP update that messes up this
    functionality.
    >Edit 2: I've just set up a mapped drive, but it seems very unreliable. It gets slower and slower as I "drill down" through folders on the host, and right-clicking a file to copy it to the guest causes Windows Explorer to hang, and never
    shows the context menu. I've tried uninstalling IS from the guest and re-installing/enabling it, but it made no difference. Thoughts?
    Turn of all TCP and UDP offloading in the NIC properties on the host. Not
    all NIC's are fully compatible on that feature.
    Bob Comer Microsoft MVP -- Hyper-V

  • Start Unix process from oracle

    Hi All :) ,
    I'm started subj from Java stored procedure , but unsuccessfully :(
    ls -la zzz :
    zzz* rwxr-x--- test test ;
    User oracle is included in group test and has right on directory with zzz .
    When zzz hat sgroup flag : zzz* rwxr-s--- , then ok .
    I cann't undestand , why ?
    With best regards :)

    Hi Slava,
    If you haven't seen the following two web pages already, perhaps they
    can help you?
    http://asktom.oracle.com/pls/ask/f?p=4950:8:1135912::NO::F4950_P8_DISPLAYID,F4950_P8_B:150612348067,Y
    http://asktom.oracle.com/pls/ask/f?p=4950:8:1135912::NO::F4950_P8_DISPLAYID,F4950_P8_B:952229840241,Y
    Good Luck,
    Avi.

  • Geany starts another process when openning a second file?

    Hey,
    I'm running KDE. Geany is set as my default editor for php scripts. When I click on a .php file, it opens up in geany fine. When I click on a second file, though, the file does open up in my current geany window, but another geany "window" starts (it appears as a application in the bottom task bar, but no actual window is displayed) and stays around for about 30 seconds (causing kde to say it's busy, ie, the little bouncing icon next to the mouse). I can still use geany during that 30-second period, but the fact that's is happening at all really ticks me off.
    Anyone know why this happens or how to fix it? Thanks.

    That's just KDE being silly. Nothing to worry about.
    I myself always disabled that annoying program startup notification. Never worked right.
    What KDE version are you using ?

  • Start anothe program from PL/SQL

    Hello,
    I want to start a scanner via PL/SQL or APEX. How can I set a OS command?
    Regards
    Siegwin

    3 basic options:
    - external procedure (aka <i>ExtProc</i>)
    - using DBMS_SCHEDULER
    - Java stored proc
    For an extproc example see {message:id=2271919}.
    For a Java stored proc example see {message:id=1107330}.

  • How to start a process from AIR/Flex

    Hi people,
    I just wonder whether it's possible for a Flex/AIR
    application to start a program on the user's machine. I did browse
    the Livedocs but didn't find a solution there. Or is it not
    possible at all because of security implications?
    Best regards,
    Phil

    Hi,
    As of AIR 1.5, this is not possible. But you can have
    indirect workarounds (that complicates installation though) like
    CommandProxy
    http://www.mikechambers.com/blog/2008/01/17/commandproxy-net-air-integration-proof-of-conc ept/
    or Merapi
    http://merapiproject.net/

  • Start process from JSP which continues running after response is completed

    Is it possible to start a process from within JSP which can continue running after the HTTP response is complete, so the response doesn't time out??

    Your question is a little vague. If I am understanding your question correctly, it sounds like you are starting a process in JSP that takes a long time, and the browser is timing out. If this is your question, then here is my response:
    We've had this situation before. Often times it occurs because the JSP page launches a long database operation that could take an hour. You have a few choices, but one good approach is this (any variation of this works too):
    1. When the page loads and you need the process to start, create a new thread and have the long operation run from this thread. You can put the thread object into a session variable and store it for later use.
    2. Have the JSP code output a META-REFRESH tag on the page so that the page refreshes every 30 seconds or so.
    3. On each refresh, you get the thread object from the session context and check it to see if it is done or still running. If it is, then just output another META-REFRESH and the page will keep refreshing itself. If it is done, you can, of course, output a "finished" message to the user.
    You can also have a stop button on the page that you can use to send a message to the thread to stop.
    Hope that gives you some ideas!
    Michael

  • Invoke process from method implementation of automatic activity

    Hi,
    I want to invoke a business process from automatic activity of another business process deployed on same engine and in same project as well. Please provide steps, if possible for the same.
    Thanks in advance.

    Hi Ketan,
    Here's how you can create an instance in a process using logic in an Automatic activity's method. This uses the "Fuego.Lib.ProcessInstance.create()" method shown below inside a process:
    // "args" is an associative string array (Any[String])
    argsIn as Any[String]
    // this assumes that the Begin activity has two argument variables
    //   named "nameArg" and "amountArg" and you're setting them
    //   to the variables "name" and "amount" respectively
    argsIn["someArgVarName"] = "Hello"
    argsIn["someBpmObject"] = myBpmObject
    // logic here to determine the name of the process to create an instance in
    idOfProcess as String
    idOfProcess = <hard coded string that has the id (not the name of the process to instantiate>
    ProcessInstance.create(processId : "/" + idOfProcess, arguments : argsIn, argumentsSetName : "BeginIn") ProcessInstance is in the Catalog inside Fuego.Lib.
    The processId parameter (the "idOfProcess" variable in the above logic) is the thing I most commonly screw up with this. It is the text you see when you right mouse click the process in the Project Navigator tab -> "Properties". Look at the value in the "Id" field and not the "Name" field here (the name without any space characters). Prefix it with a "/" as is shown here and if you've deployed this using an organization unit (OU) then prefix this to the string also.
    The third parameter is almost always "BeginIn". Begin activities in a process can have many incoming argument mappings, the default is "BeginIn". To see yours, double click the process's Begin activity and look at the mapping's name in the upper left corner of the dialog.
    "argsIn" is the set of incoming argument variables you want passed into the process. A common mistake is to type in the names of the incoming argument variables without the double quotes like this:
    // this will *NOT* work
    argsIn[someArgVarName] = "Hello"
    argsIn[someBpmObject] = myBpmObject
    . . .Here is the correct syntax:
    // this *WILL* work
    argsIn["someArgVarName"] = "Hello"
    argsIn["someBpmObject"] = myBpmObject
    . . .In this example, the process has two argument variables. It does not matter if the incoming argument variables are primitive type arguments (e.g. String, Integer, Decimal...) or BPM Objects, it is always done the same way. In this example, there is a String incoming argument called "someArgVarName" and a BPM Object incoming argument called "someBpmObject".
    Hope this helps,
    Dan

  • BPM start process from WD UI

    Hi all,
    I am quite new with BPM in the SAP environment and for the moment I am strugling with the start of a process using an WD UI.
    What i have is a simple process with two activities. The process starts with no problems from the respository and also I created a wdsl and managed to start the process from the wsnavigator.
    Now I want to start the process from a simple UI. For that I created a WD component, assigned it to an app and connected to a model. Next I edited my portal to have a new folder with a page that contains my app.
    The UI has to fields and a button. My goal is to use that button to start my process.
    Probably I am doing something wrong when creating the action and maybe someone can help me with the java part on the actual button action.
    Please help. Thank you.
    Regards,
    Stefy

    I've made a lot of research and of course found a lot of forums and help. But for the moment I had some issues with addapting them completely to my situation, since I have to prior experience with this.
    For example I think this is the best solution that I have found so far: /people/arafat.farooqui/blog/2010/06/23/introduction-to-sap-netweaver-bpm-part-6
    but at the following step:
    / Bind the object
    wdContext.nodeRequest_Name().bind(objRequest);
    I can't figure out what is the nodeRequest_Name()...
    couldn't find this "asset" in my WDContext.
    Regards,
    Stefy

Maybe you are looking for

  • Get an error message on premiere startup

    Cant open premiere without error message coming up. Have tried reinstall of premiere and problem persists. This is the error message: Process:         Adobe Premiere Pro CC [4020] Path:            /Applications/Adobe Premiere Pro CC/Adobe Premiere Pr

  • How do I update a plug-in if its status is unknown ?

    When I look at my list of plug-ins, some of them are green, but others are blue and it says "Status unknown". If I click on Research it gives me Google results. How do I determine if I have the plug-in and if so, how do I update it or if not, how to

  • Trying to run adobe reader update 9.3.3 on a xp sp3 box

    Message is " The upgrade patch cannot be installed by windows in staller servi ce because the program to be upgraded may be missing or the upgrade pa tch may update a different version of the program. Verify that the program to be upgraded e xists on

  • Livecache Error in SCM5.0 - Database Instance Not Found

    Hi, I installed SCM5.0 SR2 IDES version on Windows 2003. I selected Livecache in SAP System option when installing SCM5.0. After complete installation, I executed MAxDb exe file to install the MaxDb. I get this error when I try to access LCA Monitor

  • Preflight for index color help

    Hi, our RGB to CMYK conversion process does not like greyscale images in indexed colour mode, which is the way Quark converts them in it's PDFing process. Customer can't convert to ID, so I'd really like to create a Preflight Profile to provide them