Start process remotely

I would like to call exe(start process) on another computer from CLR procedure?
Is it possible?
Now, i have System.Diagnostics.Process but it copies exe locally and run it on sql server computer, not on remote one.

You could use WMI library subject to security considerations, but this is unsupported, assembly and dependencies must be UNSAFE, and your code may stop working in future releases. Search this forum for "WMI" to see some of the things folks have
run into.
Cheers, Bob
   

Similar Messages

  • Invoke-WMIMethod failed to start process on remote server

    Hi Folks,
    I am trying to run an exe in remote server to automate some of my application startup process in disconnected mode(Using powershell 2.0). However Invoke-WmiMethod does not trigger the application but start-process triggers it fine. I am trying following
    command -
    $FullExecutable = "\\remoteserver\abc\project\environment\ServerApplications\ApplicationDirectory\App.exe"
    $Arguments = "stanza=ApplicationVariable"
    PS Microsoft.PowerShell.Core\FileSystem::\\remoteserver\abc\project\environment\ServerApplications\ApplicationDirectory> Invoke-WmiMethod -class Win32_process -name Create -ArgumentList "$FullExecutable $Arguments"
    I tried these options but no luck -
    http://social.technet.microsoft.com/wiki/contents/articles/7703.powershell-running-executables.aspx
    Please help me fixing this issue. Thanks for any advice.
    Charlie

    Hi Charlie,
    Since I have no test app.exe file, I tested with notepad.exe and ran these scripts to open local file D:\1.txt, would you please list the test results with app.exe:
    $a="Notepad.exe"
    $b="D:\1.txt"
    Invoke-WMIMethod -Class Win32_Process -Name Create -ArgumentList "$a $b"
    ([wmiclass]"win32_Process").create("$a $b")
    Start-Process $a -ArgumentList $b -wait -NoNewWindow -PassThru
    If you have any other questions, please feel free to let me know.
    Best Regards,
    Anna Wang

  • Trigger a process remotely

    Hello,
    I have two CE(SAP AS Java) servers, I'm working on one server, and I'm trying to start a process remotely on the second server. For doing this, i have some webservices that i found through the wsnavigator, which are the same on both servers, and which could trigger a process locally.
    I want to know if it is possible to trigger processes remotely, by using those webservices. And if so, how can i make this connection between server 1 and server 2 (Force server 1 to "look" for processes in server 2 and not in its own process repository). Thank you.
    Best Regards,
    Jean

    forget about it

  • Process chain: manual data change as start process?

    Hi,
    i have two BWs in which i hold identical InfoObjects (master data). now i want to use a process chain to transfer any changes made to the data in BW X into that object in BW Y.
    is it possible to use manual changes of this master data as a start process for the process chain? i only saw the possibility to use InfoPackages and so on. but my process chain should just be triggered by a manual change in the master data attributes.
    how do i configure an event as a trigger for the process chain? i do not see the purpose of a start process because i do not see how i can link it with an event...
    cheers,
    stefan
    Message was edited by: Stefan Voltz

    Hi Ram,
    i hope I understood everything right.
    the table that you called "ztest1" I replaced with /BIC/PVCOM1_U02. That is the copy of the master data from the remote system.
    The table in the local system, with which we compare the table /BIC/PVCOM1_U02, has the name /BIC/PVCOM1.
    The name of the event I created is called "VCOM_DATA_CHANGE".
    And here it goes...
    ****************BEGIN OF PROGRAM**********
    *& Report Z_EVENT_DATA_CHANGE
    REPORT Z_EVENT_DATA_CHANGE.
    /BIC/PVCOM1_U02 is the table copied from the remote system
    /BIC/PVCOM1 is the table containing the master data on the current system
    tables: /BIC/PVCOM1_U02, /BIC/PVCOM1.
    data: zrec_old(15), zrec_new(15) type c.
    data: ztest_old type /BIC/PVCOM1_U02 occurs 10 with header line,
    ztest_new type /BIC/PVCOM1 occurs 10 with header line.
    select * from /BIC/PVCOM1_U02 into TABLE ztest_old.
    zrec_old = sy-dbcnt.
    select * from /BIC/PVCOM1 into TABLE ztest_new
    where OBJVERS = 'A'.
    zrec_new = sy-dbcnt.
    if i understood correctly, we sort the tables by field names
    so i replaced CURRENCY and ANSALARY by /BIC/PVCOM2_U02, which is the only field in my table beside /BIC/PVCOM1_U02
    sort ztest_old by /BIC/ZTEST1 CURRENCY ANSALARY.
    sort ztest_old by /BIC/PVCOM1_02 /BIC/PVCOM2_U02.
    sort ztest_new by /BIC/PVCOM1 /BIS/PVCOM2.
    if zrec_old <> zrec_new.
    perform event_raise.
    else.
    loop at ztest_new.
    read table ztest_old with key
    /BIC/PVCOM1_U02 = ztest_new-/BIC/PVCOM1  "dot missing?
    /BIC/PVCOM2_U02 = ztest_new-/BIC/PVCOM2.
    if sy-subrc <> 0.
    perform event_raise.
    endif.
    endloop.
    endif.
    *& Form event_raise
    text
    --> p1 text
    <-- p2 text
    FORM event_raise .
    CALL FUNCTION 'BP_EVENT_RAISE'
    EXPORTING
    EVENTID = 'VCOM_DATA_CHANGE'
    EVENTPARM = ' '
    TARGET_INSTANCE = ' '
    EXCEPTIONS
    BAD_EVENTID = 1
    EVENTID_DOES_NOT_EXIST = 2
    EVENTID_MISSING = 3
    RAISE_FAILED = 4
    OTHERS = 5.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at ztest_new.
    move-corresponding ztest_new to /BIC/PVCOM1_U02.
    modify /BIC/PVCOM1_U02.
    commit work.
    endloop.
    LEAVE PROGRAM.
    ENDFORM. " event_raise
    ****************END OF PROGRAM**********
    Thanks for helping me again.
    I will now find out, how two implement and schedule this program. And how to run the process chain based on that event.
    Stefan

  • Start-Process : This command cannot be run due to the error: The system cannot find the file specified.

    Hi, 
    I need some help with my script. It copies the file to the remote laptops but when it needs to install the .exe it fails.
    If I run 1 line at the time in Powershell ISE, then it works. Somebody has an idea why it doesn't work or can help me on the right way?
    Script: 
    $laptops = Get-Content -Path "C:\Users\bruyld01\Documents\STEPSTONE\Powershell\SAP\LaptopList.txt"
    foreach ($laptop in $laptops)
        Copy-Item "C:\Users\bruyld01\Desktop\SAP_Business_ByDesign_Add-In_for_Microsoft_Outlook_V5.exe" -Destination \\$laptop\C$\
        Enter-PSSession $laptop
        $version = Get-WmiObject -Class Win32_Product | where {$_.Name -like "*SAP Business*"} | Select-Object Version
        if ($version -ne "135.0.2071.1047")
            Start-Process -Filepath "C:\SAP_Business_ByDesign_Add-In_for_Microsoft_Outlook_V5.exe" -ArgumentList "/quiet"
        else
            Write-Host "SAP outlook add-in is up to date!" -ForegroundColor Green
        Exit-PSSession
    Error message:
    Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
    At line:2 char:1
    + Start-Process -Filepath "C:\SAP_Business_ByDesign_Add-In_for_Microsoft_Outlook_V ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException
        + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
    Thanks, 
    Dimitri

    Hi,
    Enter-PSSession is used for interactive remote sessions. Look into Invoke-Command instead.
    http://ss64.com/ps/invoke-command.html
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Invoke-command -computername RemoteServer {start-process c:\install\.bat}

    I am running an invoke command from a PC to run a .bat file on a remote server. However i would like to see the output of the .bat file run in my powershell window on my local PC. Any tips on this?
    I have this at the moment
    invoke-command -computername Server {start-process c:\install\.bat}
    however this just completes without showing  me anything. Can i see the output of the .bat file on my local PC?
    Thanks in advance

    invoke-command -computername Server01 -filepath c:\Scripts\scriptname.ps1
    The script has to be on the local machine or has access to it.
    If this is helpful please mark it so. Also if this solved your problem mark as answer.

  • I can not start a remote server via Node Manager

     

    There is a workaround to this problem. The issue seems to be
    that when the node manager tries to start the managed server
    it can not find java.exe in the system path. So please go to
    Control Panel->System->...->Environment, and modify your PATH
    system environment variable to include the java bin directory
    in it.
    Then try using the node manager again to start the managed
    servers and you should have no problems.
    We are aware of the issue and working on having a fix for it.
    Savvas
    "Rakesh Chauhan" <[email protected]> wrote:
    >
    Hey Guys!
    I am using WLS6.1 on WIN2000 boxes. And I am getting the same error on
    the Admin
    console when I try to start any of the two
    managed servers.
    <Sep 25,2001 1:39:12 PM EDT> <Info> <[email protected]:7002><WindowsProcessControl:
    online successfully invoked on server 'server90', pid: 0> The interesting thing is that when I start managed server of its own,
    it is started
    successfully and you can Stop the managed
    server from the Admin Console.
    Really frusted, I hope I have configured everything correctly. Can somebody
    help
    me out ?
    Thanks Rakesh
    "Martin Matthews" <[email protected]> wrote:
    This message is simply a message from the Admin Server saying that it
    has asked
    NodeManager on the remote machine to start a certain server.
    To see the logs for server startup then you can find these either on
    the Admin
    machine at WL_HOME/config/NodeManagerClientLogs/<ManagedServerName>/*.log
    or on the remote machine at
    WL_HOME/config/NodeManagerLogs/<ManagedServerName>/*.log
    Cheers
    Martin
    "Paul Nixon" <[email protected]> wrote:
    I also would like to know the answer to the question below from Vincent.
    I am getting
    this message in the Admin console from either of my two managed servers
    whenever
    the console has successfully contacted the Node Manager in managed
    server
    host.
    The Node Manager logs themselves also report "online successful". What
    doesn't
    seem to happen is WebLogic startup and I haven't found any error log
    that explains
    why.
    I have set the Remote Startup parameters correctly [I think] for both
    managed
    servers so cannot see what further is required.
    Any input appreciated.
    Paul.
    "Vincent Ducret" <[email protected]> wrote:
    Hi everybody,
    When I try to start a remote WLS 6.1 server from my computer, I receive
    the message
    below in my WLS administration console. The Node manager is runningon
    the remote
    machine and correctly configured, I hope!
    What does this message mean ???
    Thanks for your help
    Vincent
    <21 août 01 10:19:17 CEST> <Info> <[email protected]:5555>
    <WindowsProcessControl:
    online successfully invoked on server 'testserver', pid: 0>

  • Not able to start the remote server - class not found exception

    All,
    I am quite new to RMI programming, although i am an experienced java programmer. I am facing a problem in starting the remote server program which i wrote for RMI. I am getting class not found exception for "stub" class eventhough the class is in the classpath.
    Following is the error console:
    cmd> java -classpath "D:\Eclipse_WorkSpaces\WS2\RMITests\classes" MyServerImplementation
    GetNames error: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: MyServerImplementation_Stub
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: MyServerImplementation_Stub
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
    at sun.rmi.transport.Transport$1.run(Transport.java:159)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Naming.java:160)
    at MyServerImplementation.main(MyServerImplementation.java:21)
    Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: MyServerImplementation_Stub
    at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
    at sun.rmi.transport.Transport$1.run(Transport.java:159)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassNotFoundException: MyServerImplementation_Stub
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:434)
    at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
    at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
    at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
    at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    ... 12 morePLEASE ADVISE HOW TO RESOLVE THIS...
    Following are my classes:
    MyRemoteInterface.java
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface MyRemoteInterface extends Remote {
    public String[] getNames() throws RemoteException;
    public class MyServerImplementation extends UnicastRemoteObject implements
    MyRemoteInterface {
    public MyServerImplementation()throws RemoteException{
    super();
    public String[] getNames() throws RemoteException{
    return new String[]{"Name1","Name2","Name3","Name4"};
    public static void main(String args[]) {
    try {
    // Create an object of the HelloWorldServer class.
    MyRemoteInterface obj = new MyServerImplementation();
    // Bind this object instance to the name "HelloServer".
    Naming.rebind("rmi://localhost:1985/GetNames", obj);
    System.out.println("GetNames bound in registry");
    catch (Exception e) {
    System.out.println("GetNames error: " + e.getMessage());
    e.printStackTrace();
    public class MyRMIClient {
    *@param args*
    public static void main(String[] args) {
    try {
    MyRemoteInterface remObj = (MyRemoteInterface) Naming.lookup("rmi://localhost:1985/GetNames");
    System.out.println("Names are "+remObj.getNames());
    catch(Exception e) {
    System.out.println("Problem encountered accessing remote object "+e);
    }

    That's a remote exception coming from the registry. You need to learn to recognize remote exceptions and their source, it's a mjaor source of confusion in RMI.
    In this case it's the registry that can't find the stub class.
    The stub class needs to be in the CLASSPATH of (i) the Registry and (ii) the client as well. Ditto the remote interface; ditto any application classes it refers to, and so on until closure.
    The easiest way to achieve (i) is to start it in the server's JVM, with LocateRegistry.createRegistry().

  • BPM Start Process

    We have scenario(file to file) where we get multiple files and is merged using BPM, transformed and sent to the receiver. We have file This is a time based collection. Incoming file adapter is set to poll every 30 sec, and the block in BPM timeout in 2 mins ( for testing purpose).
    The BPM receive step (inside the loop) has the start process turned on. The expected behaviour was to receive all files in one instance of BPM and send the merged one out.
    It is spawning the multiple BPM instance based on number of files in the sender file adapter. My guess is it is doing this since we have the start process on receive step and for each receive it is starting a new process. How do we eliminate this to have only one instance start as I am not finding any other step prior to receive ( block , and loop) where I can start the process.
    Any help is appericiated.
    Thanks,
    Samir

    1. If you want to merge the same file format , Use "Loop" step before "Recevie" step. Put some deadline branch , which will ensure your time limit.
    This would resolve your problem.
    2. If you want to merge different file format , you need to have multiple "Receive" steps and for that you need to use the "Fork" step.
    Let me know if you still find any problem.
    Thanks & Regards,
    Dijesh Tanna.

  • Existing Categories are not listed in the Start Process

    Hello,
    I am currently using LC ES3 with SP3 and start having an issue with no Catgory listed in the Workspace ES3.
    I checked the AdminUI > Application n Services > Categories and no Category is there either. If I create a new Category in the Admin UI then I can see it is listed in the Workspace ES3 but not sure why all of the existing Categories are not listed there.
    Does any one have idea about this issue or any advise on this? Can you please share.
    Thanks in advance,
    HD

    The -1 simply means it has no parent.  I'm not sure when they enabled trees in the categories(much needed improvement!) as we just upgraded finally from 8.2....  For example if you have Category 1 and Category 2.  If they are both -1 you will see them both on the "Start Process" screen.  Where as if Category 1 was OID(2001) and parent_oid(-1) and Category 2 was OID(2005) and parent_oid(2001) then Category 2 would be under Category 1 in a treeview.
    You just need to make sure that the parent_oid column is not nothing.  If you did an upgrade it most likely is like ours was and the column is empty since it was a new column that 8.2 did not have.
    Pic1 is (-1) for both.
    Pic2 is Category 2 having Category 1 as it's parent.
    Pic of the database for With Category 2 using Category 1 as a parent.

  • Can't get batch from droplet to start processing

    I'm using Compressor 4.0.7 running 10.8.5, but I've seen similar posts on other boards (Creative Cow) reaching back 2-3 years with same issue so I don't think it is new.
    When using a droplet to submit a batch vs. submitting manually through Compressor, the droplet batch appears in Share Monitor, but hangs with a status of "Waiting" and never begins to get processed by my QuickCluster.
    It clearly seems to be a bug as I did an A-B test without restarting any machines (host or clients) in the cluster and tried to submit 8 files by dragging them to the droplet.
    Within a few seconds the batch appeared as expected in Share Monitor, but was stuck "waiting."
    After a few minutes I manually created a batch in Compressor using the exact same 8 files, with same settings and same destination and submitted it directly from Compressor.
    After a few seconds that batch also appeared in Share Monitor and immediately started processing correctly.
    After it was finished successfully I then thought that maybe the "waiting" batch would then start up since things had gotten started in the queue.
    No such luck - it just continued to hang with the "waiting" status.
    Any ideas? It sure would save a ton of time to be able to use the droplet over and over ...
    thx in advance.

    Thank you very much for helping Allan. Something must have been wrong with the iTunes software. I switched it from Automatically sync when the iPhone is connected, to manual, clicked apply, then switched it back to Automatic, and now sync is in process. As a side note, I'm on Windows 7 and that may have had something to do with it. But it's working now, and why it didn't before when I did exactly the same thing is beyond me.
    But again, thanks for your help.

  • Using CREATE PROCESS and START PROCESS in a JSP

    Hi,
    I have built a simple JSP page. I want to call my workflow program from this page.
    How should I use the CREATE PROCESS() AND START PROCESS() inside the JSP page?
    Also I want to get the value entered in the text field (which will be a hidden field) to be passed to the ITEM_ATTRIBUTE, which I have defined in my program. How can this be achieved?
    Please give me the syntax for this.
    Please find below the JSP page
    =========================================================
    <%@page import= "java.util.Date" %>
    <script language="javascript" src="ibeCButton.js"> </script>
    <html>
    <head>
    <title>First Page</title>
    </head>
    <body>
    <H3>Today is:
    <%= new java.util.Date() %>
    <INPUT TYPE="text" NAME="CART_ID">
    <INPUT TYPE="submit" onclick = >
    </H3>
    </body>
    </html>
    ==========================================================
    To use LAUNCHPROCESS in JSP, the following is the syntax.
    public static boolean launchProcess
    (WFContext wCtx,
    String itemType,
    String itemKey,
    String process,
    String userKey,
    String owner)
    Should WFContext have the connection information of the DB.
    If I pass only the WFContext and itemType attributes are they enough? Please let me know.
    Thanks

    There are two options.
    1. Good one.
    Include wf*.jar files in your system CLASSPATH. Use oracle.apps.fnd.wf.engine.WFEngineAPI class to access engine APIs. You would need to pass WFContext for which you need WFDB.
    You basically created WFDB with username, password and connect string. Pass it to WFContext and use it for all Workflow Engine APIs.
    2. OK one.
    You can get JDBC connection using the default mechanism that your custom Java and JSP code could be using. Call the PLSQL procedures WF_ENGINE.CreateProcess and WF_ENGINE.LaunchProcess over JDBC.
    Anyways option 1 makes life easier.

  • Create Requisition Request - MSS (Start Process Grey Out-No Data available)

    Hello All
    We are using SRQ2 extended requesition request. Currentlt i am on Devlopment system and just want to see the standard requistion request from MSS so that later i can make a Z copy and customize
    Now when i logged in as a Manager and click on the "Create Requisition Request" from recruiting role it's opening and showing me the Start Process window and everything is non editable and showing me that No Data Avaialble
    Is there any config missing for this
    Also when is see the SRQ2 from SPRO "Define Own Scenarios for Request to Change Master Data" node i made the SRQ2  application as H and aslo tried. But nothing useful.
    Can any one tell me any configuration missing or any other things

    Solved.
    Problem was in MSS the Ehp4 links for erecruiting refers to SRQ3. So i had to pull the iviews from MSS 1.31 BP which will be Webdynpro Java

  • Unable to start process via GP API in which group is exposed as input

    Hi,
         I am not been able to start process using GP API for the particular senario.
    I created Process at design time.
    In this process I mapped parameters to a group and exposed this group, So that input is required for initiating the process.
    Now I want to initiate this process via GP API.
    I got sucess in starting processes which takes parameters as inputs or which does not need any inputs, but i was not been able to start process where group is exposed.
    it's giving me GP INVOCATION Exception.
    Please Help ASAP
    Regards,
    Pratik

    Pratik,
    I try to simulate with scenario described by you and I got success with my test.
    Follow my java code:
         public boolean initiateProcessSDN () {
              boolean ret = false;
              try {
                   IUser user = UMFactory.getUserFactory().getUserByLogonID("uces");
                   IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(user);
                   IGPProcess processTemplate
                        = GPProcessFactory.getDesigntimeManager().getActiveTemplate(
                                  "8DC0B411957D11DDB7910017F2EBE4A5", userContext);
                   IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
                   IGPStructure params     = GPStructureFactory.getStructure(processTemplate.getInputParameters());
                   params.setAttributeValue("NameGroup", "Pedro");
                   params.setAttributeValue("AddressGroup", "XPTO");
                   IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
                   IGPProcessInstance prInstance
                        = rtm.startProcess(     processTemplate,
                                            "Test 1",
                                            "Test 2",
                                            user,
                                            roles,
                                            params,
                                            user);
                   ret = true;
                   } catch (Exception ex) {
                        ret = false;
              return ret;
    Print screen about my GP design:
    Callable Object with 4 parameters
    http://img530.imageshack.us/img530/16/sdngpgroup001bt5.jpg
    Action grouping CO parameters into 2 groups
    http://img147.imageshack.us/img147/2006/sdngpgroup002xy3.jpg
    Process reflecting these groups as input parameters
    http://img147.imageshack.us/img147/9184/sdngpgroup003pp0.jpg
    Process started by java code above
    http://img530.imageshack.us/img530/8833/sdngpgroup004no4.jpg
    Best Regards,
    Pedro Nunes

  • Cannot start BPM process, "Start process" button is disabled: Why?

    Dear all,
    I am working on the BPM example "Modeling Your First Process with SAP NetWeaver Business Process Management" with the "Purchase process". I did everything as mentioned in the tutorial.
    At the end, I would like to start the process using
    NWA > Configuration management > Processes and Tasks > Process Repository
    I can see my WD example that I have deployed and I see the my task definitions and my process definition. In the tutorial it says, that I can select the process definition and click "Start process". But the button "Start process" is always disabled. I cannot click the button. I don't know why. Did I miss something?
    I am logged in as Administrator. I am using NW AS 7.2 and I am developing with NWDS 7.1 SP04.
    Anyone has an idea what can I do to start the process?
    Thanks in advance
    Edited by: Patrick Beck on Jun 25, 2010 4:55 PM

    Thanks for the link.
    I added the new context attribute in the XSD files (under Process Modeling > Data Types > XSD Files).
    Since I added a new context attribute "Comment" of type String in my Web Dynpro, I added the following on the corrent position of the XSD files:
                             <xsd:element name="Comment" type="com.sap.dictionary.string">
                   <xsd:annotation>
                        <xsd:appinfo>
                             <xsd:attribute name="ReadOnly" type="xsd:boolean" fixed="false"/>
                                                                          </xsd:appinfo>
                   </xsd:annotation>
              </xsd:element>     
    I also edited input and output mapping of the human and automated activities to support the new attribute "Comment". I thought this is enough to pass the new "Comment" parameter from activity to activity.
    But when I started the process, I filled in the comment field in Web Dynpro and went to the next step in the process. Seems like the new attribute value for "Comment" got lost. It does not appear in the next process step.
    Did I miss something?
    These are the steps I did:
    - edit Web Dynpro UI to support the new context attribute "Comment". created new input field and mapped to the Comment context attribute (that is defined in my WDP interface).
    - edited XSD files (one for each human activity) to support the new Comment attribute as mentioned above.
    - edited the mapping between the activities to support pass-through of the new Comment attribute between the activities
    But it seems like it's not saved in the context attribute "Comment". It got lost after the first step.
    Any ideas?

Maybe you are looking for

  • Stuck in a complicated situation

    I have to come up with a query for report which is dependent on what is selected in the 7 drop boxes. startdate: enter text enddate: enter text Department: Deptname Group:drop down (values like All, Supervisor, Manager, etc) Classification:drop down

  • Adjust amounts for extended withholding tax

    Dear All, Ii have entered invoice for a vendor A. for amount 100 with extended withholding code for 10% tax calculation. That mean system will automatically deduct tax at the time of payment. The entry will be Exp            100   Vendor        100 w

  • HP 4420s - How to enable mouse pad ?

    Hi all,  I have a user that has somehow disabled the mouse pad on this unit (HP 4420s laptop). I don't have a unit on had to test what he's relaying to me. He says there is a yellow light now near the touch pad that illuminates when he is logged into

  • When I plug in a usb controller for music software I can't hear any sounds?

    My laptop is a Compaq Presario CQ56 Window 7 64 bit. I installed new software and hardware named Maschine by Native Instruments.

  • Sony NEX-5 Raw files Elements 8

    Hi, First post ... I'm looking for a plugin so that I can receive raw files from my NEX-5 into Elements 8.  I've searched and can't find any so can anyone tell me whether one is available please? Jeff