Search for tasks that belong to running process instances

Hi, I am trying to search for tasks that belong to running process instance by using the follwoing code:
     ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
     TaskManagerQueryService queryManager = TaskManagerClientFactory.getQueryManager(myFactory);
     TaskSearchFilter filter = new TaskSearchFilter();
     filter.setServiceName(serviceName);
     filter.addCondition(TaskSearchingConstants.pPROCESS_INSTANCE_STATUS, Operator.EQUALS, JobStatus.JOB_STATUS_RUNNING);
     filter.setAdminIgnoreAllAcls(true);
     List<TaskRow> result = queryManager.taskSearch(filter);
It returns no results while I search it via adminui I found a few running process instance. I tried to comment out the line addCondition, then it returns all tasks, and I found that when I retrieve the taskinfo by taskinfo.getProcessInstanceStatus(), it return -1 for all tasks.
My question is how can I set the condition to search the tasks belong to running process instance? Thanks.

You have to use:
filter.addCondition(TaskSearchingConstants.pPROCESS_INSTANCE_STATUS, Operator.EQUALS, ProcessInstanceRow.STATUS_RUNNING);

Similar Messages

  • How to search for tasks that are in a given state for a given Process

    Hi,
    I want to write a schedule task to pick up all tasks that are in Pending state and retry those tasks one by one, for all users on a given process definition. Can you please tell me if there is a way to do this and how?
    Thanks

    Hi,
    you could use one of following and get more help by searching oracle docs or web search.
    select * from test_tab where REGEXP_LIKE(test_column, '^T[[:digit:]]');
    select * from t1 where regexp_like(a1, '^(t+[0-9]+)$');
    select * from t1 where regexp_like(a1, '^([t]+[0-9]+)$');
    select * from t1 where regexp_like(a1, 't[[:digit:]]{6}') or regexp_like(a1, 'T[[:digit:]]{6}');
    select * from t1 where regexp_like(a1, 't[[:digit:]]{6}') or regexp_like(a1, 'T[[:digit:]]{6}');
    select * from t1 where regexp_like(a1, '^(t+[0-9]+)$');
    Hope this helps!
    -Chan.

  • I have an apple iphone 4gs... It is synced with my outlook exchange in the office. If I do a search for emails that also checks the server then all of a sudden I end up with various amounts unread email with the inbox saying "Inbox 71" ..which is not true

    I have an apple iphone 4gs... It is synced with my outlook exchange in the office. If I do a search for emails that also checks the server then all of a sudden I end up with various amounts unread email with the inbox saying "Inbox 71" ..which is not true. The only way to make the inbox on the iphone back to 0 is to delete the account then re install it.
    Anyone have any ideas

    We need to know more about your system, please download EtreCheck and run the report and please post it on your next reply. Then we can see how your system is configured, what apps are on it and look for anything obvious. We will look forward to seeing your report.

  • How to search for packages that Names including "'" [solved]

    Hi everyone
    first ,forgive my english lvevel
    and I want to know
    How to search for packages that Names including "'"
    for instance
    $ pacman -Ss America's Army
    it returned
    >
    Please help me ,many thanks!
    Last edited by icywalk (2010-04-05 13:09:26)

    fyi America's Army in the AUR as armyops if you're looking for it.

  • Loadbalance for servers thats belongs from different Vlan

    Hi,
    We are using FWSM and ACE module in our switch. We have to configure our new application in cisco ACE. Our exiciting servers and vip are in vlan5 and new servers and vips are in vlan 6. vlan 6 is defined in FWSM. We have craeated one interface vlan 6 for the application. While checking the interface status  through "show interface vlan 6" we are getting the following error.
      Not assigned from the Supervisor, down on Supervisor
    We have already assigned vlan group to supervisor. We have allocated same interfce vlan to context also.
    kindly suggest what chould be the issue.
    Kindly suggest can we do the loadbalance for servers thats belongs from different Vlan???
    Thanks in advance.
    Regards,
    Ranjith

    Hi Daniel,
    We are using cisco 6509 switch with FWSM and ACE module.
    We have created interface VLAN 6 in FWSM and ACE and assigned the IP as follows.
    FWSM Interface VLAN 6 is 10.6.10.55 and ACE Interfce VLAN 6 is 10.6.10.60.
    We have 2 servers in the same vlan (.49 and .50). and they are physicaly connected to switch vlan 6 and logicaly connected to FWSM interface vlan 6.
    We have defined the VIP as 10.6.10.51 and that is not pinging from our network.
    Server default gateway and ACE default gateway is FWSM interface vlan 6 IP(ie, 10.6.10.55).
    We dont want to change the server gateway as ACE interface vlan 6 ip.
    KIndly suggest how can i achive the loadbalancing with out changing my server gateway to ACE IP.
    Thanks in advance.
    Regards,
    Ranjith

  • 11g BPM - Setting instance data of a running process instance

    Hi,
    What is the recommended pattern for interrupting a running process instance and changing an instance variable (data object) ?
    Scenario is:
    - process instance is launched with an interactive to look at the instance data
    - an event is triggered, effectively interrupting the instance and changing the instance data
    - next time the user opens the screen for the interactive the data has changed
    Any help much appreciated.
    cheers
    Tony

    Hi Dan,
    Hope all is good with you. Thanks for the response.
    I am using 11.1.1.6 and have tried a few things, one of which was using an event subprocess and correlations but it didnt change the Data Object as I expected. Maybe I got something wrong and will try again. So you expect the following to work:
    - Create a simple process with one string data object, a correlation and one interactive showing the data object.
    - Map the correlation to an input parameter
    - Set the string data object to some initial value
    - Create an event subprocess of the above in the automatic handler swimlane (starts with a message and ends with nothing)
    - have the implementation of the start message take a string and an id
    - map the id to the correlation
    - map the string to the data object in the subprocess
    - Create the simple process from Enterprise Manager passing in a correlation id
    - View the interactive in the BPM Workspace and see the initial string
    - Use EM to fire the event subprocess passing the same correlation id and a new string
    - View the interactive in the BPM Workspace and see the new string
    so, if you set the data object in the event sub process, it is the same value as the initial instance ? or have I misunderstood ?
    I will give it another go, just checking my understanding...
    cheers
    Tony

  • How to search for apps that will run on os 4.2

    How do ytou search for apps and things that will run on the older OS 4.2.1??????????

    To more easily find compatible apps:
    iOSSearch - search the iTunes store for compatible apps.
    Apple Club - filter apps by iOS version.
    Starting when iOS 7 was released, Apple now allows downloading the last compatible version of some apps (iOS 4.2.1 and later only)
    App Store: Downloading Older Versions of Apps on iOS - Apple Club
    App Store: Install the latest compatible version of an app
    You first have to download the non-compatible version on your computer. Then when you try to purchase the version on your iPod you will be offered a compatible version if one exists.

  • How do I search for apps that work on my iPod Touch Generation 1 (Version 3.1)?

    I have the original iPod Touch and I want to give it to my toddler to play with... so I can have my phone back!  The problem is I cannot find apps that work on the older operating system 3.1.3.  Is there a way to search for them?
    Thanks!

    When you make a playlist it makes a "shortcut" of the file, not a copy of it and the size is so tiny it takes about 10,000 to make 1 mb. It doesn't make a duplicate. It just makes the song appear in a playlist too. Make sure you have the latest iTunes, make sure genius is on, and click Store, update genius. then sync iPod. If you still have a problem, please write wore info about the computer you have. Find all of this (on a PC) click start, run, type winver, then hit enter. (For Mac) Click apple icon (top-left), abou this mac.

  • Searching for tasks based on Responsible Resource

    Hi All,
    I am having a requirement to search for all the tasks within cProjects based on the Responsible Resource field in cProjects. I am planning to design a custom Webdynpro application for this purpose. The requirement is that when i enter the user name of a person the entire list of tasks for which that user is the responsible resource is to be displayed.
    Can anyone tell the related tables for this purpose? i want to know which table contains the Responsible Resource field. Also, i would like to know which tables are related to this functionality. If anyone can give me an idea to get me started, that would be great.
    Best Regards,
    Mazin
    Edited by: mazin mahmood on Dec 10, 2008 2:49 PM

    Hi Mahmood,
    You've probably already figured this out, but you might want to look into DPR_ENTITY_LINK.This table lists role assignments to task. The fields that would be of interest to you are the following:
      -  Entity_GUID = Task GUID (system value)
      -  Participant_GUID (system value)
      -  Responsible (boolean) - part-guid is "responsible role"
      -  Concrete (boolean) - part-guid has "resource' (concrete role)
      -  Entity Type (of structure item)
    Note, though, that this table will not have entries if there are no role assignments in your tasks. Since you're trying to identify responsible resources (concrete role), this won't be an issue when querying the table.
    Good luck.
    Lawrence

  • How to search for events that collide?

    Anyone now a way to find (search for) events, in calenders, that collide?

    Hi Lasse,
    I hope you don't mind an Applescript solution to your problem. I'm assuming all your events are held in one calendar.
    The script here will ask for the calendar name, check all future events in that calendar and highlight any that clash.
    Try out the script by pasting the text below into a new Script Editor window (Applications>Applescript>Script Editor) and pressing "Run". If you want to keep it, save it as file format "application".
    Hope this helps.
    John M
    -- Copy below here into Script Editor--
    -- Find Calendar Overlaps --
    -- John Maisey -- 9 Sept 2005 --
    tell application "iCal"
         activate
         set myNow to my (current date)
         set sourceCal to first calendar whose title is (item 1 of (choose from list ¬
              (title of (every calendar) as list) with prompt "Choose the calendar"))
         set {myStarts, myEnds, myUIDs, mySumm} to {start date, end date, uid, summary} of (events of sourceCal whose start date is greater than myNow)
         repeat with myFirst from 1 to count of myStarts
              repeat with mySecond from 1 to count of myStarts
                   if myFirst is not equal to mySecond then
                        if ((item myFirst of myStarts) is less than (item mySecond of myStarts)) and ((item myFirst of myEnds) is greater than (item mySecond of myStarts)) then
                             show (first event whose uid is (item mySecond of myUIDs)) of sourceCal
                             display alert (item mySecond of mySumm) message "This event happens during another event in this calendar. The other event is titled " & (item myFirst of mySumm) & "." as warning
                        end if
                   end if
              end repeat
         end repeat
    end tell

  • Is there a way to search for photographs that are missing?

    I have discovered that some shots that I thought had been imported from iphoto are in fact missing (when I go to open them there is a badge with the yield sign and an exclamation point in it)
    I don't think this is the end of the world as I have the original files in various places and can import them (I guess)
    but is there a way to search to find all the shots that are missing?
    right now I'm having to scroll through the whole database in the list format and I have a lot of shots. can't seem to figure out how to do a search for missing shots…
    m

    1. Create a smart album and in the drop down in the top right corner select file status
    2. Check mark the file status box and select 'Offline'
    Now you should have all your 'Offline' (Yellow Exclamation and/or Red Slash) files.
    To reconnect..
    1. Select the missing files.
    2. Go to File and scroll to Manage Referenced Files
    The dialog box will have one of the photos selected
    3. Select the drive and folder that contains the referenced file and select it
    4. Click 'Reconnect All'
    This might not reconnect all of them, but the dialog box will still be open and you can reconnect the ones left.
    Narvon
    Message was edited by: Narvon

  • I can't seem to access new mail on my I pad . I can only see strings of messages that are related to each other. I also have lost the ability to search for messages that are no longer on display on my I pad.

    I cannot seem to access properly any more the new e mail messages on my I pad. I can only see strings of messages that relate to each other.
    Also I cannot search for old messages that have now disappeared . The search bar has disappeared.
    Tom

    Try a reset: hold down the home button along with the power button until you see the Apple, then let go.

  • Finder Searches for Files That Do NOT Contain Certain Words

    Is it possible to do a search in the Finder for files that do NOT contain a certain word?

    As far as I know you can't do that. It would be lovely to pipe the results of one search into another....
    What happens is if you specify a type folder, then exclude a file system name, the command excludes folders that have the word in their name.
    You may want to take a look at this:
    http://developer.apple.com/documentation/Carbon/Conceptual/SpotlightQuery/index. html
    See the section on "Query Expression Syntax" and the one on "Spotlight Metadata Attributes Reference" (click link, then click the link in the Introduction to the section). Most the other stuff is of interest mainly to programmers, but those two sections are actually useful to regular folks.
    Francine
    Francine
    Schwieder

  • Searching for document that uses a certain font?

    Is there a way to search for a Word document that uses a specific font? There is only one possible document on my hard drive that uses this font.

    There must be a way, that info is stored in the Document near the end, like...
    Still working on it.

  • Is there a way to search for shots that iphoto is having a problem with?

    I have upgraded to ilife 08 and now have more than a few shots in a library of 10,000 shots that are missing their links
    have rebuilt all thumbnails and connections and whatnot but still the files that are messed up have stayed messed up
    I think I have backed up files elsewhere so I can reimport as need be (I think).
    so I would like to do a search (somehow) for the files that have problems
    and I would like to replace them/reimport backed up files
    is either/both possible?
    M

    The problem is, Im afraid. that your database has been corrupted. I don't know of anyway to track down the photos that have been dropped from the db in the process, and re-importing them - if you could - would be to import to an unstable and damaged entity.
    Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library allowing it to overwrite the damaged file. If not, then you'll need to create and populate a new library.
    To create and populate a new library:
    Note this will give you a working library with the same film rolls and pictures as before, however, you will lose your albums, keywords, books, calendars, modified versions etc.
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Events to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library Folder on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.
    Regards
    TD

