How to abort instances which are stuck in automatic activity

Hi,
Some of the instances are got stuck in automatic activity of a process, how can we abort those instances. In engine db - PPROCINSRANCE table i am able to see the instances but PTODO table, it doesn't have any records.
As we didn't had proper configuration and exception handling, it failed to execute and instances got stuck.
Any suggestions?
-Sree

Hi,
Execute the following query:
DELETE FROM PPROCINSTANCE WHEER INSTID = "<Instance_id_to_be_deleted>";
For soft delete execute & commit the following query:
UPDATE PPROCINSTANCE SET STATE=64 WHERE INSTID= "<Specify_Instance_Number>";
Hope it helps you.
Bibhu

Similar Messages

  • How to track beans which are destroyed, but no exception log?

    According to the WLS console, we have two out of about 30 entity beans
    which have instances which are being destroyed. However, I cannot find
    the exception which is causing them to be destroyed. I see nothing in
    the WLS logs, nothing in our own logs, nothing, nothing, nothing.
    I am wondering if this might be because for those two beans, there are
    finder methods which are being invoked, and which may not find anything,
    in which case the exception is caught and processing continues
    appropriately. Is this a scenario where a bean instance might be created
    and then destroyed?
    Any ideas on how I can determine why these beans on being destroyed, if
    the above scenario does not apply?
    Thanks!

    Well, there are only 2 paths to 'does not exist' in the spec.
    unsetEntityContext or system exception. If unsetEntityContext isn't being
    called, then it must be a system exception. If that isn't being logged, the
    container isn't obeying the spec. If a FinderException is causing the
    destruction of the instance, that isn't spec compliant, either. A
    reproducible test case and a support call may be your best course of action.
    Bill
    "Jay Schmidgall" <no@spam> wrote in message news:41dd5bd9$1@mail...
    Well, I put logging in the unsetEntityContext method and it is
    apparently not being called; max-beans-in-cache is not explicity set, so
    it defaults to 1000, I believe, and the console tells me the cached
    beans current count is under 50 for both.
    On the other hand, the scenario I suggested does seem to cooincide well
    with the destroyed count; that is, after the bean is not found by the
    finder, the destroyed count goes up. From your description, that seems
    like it is just coincidence, but it is definitely there.
    bill kemp wrote:
    Finder methods are called on a pooled instance of the bean. If the
    finder
    doesn't find the entity, a FinderException(which is just an application
    exception) should be thrown, which is reported to the client, but the
    instance is not destroyed. If a system exception is thrown, thecontainer is
    supposed to log it before it destroys the instance. The only other pathto
    destruction in the state diagram is when the bean goes from 'pooled' to
    'does not exist' when the container calls the unsetEntityContext method.So,
    maybe put some output code in the unsetEntityContext method to see ifthe
    container is removing beans because of cache size considerations. Just a
    guess. Do you have <max-beans-in-cache> set to anything in particular?

  • How the system know which are Inventory cubes?while compres in ProcessChain

    Hi,Experts
    When I create a Cube compress in ProcessChain ,under the page there is a checkbox called No Maker for Inventory Cube,and I also know the Non-cumulative key figure can not be compress,
    My question is how the system know which are Inventory cubes? and many cube create from ourself.

    Hi,
    I think,
    - in the sap tables there are no information.
    - the program reads the infocube definition and check: is there a non-***. value?
    Sven

  • Do we have any native methods to get object instances which are alive ?

    Do we have any native methods to get object instances which are alive ?
    Help appreciated.

    If you are looking for accessing objects that are eligible for GC but are not GC,than it should be very difficult.As Java does not give you memory access to its variables.

  • How to unglue clips that are stuck together in the timeline

    I've looked everywhere, I'm sure it's there but I can not find how to "unglue" clips that are stuck together in the timeline.  NOT break apart clip items, but get rid of those pesky things that attach the different levels of video together.  And BTW what the heck are those little claws called?
    Thank you so very very much in advance!    

    You can't move tracks. Everything in the timeline has to be connected to the primary storyline at some point. Each clip that's connected can be connected individually so it's free floating and the connection point can be moved anywhere you want, or the clips can be strung togother and connected at a single point. You can Opt-Cmd-click to change the connection to a new location, but it has to be connected somehow.

  • How to get services which are running currently

    How to get services which are running currently in the system by a java program. And also how to write a service so that i can start/stop the service from the control panel -> services.

    triple post
    http://forum.java.sun.com/thread.jsp?forum=31&thread=364090&start=0&range=15#1532232
    http://forum.java.sun.com/thread.jsp?forum=31&thread=364088&tstart=0&trange=15

  • How to abort instance using a specific role

    I create a process using BPM studio 10g. I create a role named GDadmin and a participant named GDadmin. No activity or interactive activity is in the GD admin role.
    In the BPM standalone 10g, I create a participant and role both named GDadmin. This user can abort the instance. However, if I login as GDadmin, the workitem table is empty.
    I want to the GDadmin can view all current instances. This user can also abort the selected instances.
    Which activity can be used to let the GDadmin view all current instances and activity as well as abort them?
    Thanks a lot.

    You could accomplish the abort of instances using PAPI, but the problem is most actvities are not abortable (nor should they be) and the PAPI call will throw exceptions when you try aborting it.
    I use the logic shown below to both grab and abort instances in a single step.
    The process has a Grab activity that this invokes automatically called "GrabAutomatic". This is the Grab that has "From all / To all" and its "Abortable" properties enabled. The GDAdmin role in your process would need a Global Interactive that has the logic shown below. You'd need to add a new participant ("AUTOCLIENT" in the logic below) that has the role assigned where the automatic Grab is located. Before running this logic, the Global Interactive that the GDadmin would invoke would present the user with a list of instances that the GDadmin would select. Based on the work item instances selected, this logic would grab and abort them in a single step.
    <pre class="jive-pre"><p />bp as BusinessProcess
    do
    logMessage "PapiHelper: actionGrabAndAbort: Entry: instance: " + instanceToActOn.instanceIn
    using severity = DEBUG
    instF as InstanceFilter = InstanceFilter()
    instances as Fuego.Papi.Instance[]
    instanceDescription as String
    connectTo bp
    using url = Fuego.Server.directoryURL,
    user = "AUTOCLIENT",
    password = "P",
    process = "/" + processName
    create(instF, processService : bp.processService)
         instF.searchScope = SearchScope(participantScope : ParticipantScope.ALL,
              statusScope : StatusScope.ONLY_INPROCESS)
    addAttributeTo instF
    using variable = VarDefinition.INSTANCE_NUMBER,
    comparator = Comparison.IS,
    value = instanceToActOn.instanceIn
    instances = getInstancesByFilter(bp, filter : instF)
    for each inst in instances do
    logMessage "PapiHelper: actionGrabAndAbort: Found it: " + inst.id
    using severity = DEBUG
    do
    // change this to be the name of your Grab Activity
    grab inst using grabActivity = "GrabAutomatic"
    logMessage "PapiHelper: actionGrabAndAbort: Grabbed Instance Status: " + inst.grabbed
    using severity = DEBUG
    do
    runTask inst
    using activity = "GrabAutomatic"
    logMessage "PapiHelper: actionGrabAndAbort: Ran Grab " + inst.grabbed
    using severity = DEBUG
    on e as Exception
    logMessage "PapiHelper: actionGrabAndAbort: tried to run grab and failed because no task to run in Grab"
    using severity = DEBUG
    end
    abort inst
    logMessage "PapiHelper: actionGrabAndAbort: Routed back"
    using severity = DEBUG
    on e1 as Exception
    logMessage "PapiHelper: actionGrabAndAbort: Exception when running or routing: " + e1.cause
    using severity = DEBUG
    errors = errors + "Instance could not be grabbed and reassigned\n\n"
    logMessage "PapiHelper: actionGrabAndRoute: Errors: " + errors
    using severity = DEBUG
    end
    end
    on exit
    disconnectFrom bp
    end </pre>
    Dan

  • DB Tool List Table: How to access tables which are in different SQL database ?

    Hi, All,
    I'm working on a database application (SQL server) and is evaluating the NI DB Tool kit for this project.
    One of the requirement is that I need to access tables which are in two different database
    (say Table A in DB 1 and Table B in DB 2).
    Our IT guys has linked Table A in DB1 to DB 2 and I verfied this when I use the SQL server managment studio.
    When DB 2 tables are populated, Table A from DB1 is also there. I can also do the same thing using MS Access.
    Table A in DB1 is avalaible to me enven though I only connect to DB 2.
    Here comes the problem.
    When I use DB Tool List Table.vi to access DB2, it does NOT list Table A in DB1. It only list the tables in
    the database (DB2) which I make connection to (using DB Tool Open Connection.vi with a file DSN)
    So my work around right now is to open two seperate connection to DB1 and DB2. However, this approach
    obviously creates a problem when I have to access seperate database constantly in my application.
    What would be a solution to this ? I've search the forum but only see one post that's somewhat related to
    my question. (And it was posted on 2004) Perhaps I need to alter the code in the orignial VI (DB Tool List Table.vi)??
    My IT guy told me he has not encountered this scenario since he writes codes in other enviroment such as
    VB and others, and he's always been successful by linking tables to different database. 
    I hope my question is sound and clear since I really don't know much about database terminology.
    Any comment/suggestion is much appreciated !!!
    Thanks
    Chad
    Solved!
    Go to Solution.

    To josborne:
    To answer your question:
    - Are the two databases contained on the same SQL Server instance? 
    Or are the databases on separate instances?  I assume they are on
    separate servers, otherwise this wouldn't really be an issue.  But its
    good to know because it will affect how you build your SQL statements.
    Yes they are on separate instances. 
    - Ask your IT people specifically how they "linked Table A in DB1 to
    DB 2".  I assume they used "linked servers". 
    Maybe I used the wrong terminology "linked." They created a "View of Table A (DB1)" in DB2 using the management studio.
    Here is a screen shot of that. As you can see, dbo.VISUAL_WORK_ORDER is seen under LABVIEW database in the management studio.
    I also see the same table when I make connection to database using MS Access.
    Could you elaborate on "configure your SQL statement correctly" =) ? The purpose of using LabView's took kit is so that I can do
    minimum SQL statements. Are you talking about modifying LabView's native VI (DB Tool List Table.vi) ?
    Thanks for the information. SQL is just something new to me.

  • How to find documents which are not linked to a project?

    Hi all,
    i'm just looking for a variant to search for documents which are not linked to a project within ta SOLAR_EVAL.
    I need a way to report how much documents are not linked to a project; just stored in KW.
    Can anyone give a hint?
    Thanks a lot!
    Jan

    Hi Jan,
    This report SOLMAN_UNUSED_DOCUMENTS will help you identify the documents which are not linked to the project.
    (OR) Use Tcode: SI80 to find any document in SAP Solution Manager KW.
    Regards,
    Sanjai

  • My iTunes has multiple phones and computers with similar names associated with it. How do I know which are the right ones?

    I'm trying to clean up my iTunes account and I see several of the same phone or computer listed as authorized users. How do I figure out which are the correct phones/computers?

    Alvin777 wrote:
    Hi. I'd like to delete the Snow Leopard Snapshots in my Time Machine backup drive because it won't work with Lion
    I'm not sure what you mean . . . what won't work with Lion?  It sounds like it did do some backups.
    Is there a way or an app to know which are Lion snapshots? 
    There is a way, but it's rather cumbersome.  You have to start selecting a full system restore; there's a window showing all of the backups and the version of OSX. 
    Is there an app I could use to manage the snapshots if manually deleting them will cause problems and side effects later.
    It's best to use the Time Machine "Star Wars" display to delete backups, but you really shouldn't have to.  Let's figure out what's wrong first.

  • Safari how do i know which are my open Safari tabs in several windows?

    Hi and good day,
    It happens frequently that I have several windows open in Safari and in Chrome.
    … and with a few tabs windows each.
    My question:
    How can I find a specific open page, which is somewhere on a tabbed window beneath other windows?
    Is there an app to help?
    It’s easier of course no problem with 'non-tabbed' windows, as the title will be displayed by the browser.
    Hope this makes sense,  and it is not unimportant for the workflow :-)
    with best regards, 
    Omar K N
    Stockholm, Sweden

    Alvin777 wrote:
    Hi. I'd like to delete the Snow Leopard Snapshots in my Time Machine backup drive because it won't work with Lion
    I'm not sure what you mean . . . what won't work with Lion?  It sounds like it did do some backups.
    Is there a way or an app to know which are Lion snapshots? 
    There is a way, but it's rather cumbersome.  You have to start selecting a full system restore; there's a window showing all of the backups and the version of OSX. 
    Is there an app I could use to manage the snapshots if manually deleting them will cause problems and side effects later.
    It's best to use the Time Machine "Star Wars" display to delete backups, but you really shouldn't have to.  Let's figure out what's wrong first.

  • How to monitor targets which are controlled by LOAD BALANCING mechanism

    Hi,
    I have installed Enterprise Manager 10.1.0.3 and upgraded it to 10.1.0.5. Then i have applied the Application plug-in patch for managing Oracle Applications.In my environment, we have two concurrent managers and four forms servers which are using Load Balancer.Please let me how to manage these concurrent managers and forms servers in that scenario.Would highly appreciate your suggestions regarding the same.Thanks in advance.
    Regards,
    Vamsi Manyam

    This note shows how to configure OEM behind a load balancer.
    The question was how to use OEM, not behind a load balancer, to monitor other targets which are behind one or different load balancers.
    For example, to monitor :
    Forms on server A and B behind load balancer LB1.
    Forms on server C and D behind load balancer LB1.
    Forms on server E and F behind load balancer LB2.
    Gary

  • How to findout rows which are not null ?

    Hi friends,
    Can anyone tell me how to find out the no of rows which is having full data in each column (not null) ?
    Ex:- TEST_TABLE having 1000 columns and lakes of rows.
    myQuestion:- I need to find the no of rows which are filled with 1000 columns filled with not null data.
    Thanks in Advacne.
    Kishore.

    Hello
    You're just going to have to write the query with IS NOT NULL on each column. This will help generate the predicates for the WHERE clause to save quite a bit of typing...
    SELECT
        ' AND '||column_name||' IS NOT NULL'
    FROM
        all_tab_columns
    WHERE
        table_name = 'TEST_TABLE'You can take the output and add that to
    SELECT COUNT(*) FROM test_table WHERE 1=1 HTH
    David

  • How to find aggregates which are not used.

    Hi ,
    There are lot of aggregates in my system , so i should deactivate the aggregates which  are not used from long back. so how to find out all those , can u plz guide me ,

    You can also check the usage column of the aggregates. If usage value is high then the aggregate is used very frequently.
    If there is no value at the last used then the aggreagete is not used at all.
    Hope it helps
    Regards
    Sadeesh

  • How to find reports which are using sales tables

    Hi Guys,
    we are using OBIEE 10g version.Here i need to identify the the reports which are using sales tables.
    Table names are given but how to find which report is using these tables.Is there any method to find
    or we have to check all reports manually?
    Could any one pls suggest me here!
    Regards,
    sk
    Edited by: 912736 on Jun 8, 2012 1:24 PM

    Hi SK,
    You can run a report from catalog manager that willl give you all answers requests and the subject area columns in use, you can map these back to the sales tables either manually or by linking (vlookup) to an RPD report that you can run from the Admin tool.
    The Usage Tracking method is pretty good but you will have to match up the reports using the Logical SQL.
    I'd do both methods and cross ref your results to ensure nothing slips the net.
    Regards
    Alastair

Maybe you are looking for

  • I have deleted users but the free space is not available what did I do wrong

    Not sure what has happened.  I deleted a user and it should have freed up about 150gb of hard drive space.  It hasn't, when I go to about this make and click on storage it is still showing 100gb of space for movies, and 40gb for other, and 10gb for m

  • Rule File Consoldation Properties Detail

    I have two questions, I need to review all my post becasue i have asked this question before but can not find the details needed!!!!! so I have a BSO cube and in the Consolidation properties it is "~" in the load rule but i need to make all ~ Label o

  • Multiorg set up ? how to setup of Inventory

    Please tell me how to setup a multiorg in Inventory Module & how to Implement the Inventory Module

  • IPad apps not working!

    Today I plugged in my brothers ipad into my computer to charge and on the next day all his apps wont open and they it has to be synched with my comp. He lives pretty far and is unable to do so. What can we do?

  • Windows 7 Ultimate - just did a clean install, what about activation?

    I just did a clean installation of Windows 7 Ultimate. Prior to this installation, I had installed Adboe Acrobat 9 Pro Extended a while ago. In doing the Win 7 installation, I did not have to reformat my hard drive. The installation routine moved my