Can't start GP process by GP API

When I start GP process using GP API, it report the following exception:
ERROR_ALREADY_STOPPED
com.sap.caf.eu.gp.base.exception.InvocationException: ERROR_ALREADY_STOPPED
     at com.sap.caf.eu.gp.base.caching.MemoryCache.checkActive(MemoryCache.java:230)
     at com.sap.caf.eu.gp.base.caching.MemoryCache.getEntry(MemoryCache.java:281)
     at com.sap.caf.eu.gp.model.context.impl.UserContextFactory.getUserContext(UserContextFactory.java:195)
     at com.sap.caf.eu.gp.model.context.impl.UserContextFactory.getUserContext(UserContextFactory.java:181)
     at com.sap.caf.eu.gp.context.impl.GPUserContext.<init>(GPUserContext.java:89)
     at com.sap.caf.eu.gp.context.impl.GPContextManager.createUserContext(GPContextManager.java:90)
     at com.sinopec.mdmgp.util.workflow.MDMGPWorkflowUtil.startGPProcess(MDMGPWorkflowUtil.java:170)
     at com.sinopec.mdmgp.util.workflow.MDMGPWorkflowUtil.startProcess(MDMGPWorkflowUtil.java:123)
     at com.sinopec.mdmgp.wd.ui.grid.GPUIGridView.handleSubmit(GPUIGridView.java:479)
     at com.sinopec.mdmgp.wd.ui.grid.wdp.InternalGPUIGridView.wdInvokeEventHandler(InternalGPUIGridView.java:239)
     at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
     at com.sap.tc.webdynpro.progmodel.controller.Component.fireEvent(Component.java:284)
     at com.sinopec.mdmgp.wd.ui.grid.wdp.InternalDCUIGridCompInterface.wdFireEventEV_SUBMIT(InternalDCUIGridCompInterface.java:188)
     at com.sinopec.mdmgp.wd.ui.grid.DCUIGridCompInterface.submitGuidedPrice(DCUIGridCompInterface.java:175)
     at com.sinopec.mdmgp.wd.ui.grid.wdp.InternalDCUIGridCompInterface.submitGuidedPrice(InternalDCUIGridCompInterface.java:136)
     at com.sinopec.mdmgp.wd.ui.grid.wdp.InternalDCUIGridCompInterface$External.submitGuidedPrice(InternalDCUIGridCompInterface.java:258)
     at com.sinopec.mdmgp.wd.pricing.frame.DCGuidedPriceModifyView.onActionSubmitConfirm(DCGuidedPriceModifyView.java:288)
     at com.sinopec.mdmgp.wd.pricing.frame.wdp.InternalDCGuidedPriceModifyView.wdInvokeEventHandler(InternalDCGuidedPriceModifyView.java:240)
     at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
     at com.sap.tc.webdynpro.clientserver.event.CustomEventProcessor.handleServerEvent(CustomEventProcessor.java:45)
     at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleServiceEvent(WindowPhaseModel.java:361)
     at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:128)
     at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
     at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processPhaseLoop(WebDynproWindow.java:345)
     at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:152)
     at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:313)
     at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
     at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
     at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
     at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
     at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
     at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
     at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java:77)
     at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1257)
     at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:325)
     at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:826)
     at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
     at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
     at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
     at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
     at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
     at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:313)
     at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
     at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
     at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
     at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
     at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
     at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
     at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Is there something wrong with the UserContext?

Hi Osukhovsky,
Thanks for your answer.
I am sure the process template is activated, beacause I can start it in GP Runtime.
After I restart the server process, the problem is resolved. But I want to know the reason why the code dosen't work suddenly?