Maybe you are looking for

  • I have a iPod clsic load it with the music I like. I want to sync all my iPod music with the iTunes library (new) without missing any music from my iPod. How I do that?

    I have a iPod clsic load it with the music I like. I want to sync all my iPod music with the iTunes library (new) without missing any music from my iPod. How I do that?

  • Toast 6 Problems

    I know these forums don't tend to address 3rd party app problems, but I can't seem to find a solution elsewhere. First of all, after years of struggling with my long-in-the-tooth G3 imac, I am getting a new 17" core duo imac tomorrow (YAY!!) and I wa

  • How was your experience by configuration of ESS MSS scenario

    Hi, we would like to integrate the MSS / ESS scenario into our EP 7.0. Which effort did you need for configuration of EP 7.0 and HCM on ECC 6.0 for MSS / ESS scenario as described in HCM best practices? How was your experience while configuration? Th

  • XSL-FO and Background Images

    I'm using JDK-1.4.2 supplied with XALAN along with Apache FOP to generate PDFs and I'm having trouble adding background images. I want to add the company logo as a background image in the header. My code looks like this: <fo:static-content flow-name=

  • Upgrading a T30(SSD)

    I have a T30. It isn't really fast, or new, but I was hoping to maybe help that a little with a small upgrade. I have already capped the memory with 2GB, but have been looking at the dropping prices of SSDs lately, and thought maybe it was worth cons