Deleting running processes from Guided Procedure runtime

Dear all,
Does anybody know how to delete running process i.e. incomplete process from Guided Procedure runtime dashboards.  The administration workset contains archiving & deleting sections but they can only delete if a process is completed or Erronous or Terminated. 
In need to delete a running process or incomplete process as some process instances are kicked off and left alone.
Thanks
-Bharath

Hi Ramien,
I suppose you have acces to the executionContext of GP...
You can use the following method to get the process Id:
String processId = executionContext.getProcessId();
Regards
Sundeep

Similar Messages

  • Guided Procedures Runtime showing internal process steps in UWL

    Hi
    We have created a Guided Procedures Workflow which is working fine most of the time. However, sometimes, Guided Procedures runtime behaviour is rather strangely, it 's showing internal process steps as clickable workitems in the UWL. Clicking on the workitem causes a Null Pointer Exception.
    Example:
    Let's say, the workflows is as follows:
    - Execute Callable Object "start"
    - Decision "myDecision"
    - If Decsion returns true
    - Then execute Callable Object "A"
    - Ese execute Callable Object "B"
    Normally "myDecision" wouldn't appear in the UWL. But sometimes, it is showing up there. When we click on it, there is the following exception. After a while, everything is normal again (no internal workitems, no exceptions). Does anyone know what is happing here and what can be done to prevent it?
    Kind regards
    Bettina Hepp
    application [webdynpro/dispatcher] Processing HTTP request to servlet [dispatcher] finished with error. The error is: java.lang.NullPointerException
    at com.sap.workflow.wdgp.task.detail.TaskDetailBodyView.seedNotesContainer(TaskDetailBodyView.java:497)
    at com.sap.workflow.wdgp.task.detail.TaskDetailBodyView.wdDoModifyView(TaskDetailBodyView.java:275)
    at com.sap.workflow.wdgp.task.detail.wdp.InternalTaskDetailBodyView.wdDoModifyView(InternalTaskDetailBodyView.java:582)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
    at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:337)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:481)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doModifyView(WindowPhaseModel.java:551)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:148)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
    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:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    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(AccessController.java:215)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)

    Hi
    You mean the entry in the UWL list? No, we don't modify this. It is exactly the title we have assigned to in the Guided Procedures Design time environment.
    How else can a  title be changed? And what kind of problems can occur?
    Regards
    Bettina

  • Embedding Guided Procedures Runtime into Non-SAP-Portal

    Hello,
    I'm developing a workflow using the Visual Composer and the Guided Procedures.
    Unfortunately, the workflow should be accessible from a non-SAP-Portal. The users of this portal and the workflow should not be aware that they are actually using SAP-Portal content.
    This only concerns the GUI.
    Is it (and how) possible to embed the Guided Procedures Runtime GUI into a non-SAP-Portal?
    Best regards
    Alexander

    Thanks a lot for your quick response.
    Based on the information provided in your answer, I found the following document:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0975397-8e0a-2b10-4daa-bafd3a83e2a8
    Best regards
    Alexander

  • Deleting a row from a Procedure

    Hi All
    Can one of you tell me how to delete a row from a Procedure
    It is created with
    CREATE OR REPLACE PROCEDURE report.NAMEOFTABLE
    (nPutId IN Report.ID%TYPE,
    cArea IN Report.Area%TYPE,
    cSubject IN Report.Subject%TYPE,
    nUserId IN Report.EngineerID%TYPE,
    cDesc IN Report.Description%TYPE,
    cSide IN Report.SideEffects%TYPE,
    cImpact IN Report.Impact%TYPE,
    cNotes IN Report.Notes%TYPE,
    nValid IN Report.Valid%TYPE) AS
    -- Add or update Report
    -- If nId < 1 then a record is added, otherwise updated.
    BEGIN
    IF nId < 1 THEN
    INSERT INTO Report
    (Area, Subject, EngineerID,
    Description, SideEffects, Impact,
    ReportNotes, Valid)
    VALUES
    (cArea, cSubject, nUserId, cDesc, cSide, cImpact, cNotes, nValid);
    ELSE
    UPDATE Report
    SET ReportArea = cArea,
    ReportSubject = cSubject,
    ReportDescription = cDesc,
    ReportSideEffects = cSide,
    ReportImpact = cImpact,
    ReportNotes = cNotes,
    ReportValid = nValid
    WHERE ReportID = nPutId;
    END IF;
    COMMIT;
    END;
    CREATE SYNONYM Admin.NAMEOFTABLE
    Report.NAMEOFTABLE;
    But I need to make 1 field of the impact and the sideEffect called the ImpactEffect
    So how do i delete the field of Side effect and change the name of the Impact field.
    Sould I make a new Procedure?

    If you want to delete a row, you'd need a DELETE statement. It is not obvious to me, though, that you really want to delete a row. It sounds like you're trying to update a row, and there is an UPDATE statement in the procedure. Unfortunately, I'm very unsure exactly what you're trying to accomplish and how this procedure relates to that goal. Perhaps if you could post the starting state of the row, the procedure call you're trying to make, and the end state of that row, things might be much clearer.
    As an aside, do you really have a schema and a table named REPORT? That seems rather confusing.
    Justin

  • How to delete the values from TKOMV at runtime after creating PO

    Hi,
      How to delete the values from TKOMV at runtime after creating PO from IDOC. I am creating PO through IDOC, subsequently need to create Sales order and again need to create 2nd PO with reference of Purchase Requestion(created with sales order). At the time creation of 2nd PO the Header conditions are appearing twice and net price value is appearing wrong.
    Thanks in advance.

    Hi Padma
    Can you do this activity once the company code is in to production. I guess you can not do this activity, if the company code is already in to live. Setting or resetting of the recon accounts will hinder the previous actitivity. Infact resetting of the company code is also not a good option.
    Any how, thanks for the inputs. Please let me know whether i can do this activity only at the subledger level which will not impact other modules. The one solution i can figured out is , reverse all the transactions for the corresponding asset in the year of takeover and pass the entries again in the same year correctly which will have effect in Subledger and also in general ledger. But the business people will not allow this, since for a big client it will require lot of authorizations and approvals. Infact the vendor also, is cleared. So we have to reverse the cleared documents as well which is again a task and require approvals as well.
    Thanks and regards
    Seshu.

  • How to get app.processId from Guided Procedures? Please I need You help

    Hi everyone, I need your help, I need to recover the processId once time the Procees was started in Guided Procedures
    I found this link from maintenance process in Guided Porcedures administration
    http://host:port/webdynpro/dispatcher/sap.com/cafeugpui~rt/Runtime?app.processId=IDnumber
    the parameter I need is IDnumber, I dont know if it is possible with web dynpros or with web services please I need you help
    How Can I do this?
    Thank you very much my friends
    Regards from Mexico
    Atte Israel

    Hi,
    I am not sure about the version. But you can follow the steps below.
    1. Create a Web Dynpro Poroject (Ideally create a DC , but if you don't have NWDI setup a project will do).
    2. Add reference to com.sap.security.api.jar and sap.comcafeugpapi.jar
    3. Under WebDynpro References -> Library References add sap.com/cafeugp~api
    4. Put following code in wdDoInit()
    public void wdDoInit()
        //@@begin wdDoInit()
         IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
         IWDMessageManager msgMgr= wdComponentAPI.getMessageManager();
         try{
         IWDClientUser wdUser = WDClientUser.getCurrentUser();
         IUser user = wdUser.getSAPUser();
         IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(user);
         Date startDate = new Date(110,1,1); // Start date as 01-Jan-2010
         Date endDate= new Date(111,12,31); // End date as 31-Dec-2011
         IGPProcessInstanceInfo[] array = rtm.getRunningInstances(GPSearchRole.SEARCH_ROLE_OWNER, startDate, endDate, userContext);
         for (int i=0; i<array.length; i++){
         String instanceId = array<i>.getProcessInstanceID();
    //        Write logic to pass the instance ID to the RFC
    msgMgr.reportSuccess("Instance id =" + instanceId);
         catch(Exception ex)
         msgMgr.reportException(ex.getLocalizedMessage(),false);     
        //@@end
    Let me know if you face any issues.
    Thanks
    Prashant

  • Error in defaulttrace log from Guided Procedures

    After implementing Guided Procedures for test purposes, it was decided that it was not needed. The configuration was removed. However every few minutes an error message is produced.
    #1.# 00144F482363002300000712000005BE00045789876BB369#1222148100961 #com.sap.workflow#sap.com/irj#com.
    sap.workflow#Guest#0##n/a## 896cb70087fa11dda66900144f482363 #ThreadThreadPool.Worker10,5,SAPEngine_A
    pplication_Threadimpl:3_Group##0#0#Error#1#/Applications/Workflow/Engine#Plain###WFMS.processEven
    t#
    #1.# 00144F482363002300000713000005BE00045789876BBC03#1222148100963 #com.sap.workflow#sap.com/irj#com.
    sap.workflow.#Guest#0##n/a## 896cb70087fa11dda66900144f482363 #Thread"["ThreadPool.Worker10,5,SAPEngine_
    Application_Threadimpl:3_Group##0#0#Error##Plain###com.sap.workflow.eventsender.WFEventException:
    USER_AUTH_FAILED: User account for logonid "user_id" not found!
            at com.sap.workflow.engine.WorkflowRuntime.continueExecution(WorkflowRuntime.java:220)
            at com.sap.workflow.engine.WFMS.processEventEx(WFMS.java:827)
            at com.sap.workflow.engine.WFMS.processEvent(WFMS.java:703)
            at com.sap.workflow.engine.WFMS.processEvent(WFMS.java:692)
            at com.sap.workflow.engine.BPRuntime.continueExecution(BPRuntime.java:22)
            at com.sap.workflow.engine.BPMS.processBPEvent(BPMS.java:98)
            at com.sap.workflow.engine.ejb.EWorkflowDirectBean.processEvent(EWorkflowDirectBean.java:39)
            at com.sap.workflow.engine.ejb._EWorkflowDirectBean__EJBProxy.processEvent(_EWorkflowDirectB
    ean__EJBProxy.java:212)
            at com.sap.workflow.eventsender.WFDirectEventSender.sendWFEvent(WFDirectEventSender.java:24)
            at com.sap.workflow.es.scheduler.TaskSchedulerDeadline.run(TaskSchedulerDeadline.java:91)
            at com.sapportals.wcm.service.scheduler.SchedulerEntry.run(SchedulerEntry.java:174)
            at com.sapportals.wcm.service.scheduler.crt.PoolWorker.run(PoolWorker.java:108)
            at java.lang.Thread.run(Thread.java:534)
    All information (we think has been removed from the portal), we have also looked in the SAP backend and cannot see in the logs were this error is coming from.
    Does anyone know where this error is coming from and how it can be stopped?
    Thanks

    Hi there,
    we have the same Problem... but here we have a named user, that can´t authenticate...
    but we don´t know, where we can find these setting...
    com.sap.workflow.eventsender.WFEventException: USER_AUTH_FAILED: User account for logonid "F.Schrader" not found!
         at com.sap.workflow.engine.WorkflowRuntime.continueExecution(WorkflowRuntime.java:220)
         at com.sap.workflow.engine.WFMS.processEventEx(WFMS.java:827)
         at com.sap.workflow.engine.WFMS.processEvent(WFMS.java:703)
         at com.sap.workflow.engine.WFMS.processEvent(WFMS.java:692)
         at com.sap.workflow.engine.BPRuntime.continueExecution(BPRuntime.java:22)
         at com.sap.workflow.engine.BPMS.processBPEvent(BPMS.java:98)
         at com.sap.workflow.engine.ejb.EWorkflowDirectBean.processEvent(EWorkflowDirectBean.java:39)
         at com.sap.workflow.engine.ejb._EWorkflowDirectBean__EJBProxy.processEvent(_EWorkflowDirectBean__EJBProxy.java:212)
         at com.sap.workflow.eventsender.WFDirectEventSender.sendWFEvent(WFDirectEventSender.java:24)
         at com.sap.workflow.es.scheduler.TaskSchedulerDeadline.run(TaskSchedulerDeadline.java:91)
         at com.sapportals.wcm.service.scheduler.SchedulerEntry.run(SchedulerEntry.java:174)
         at com.sapportals.wcm.service.scheduler.crt.PoolWorker.run(PoolWorker.java:108)
         at java.lang.Thread.run(Thread.java:770)

  • Guided Procedures runtime  via Parallels windows on a macintosh

    I am trying to run GP through a virtual XP machine on my macintosh - I have all relative VPN connections established and I have checked the internet access and connection through my alternative IBM machine to ensure access issues are not the problem - If anyone has any suggestions they would be very appreciated - The issues are that I am able to connect and log in to GP runtime but the workcenter/application view does not appear in my browser???? Any ideas would be great
    thnx in advance

    Hi
    You mean the entry in the UWL list? No, we don't modify this. It is exactly the title we have assigned to in the Guided Procedures Design time environment.
    How else can a  title be changed? And what kind of problems can occur?
    Regards
    Bettina

  • Issue: Archiving and Deleting completed Processes  from GP Administration

    Hi
      IWe want to delete the completed processes from every users "Completed Processes' List.  For this ,
    In GP administration-> Archiving and Deleting-> Maintain Process templates->Global Settings,
        We set 1 day for completed tasks.
        So , after one day,will it remove all the completed processes  or only the processes which were completed after setting the Archiving in Global settings?
    How can I delete all the completed Processes?
    Thanks
    Smitha

    Hi Smitha,
    Basically, there are two ways in which you can delete processes in <b>GP administration-> Archiving and Deleting</b>:
    1. automatically, through the <b>Maintain Process Templates</b> option
    2. manually, through the <b>Begin Archiving</b> option - there you have to ignore the predefined settings and set a date before which you want to delete processes.
    You should delete manually all processes up to now that were not deleted by the automatic scheduling. After that, all newly completed processes should be deleted promptly as you have specified in the global settings.
    Make sure that you also perform the appropriate settings for the archive store and the home path.
    You can check the documentation at: <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/be/67a53d874f46c4b9a25e6e7d16a243/frameset.htm">Process Archive Management</a>.
    Regards, Petja

  • Retrieving attachments from guided procedure

    I have a problem with the GP API in webdynpro to retrieve attachments from a guided procedure.
    According to the documentation on help.sap.com this should be easy:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f7/d3c2fd5081446a844575e5af <http://help.sap.com/saphelp_nw2004s/helpdata/en/f7/d3c2fd5081446a844575e5af484722/frameset.htm> 484722/frameset.htm
    But when implementing the code the IGPRuntimeManager class doesn't have a function getAttachmentList()
    I checked it in multiple service packs. I tested it on 2004S SP10 and 2004S SP 16 and in both the function isn't there. I also tested it on the Composition Environment and there it does work.
    When looking at the SAP Note 924776
    it says that there are changes in the public API of SAP Netweaver 7.0 SP10 and SP7.
    Does know how this API works after SP10 ?
    I can't find any SAP documentation about how it works after the change.

    Well, Not sure which you are using. I will talk about 10134. I got the count of attachments using Human Task's global variable. count(bpws:getVariableData('MyHumanTask_1_globalVariable','payload','/task:task/task:attachment')).
    I have used hwf:getTaskAttachmentContents() to read the contents of the file and I have assigned that to base64binary type variable.

  • Guided Procedures runtime view custom

    Hello everybody,
    is possible modify standard guided procerdure RUNTIME iview...
    i need remove "OVERVIEW" view and "YOU CAN" vied from runtime GP view.
    how can do this ?
    than you
    Stefan

    thank's everybody

  • Guided Procedures - Runtime "Create Time-off Request"

    Hi Everyone,
    I’ve created a Time-Off Process using the tutorial downloaded from SDN site.
    When I try to start the Runtime project (Employee side) I find the “Processors Table” in "Create Time-off Request" screen.
    The Approver name is not correct… is not what I expected!
    1) How can I change (in the Design Time project/area) the Approver and HR Consultant parameters?
    2) How can I hide (in the Runtime area) the “Processors Table”? 
    Furthermore, I would like to have more information about the “Parameters Consolidation” meaning. Could you help me to catch this meaning?
    Thanks in advance,
    Enrico

    Hi David,
    thanks for you useful answer! You gave me an answer of 80%!
    Now I try to explain you my problem for the other 20%!
    Now, ... I can't modify the Time-Off exemple, right?! But I would just like to start from this example and modify it!!!
    Can I do it starting from the project code?!
    Can I see the code lines which describe the Time-Off behaviour, so that I can customize it???? ... enfact, if I could do it, I wouldn't have to rewrite the whole code, and I also could understand the logic of TimeOff project structure.
    Do you understand me? Was I clear?

  • Running process from javascript

    Hi all,
    I'm trying to run a page process with javascript with the htmldb_Get but I have no results until now. My example is very simple, it's just click on a page link and call a javascript function like this:
    <script type="text/javascript">
    function test(){
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=myProcess',0);
    gReturn = get.get();
    get = null;
    </script>
    Can someone help, I don't understand what I'm doing wrong.
    Tks in advance

    Hi,
    On Demand is type of application process.
    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/bldr_pgs.htm#sthref847
    Probably all examples what you have seen about htmldb_Get are calling On Demand process.
    Regards,
    Jari
    Edited by: jarola on Mar 15, 2011 1:14 PM
    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/bldr_pgs.htm#sthref840

  • Cannot launch SAP Transaction from Guided Procedures

    I created a Callable Object that is linked to a SAP Transaction.
    When I test it by Execute-ing, I got a browser prompt to Save or Cancel the "xxxxxxx.sapssd" file.
    How can I get it to launch the SAP Transaction?
    TIA.

    Hi,
    Kinldy ensure that you used the following process to create the Callable Object
    - Select the Parent Folder to Create Callable Object in GP Design Time
    - Click on 'Create Callable Object' in the Action Items for Gallery
    - In the Create Callable Object Step, choose 'SAP Transaction' option under 'User Interface'
    - Provide the Basic Data in Basic Data Section
    - In 'Define Object' step, provide the SAP System name as created in the SLD. Mostly the Alias name is displayed in the list. Also provide the default Transaction you wanted to execute.
    - In the 'Define Input' Section, you can optionally provide the input parameters. Leave it blank to make it simple.
    - In the 'Set Configuration' section, check the 'Execute Immediately'
    - Finally Finish and Open the Callable Object for testing.
    Following the above process should help you launch the SAP Transaction in a separate browser window.
    After verifying the above steps, should you still have a problem, then it would be helpful if you can provide the steps you followed in order to replicate the problem.
    Thanks
    Siva

  • Sending email from guided procedure (Outgoing Email)

    Hi all, i have a technical question over here.
    In visual administrator,
    I go to the server->services->caf/eu/gp/model to configure my
    SMTP.SERVER and SMTP.SERVICE_USER_MAIL atttribute.
    for the smtp server, i am using a gmail server,  smtp.gmail.com.
    However, the problem is when i do testing in my interactive form callable object. I encounter problem stating i need to issue a STARTLS.
    I am wondering if i need to enable SSL in visual administrator to use gmail's smtp server? If so, can some one advise me how can i do it.
    many tks..

    Colin,
    Have a look at section "Setting up Mail templates & Creating an Approval Callable object" in this [help|http://help.sap.com/saphelp_nw04s/helpdata/en/4a/d78041a17e060de10000000a1550b0/frameset.htm]
    Not sure if this [document |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0bba346-cb84-2910-2aa9-ba1f8a1c8617] would help you but have a look.
    Chintan

Maybe you are looking for

  • Sharing Music from different login accounts on a MacBook Pro

    I just have a quick question. My wife sync's her iPhone to her account login on my MacBook Pro which is different from my login from startup. We share the computer but I got her, her own login so she could add and mess with the features she prefers.

  • How can you tell what the OS is?

    I have an OS on an external drive. Is there any way to tell what version it is without actually booting into it? Thanks very much.

  • Error in File to JDBC Scenario using File Content Conversion.

    Hi , I am sending a text file in CSV format, with all the configurations done in the sender and receiver channels. But the adapter monitoring says this: Initialization error: Conversion initialization failed with java.lang.Exception: java.lang.Except

  • HELP! Account settings changed by me?

    I was trying to rename my little house icon to something else. I highlighted it, click Get Info and then under Name and Extension, changed the name. Went on working for a few minutes and all apps open would say, the original file is lost and needs to

  • IPhone Apps

    Can anyone suggest me the easiest ways to develop the iphone apps. I dont have any resources right now. But I would to grateful if any one hepl me to get the correct resources. Please help me to get into apple world guys. Thank you, Balaji Kanniyappa