Similar Messages

  • Can one start Integration Process on it's own?

    Hi,
    we have requirement where Integration Process should make RFC call to R/3 system. And the return from RFC is then processed further in Integration Process. Actually there is infinite loop & wait steps in IP, within this infinite loop, we want to call this particular RFC (which has some business logic in it) and this RFC will send some data from R/3 and based on return we want to process further. How can we start Integration Process, which has send as first step (rather then recv).
    We want to automate this process rather than to initiate within R/3?
    Thanks.

    Hey
    We can not have Send as the first step in IP.You need to have a Receive step as the first step in any IP.
    also to answer your question,you can not run IP individually,it needs to receive data from some source system.
    Thanks
    Aamir

  • How can i start the process in the Process Overview?

    Hallo All,
    i make first steps with nw ce and work on a tutorial. But after i have deployed  my model i can't start the process in the process repository becaus the button "Start Process" is hidden, to see here: [screenshot|http://alexshram.al.ohost.de/pub/procRepOverview.jpg]
    Please, can me one explain how i can start my process.
    Thank you in advance!

    Hi Alex,
    The Process Flow and Start Process button are not enabled because you have selected the Task Definition item('Display Name Age') in the Processes and Tasks table. Please select  Process Defintion itme('prcNameAge' ).
    This should resolve your issue.
    Regards,
    Unni

  • Start GP Process using GP APIs

    Hello,
    I am using GP APIs to start my process programatically in webdynpro.
    When I test it in Web Service navigator I get PortalRuntimeException.
    The exception occurs when execute
         IGPContextManager gpCtxManager = GPContextFactory.getContextManager();
    I have used the following code to start the GP Process:
    IGPProcessInstance procInstance;
    try {
         userFactory = UMFactory.getUserFactory();
         IUser user = userFactory.getUserByLogonID(user);
         IGPContextManager gpCtxManager = GPContextFactory.getContextManager();
         IGPUserContext userContext = gpCtxManager.createUserContext(user);
         IGPProcess process =
              GPProcessFactory.getDesigntimeManager().getActiveTemplate(
              processTemplateId, userContext);
         IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
         IGPProcessRoleInstanceList roles =
              rtm.createProcessRoleInstanceList();
         IGPStructure processParams =
              GPStructureFactory.getStructure(process.getInputParameters());
         processParams.setAttributeValue(
              requestIdParam,
              req_id);
         IGPRuntimeManager gpRuntimeManager =
              GPProcessFactory.getRuntimeManager();
         procInstance =
              gpRuntimeManager.startProcess(
                   process,
                   processName,
                   processDescr,
                   user,
                   roles,
                   processParams,
                   user
         } catch (Exception e) {
              return e.getMessage();
    Any help would be highly appreciated..
    Thanks and regards,
    Lyudmila

    Hi,
    Hope this code will help you,
         String ProcessID = "<Process ID>";
         IUser adminUser = null;
         IUser userRequesterUser = null;
         try {
           adminUser = UMFactory.getUserFactory().getUserByLogonID("<User Id of Process Admin>");
           userRequesterUser = UMFactory.getUserFactory().getUserByLogonID(RequesterUID);
              IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(adminUser);
              IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate(
                                            ProcessID, userContext);
              IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
              IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
              int rolenum = process.getRoleInfoCount();
              String strRoleName = "";
              // iterate over the required roles
              for (int i = 0; i < rolenum; i++) {
                   // create a new role instance by specifying the role's unique name
                   IGPProcessRoleInstance roleInstance = roles. createProcessRoleInstance(process.getRoleInfo(i).getRoleName());
                   strRoleName = process.getRoleInfo(i).getRoleName();
                   if(strRoleName.startsWith("role.")) {
                        roleInstance.addUser(adminUser);
                   Collection users = roleInstance.getUserAsCollection();
                   IUser usr = null;
                   Iterator ietr = users.iterator();
                   while(ietr.hasNext()) {
                        usr = (IUser)ietr.next();
                   roles.addProcessRoleInstance(roleInstance);
              //add values to the input parameters of the process
              IGPStructure params = GPStructureFactory.getStructure(process.getInputParameters());
              params.setAttributeValue("<Attribute Name>",<attribute value>);
                //initiate the process template by passing the process template
                IGPProcessInstance prInstance = rtm.startProcess(process,"<Process Name>",
                                "This process has been started using the GP public API", userRequesterUser,roles,params,userRequesterUser);
           } catch (GPInvocationException e12) {
    //            wdComponentAPI.getMessageManager().reportSuccess("Invok ERR " + e12.getMessage());
                // TODO Auto-generated catch block
                e12.printStackTrace();
           } catch (GPEngineException e2) {
                wdComponentAPI.getMessageManager().reportException("Invok ERR 2 - " + e2.getMessage(),true);
                // TODO Auto-generated catch block
                e2.printStackTrace();
           } catch (Exception e2) {
                wdComponentAPI.getMessageManager().reportException("Invok ERR 3 - " + e2.getMessage(),true);
                // TODO Auto-generated catch block
                e2.printStackTrace();
    Regards,
    Niraj

  • Can Email Start Point process NOT return attachments?

    I'm creating a process starting with an email start point, and it does not need to return attachments, only receive them.
    When it completes, the email that comes back has a subject line of "Errors from Livecycle ES", and the body says:
    LiveCycle ES has tried to process your request and encountered the following error:  No results after invocation. It could be a problem during invocation.
    Is there a way to simply send a confirmation email back to the sender, with no attachments?
    Thanks

    Hi Jack
    You are receiving the attachment back because the email submission failed.
    If an email submission is sucessful, no attachment is returned in the results email.
    Sorry...I don't believe there is a way to control whether or not attachments are sent back.
    Diana

  • Error in starting new process in GP

    Hi All
    I am facing a problem is starting a new GP process dynamically.
    On the following step I get a GP InvocationException
    IGPUserContext userContext =GPContextFactory.getContextManager()
                             .createUserContext(processUser);.
    Message:
    ERROR_ALREADY_STOPPED
    com.sap.caf.eu.gp.base.exception.InvocationException: ERROR_ALREADY_STOPPED
    at com.sap.caf.eu.gp.base.caching.MemoryCache.checkActive(MemoryCache.java:231)
    at com.sap.caf.eu.gp.base.caching.MemoryCache.getEntry(MemoryCache.java:282)
    at com.sap.caf.eu.gp.model.context.impl.UserContextFactory.getUserContext(UserContextFactory.java:195)
    at com.sap.caf.eu.gp.model.context.impl.UserContextFactory.getUserContext(UserContextFactory.java:181)
    at com.sap.caf.eu.gp.context.impl.GPUserContext.<init>(GPUserContext.java:85)
    I tried to restart the Server, even that does not help.
    Please help
    Deepu

    hi deepu
    check this
    http://help.sap.com/saphelp_nw04s/helpdata/en/44/7a056cdb0b6573e10000000a11466f/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/fcdf77fc6510b3e10000000a11466f/frameset.htm
    Can't start GP process by GP API
    let me know u need any further info
    bvr

  • Can't start OAS ORB processes

    Hello,
    I have OAS 4.0.7 installed on standalone NT 4.0 (SP3) machine
    and the machine DOES NOT have a network card. I use the
    Microsoft loopback adapter and TCP protocol. I can connect
    to http://my_machine_name:8888/. When I clicked the OAS Manager
    icon to go to that page and try to start the ORB processes, I
    received this error message:
    Can't start ORB processes.
    OWS-20214: The OAS processes cannot be started.
    Is this due to improper setup the TCP or something else?
    Thank you in advance for all your help.
    null

    phil (guest) wrote:
    : Hello,
    : I have OAS 4.0.7 installed on standalone NT 4.0 (SP3) machine
    : and the machine DOES NOT have a network card. I use the
    : Microsoft loopback adapter and TCP protocol. I can connect
    : to http://my_machine_name:8888/. When I clicked the OAS
    Manager
    : icon to go to that page and try to start the ORB processes, I
    : received this error message:
    : Can't start ORB processes.
    : OWS-20214: The OAS processes cannot be started.
    : Is this due to improper setup the TCP or something else?
    : Thank you in advance for all your help.
    Hi Phil,
    we have the same problem as you.
    But we have an correct installed TCP-Connection.
    Our message:
    Message 3114 not found; No message file for product=orb,
    facility=ctlMessage 3130 not found; No message file for
    product=orb, facility=ctlReturning filename E:
    \ORANT\orb\admin\.event
    Message 3118 not found; No message file for product=orb,
    facility=ctlMessage 3119 not found; No message file for
    product=orb, facility=ctlOWS-20214: The OAS processes can not be
    started, because the CORBA orb processes can not be started.
    But till now, we have no solution !
    Bye, Martin
    null

  • I had started the process of removing my husband as the primary on my ipad2 device before the Holiday and never got back to it.  I keep getting a message on the ipad  for New icloud Terms and Conditions but I can't seem to log on.  when i go to it's locke

    I had contacted apple support before the Holiday and we had started the process of removing/replacing my husband as the primary on my ipad2.  However, I keep getting messages now 'New iCloud Terms and Conditions'  in a window that constantly pops up.  When I go to settings to log into icloud, it is locked with a grey screen.  What can I do?  Also, I had gone throught he process of syncing all 3 of my devices Ipad2, mini and my iphone5 to have the same passwords, etc. for ease of use.  Now that seems to be all wrong as well.  HELP!  I need these devices for my work and I'm short on time to go to the store, but will if I have to.
    Thank you!
    Julie

    If the setting is greyed out perhaps you have restrictions enabled that would prevent someone from changing accounts. Settings>General>Restrictions>Allow Changes>Accounts.

  • Firefox won't close without using Task Manager - end process; can't start in safe mode or disable add-ons

    I've been having a memory leak/hanging problem for weeks -- FF slowly increases memory usage until it's at almost 100% and then freezes and I have to shut it down via Task Manager/end process.
    Last week I updated to FF 12, and I also added the Web Developer 1.1.9 add-on. Now every time I open Firefox it tries to go to the "Web Developer installed" page, but the page never loads. Nothing else will load either.
    I can't start in Safe Mode because of the problem with having to close it in Task Manager. I select "restart with add-ons disabled" and it just never opens. The Add-On manager page won't load, so I can't disable Web Developer to see if that's the problem.
    I've uninstalled Firefox and reinstalled, and it still goes right back to the Web Developer page when I open the freshly installed copy.
    Help, please!

    Have you already tried clearing the browser cache, opening a blank tab, and trying to open some other website ?
    * [[how to clear the cache]]
    Instead of trying to open safe mode from within the User Interface menu have you tried alternative methods such as holding the shift key when you start Firefox. (After checking for running Firefox processes or plugincontainer and killing them if found )
    * see [[safe mode]]
    * [[firefox hangs]]
    If using safemode does not help first of all try creating and using a new profile.
    * [[Basic Troubleshooting#w_8-make-a-new-profile]]_8-make-a-new-profile
    If all the above fail then try a clean re-install of Firefox
    * [[Basic Troubleshooting#w_7-reinstall-firefox]]_7-reinstall-firefox

  • The program can't start because api-ms-win-core-debug-l1-1-1.dll is missing

    I was recently asked to convert several APP-V 4.6 sequences to APP-V 5.0 SP2 sequences.  On a development workstation, I ran the Test-AppvLegacyPackage command against the APP-V 4.6 sequences to detect potential issues.  Next, I ran the
    ConvertFrom- AppvLegacyPackage command to create the APPV file for the APP-V 5 sequence. 
    I added the converted APP-V 5 sequence in Configuration Manager 2012 R2 as an APP-V deployment type.  For testing, I installed the Configuration Manager 2012 client on a test VM, installed Windows Management Framework 3.0 for PowerShell 3.0 support,
    and finally the APP-V 5.0 SP2 client.  I created a deployment to the test VM and after it installed, I got the following error on most of the sequences that I converted: "The program can't start because api-ms-win-core-debug-l1-1-1.dll is missing
    from your computer.  try reinstalling the program to fix this problem".
    I have very little application virtualization experience at this point so I do not know how to troubleshoot this issue.  Any help is appreciated.

    Hello,
    I would identify the following;
    1. Which applications are receiving the error?
    2. How where they sequenced?
    3. Where is that file coming from?
    4. Why do these applications require the file?
    5. Why is that file now missing?
    After answering these questions, finding a way forward will most likely be easier
    Nicke Källén | The Knack| Twitter:
    @Znackattack

  • 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

  • Start GP Process through Webdynpro using GP APIs

    Hello,
    I am using GP APIs to start my process programatically in webdynpro using the link :
    http://help.sap.com/SAPHELP_NW70EHP1/helpdata/EN/33/198141f906040de10000000a1550b0/frameset.htm
    The first screen is a Webdynpro For Java Callable Object which has a Submit button ...on the click of this button i have written the code to start the process.....the process is getting started alright which i checked in NWA -> Guided Procedures -> Process Instance...but then it does not move to the next screen.....but just stays there........the structure params i am sending as blank since my process does not expose any input parameters.(as specified in the Library)....
    Any help would be highly appreciated...
    Regards,
    Anil

    Hi,
    Try this code:
    //@@begin startProcess()
         wdContext.currentContextElement().setProcessID("/Process ID of GP process/");
         IUser adminUser = null;
         IUser userRequesterUser = null;
         try {
              IWDClientUser clientUser = null;
              try {
                   clientUser = WDClientUser.getCurrentUser();
              } catch (WDUMException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              IUser user = clientUser.getSAPUser();
              String loginUser = user.getUniqueName();
              adminUser = UMFactory.getUserFactory().getUserByLogonID(/*Owner of process */);
              userRequesterUser = UMFactory.getUserFactory().getUserByLogonID(loginUser);
         } catch (UMException e1) {
              wdComponentAPI.getMessageManager().reportException("UME ERR " + e1.getMessage(),true);
              // TODO Auto-generated catch block
              e1.printStackTrace();
         try {
              IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(adminUser);
              IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate(wdContext.currentContextElement().getProcessID(), userContext);
              IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
              IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
              int rolenum = process.getRoleInfoCount();
              String strRoleName = "";
              IGPStructure userStruct = null;
              // iterate over the required roles
              for (int i = 0; i < rolenum; i++) {
                   // create a new role instance by specifying the role's unique name
                   IGPProcessRoleInstance roleInstance = roles.createProcessRoleInstance(process.getRoleInfo(i).getRoleName());
                   strRoleName = process.getRoleInfo(i).getRoleName();
    //               wdComponentAPI.getMessageManager().reportSuccess("Roles - " + process.getRoleInfo(i).getRoleName());
                   // add a user to the role instance
                   if (strRoleName.startsWith("Requester")) {
                        roleInstance.addUser(userRequesterUser);
                   } else if (strRoleName.startsWith("role.")) {
                        roleInstance.addUser(adminUser);
                   Collection users = roleInstance.getUserAsCollection();
                   IUser usr = null;
                   Iterator ietr = users.iterator();
                   while (ietr.hasNext()) {
                        usr = (IUser) ietr.next();
                   roles.addProcessRoleInstance(roleInstance);
              //add values to the input parameters of the process
              IGPStructure params = GPStructureFactory.getStructure(process.getInputParameters());
              params.setAttributeValue("/*Parameter Group Name of Process /", /Value to be passed*/);
              IGPProcessInstance prInstance = rtm.startProcess(process, "/Name of Process/", "This process has been started using the GP public API", userRequesterUser, roles, params, userRequesterUser);
         catch (ConnectionException e) {
               //TODO Auto-generated catch block
              e.printStackTrace();
         } catch (CommandException e) {
               //TODO Auto-generated catch block
              e.printStackTrace();
         } catch (GPInvocationException e12) {
              wdComponentAPI.getMessageManager().reportException("Invok ERR " + e12.getMessage(),true);
               //TODO Auto-generated catch block
              e12.printStackTrace();
         } catch (GPEngineException e2) {
              wdComponentAPI.getMessageManager().reportException("Invok ERR 2 " + e2.getMessage(),true);
               //TODO Auto-generated catch block
              e2.printStackTrace();
    //@@end
    Regards,
    Niraj
    Edited by: Niraj Kumar on Dec 4, 2009 8:32 AM

  • (1) Is there any way that I can get the transition menu to remain on the screen. I select a transition, drag it to the timeline and after I click done I have to start the process all over to perform this action on the next transition. I have premiere elem

    (1) Is there any way that I can get the transition menu to remain on the screen. I select a transition, drag it to the timeline and after I click done I have to start the process all over to perform this action on the next transition. I have premiere elements 12. In older version the menu would stay on the screen.
    (2) In pan and zoom how can start zoom on a photo in the original picture and zoom in and the next picture zoom out and the next photo pan from right to left and the next photo pan left to right.
    Thanks
    Sam

    TidyCup
    What computer operating system is your Premiere Elements 12 running on? If you have not already, be sure to update 12 to 12.1, using an opened project's Help Menu/Update.
    But to the immediate questions, assuming Windows 7, 8, or 8.1 64 bit....
    1. No, it is what it is. But, are you applying the same transition each time? If so, then highlight/select all the clips involved (all at one time), then Timeline Menu/Apply Default Transition will do just that for the highlighted/selected clips.
    To highlight/select more than one clip at a time, hold down the Shift key of the computer main keyboard and then click on each clip that you want in the group selection
    or
    with your mouse cursor draw a rectangle around the clips that you want to select
    2. Are you using the Premiere Elements 12/12.1 Expert workspace Pan and Zoom Tool? Or the pan or zoom presets under fx Effects/Presets/? With those you can do pan or zoom, not pan and zoom.
    Or, are you in the Elements Organizer 12 Slideshow Editor using the pan and zoom effect there? Or, are you using keyframing the Motion Scale property for zoom and the Motion Position property for pan?
    Are you asking about photos with landscape or portrait orientation?
    The pan and zoom tool does one photo at a time.
    Have you read the Adobe documentation on the Pan and Zoom Tool?
    http://help.adobe.com/en_US/premiereelements/using/WSeffff8bffc802084-494411db12fd35452dd- 8000.html
    Please review and clarify and then we can get into greater details on this.
    Thanks.
    ATR

  • Can a page On Load process call Javascript API?

    I am trying to use $s_Hide for some page items when the page loads. Can an 'On Load' page process call $s_Hide API? if yes, share code example please?! If not, what is the right way to accomplish it?
    Thanks,
    Yivon, Newbie in JAVA

    Normaly, you can put this script into the region footer. However, you can wrap it into a PL/SQL block like in this example:
    http://apex.oracle.com/pls/otn/f?p=31517:170
    See the code explanation Step Nr. 4.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • HT4889 Hi. I`ve just started transferring from my old Imac to a new Macbook, using the WIFI. But I realize it will take days to get it done. Can I cancel the process, and start over again using the thunderbolt port? Without causing any trouble?

    Hi. I`ve just started transferring from my old Imac to a new Macbook, using the WIFI. But I realize it will take days to get it done. Can I cancel the process, and start over again using the thunderbolt port? Without causing any trouble?

    See Pondini's Setup New Mac guide for possible answers.

Maybe you are looking for

  • For existing data in BI, client need to take a call to park the same from s

    hi, friends, For existing data in BI, client need to take a call to park the same from safety point view by copying the existing ODS   is it possible?if it is possible give me details. thanks&regurds sivaji

  • File to IDOC. Mapping doubts...

    Hi XI Gurus.. I'm doing a file to IDOC scenario.. I've a filed called Master Number and Sequence number.. First I've to sort the file based on Master number. based on this sorted file I must sort the sequence numbers. For example: 0011232      01 001

  • Sorting photos within an event

    I'm trying to find a way to rearrange my photos within an event. According to the instructions in help: Sort photos within Events (but not the Events themselves): Select Photos in the Source list, choose View > Event Titles, and then choose View > So

  • How do I get Farmville2 to load properly?

    The pop ups for quest and the like are over sized and I can not hit a send button or close the pop up to continue playing the game. It looks really large and it has been going on for the last 2 days.

  • X3-02 local domain email - does not work

    I can not set up local domain email, given to me by my mobile operator. I am not able to put in any other settings, then email address and password. If trying to log in, will appear message: Could not sign in. Try again. Why there is no place to ente