How to get all kind of GP work items for all users

Advertisement

Dear all:
   Basing GP implementation,we can only get the single user's work item. Is that possible to get all of the users' work items,and can filter the work item via time field?
  thanks a lot.

Advertisement

ISearchResult result=UMFactory.getUserFactory().getUniqueIDs();
               IUser iuser;
               while(result.hasNext())
                    iuser=UMFactory.getUserFactory().getUser(result.next().toString());
The above code retrives all the users from the UME
IGPUserContext context = GPContextFactory.getContextManager().createUserContext(iuser);
IGPWorkItem[] workitems = GPProcessFactory.getRuntimeManager().getWorkItems(GPWorkItemStatus.getTypeForCode("1"), context);
You will get the WorkListItems in the workitems array. The type for code which is 1 currently, must be changed according to the requirement. It is different for Completed, Inprogress Tasks, etc.
Hope this will help you!

October 11, 2015

How to get all kind of GP work items for all users

Dear all:    Basing GP implementation,we can only get the single user's work item. Is that possible to get all of the users' work items,and can filter the work item via time field?   thanks a lot.ISearchResult result=UMFactory.getUserFactory().getUni

Issue with Work Items for a User

HI All, I have an issue with workflow. One of my user stopped receiving work items in his inbox. I checked table SWWUSERWI and found 0 entries for the user. So i guess there is no problem with the display setting in SBWP. What could be the probable r

How to get micro sd card to work

how to get micro sd card to work.. my phone says total space 7.40GB for sSD card and that's whats available. I put a micro SD card in but no change?You put the card in and go to settings and go to storage and scroll down to sd card and click mount ad

How to get a wallet (like in Nokia 6600) for Nokia...

Dear All, Can you please tell me how to get a wallet (like in Nokia 6600) for my Nokia E63? Narottam Das Kolkata, IndiaUsing the data from your Excel spreadsheet, this is what I get from the curve-fit functions: Seems like a pretty-good fit to me. I'

How to set up same timezone in BI Publisher for all the USERS?

Hi Experts, My OBIEE version is 11.1.1.6.6  and any user can go into the My Account and then preferences  and set the timezone. But as an admin, i see they are too many users and wanted to setup common timezone for all of them. How do i setup common

How to get to see the usernames and passwords for wifi logins on iPad

How to get to see the usernames and passwords for wifi logins on iPad. You can't access that on an iPad. The iPad does not have a Keychain Access type app like the Mac has. Maybe an application like iExplorer on your Mac will let you see them, but yo

How to fetch APPROVER NAME  and approval date dynamically for an user

Hi all.. How to fetch approver name and approval date dynamicall for an user in an email template.. can any help me to sort out this pbm,i am new to IDM.. Thanks in advance..Access policies get a static value.  You can't populate a field with an adap

ECB Menu item for all CTs (Content Types) except folders (Without hardcoding CT names)

Hi there, How to have an ECB menu item for all items only (and not on Folders). I canNOT hardcode the names of Content Types. Thanks.Have you tried using base content type id? http://social.technet.microsoft.com/Forums/en-US/cd63795b-9659-4b35-a023-c

How to disable the validity of a particular Role for 100 users, in a single

Hi How to disable the validity of a particular Role which is assigned to 100 users. (disabling the role of change the validity of the role ) at present am doing manually, by entering into each user and changing the validity of the role Thanks.> How t

I have moved all of my movies from "Search for - All Movies" folder thinking they were shortcuts to the trash folder by mistake.  Is there any way I can restore them to the right place on my system Note most are on an external hard drive. :(

I have moved all of my movies from "Search for - All Movies" folder thinking they were shortcuts to the trash folder by mistake.  Is there any way I can restore them to the right place on my system Note most are on an external hard drive.You can

How to get GH4 RAW files to work natively in Lightroom 4.4

I want to know how i can process Panasonic Lumix GH4 RAW files within Lightroom 4.4 like i use to do with my GH3.  I have updated camera raw to 8.6 so i can use Photoshop CS6 to process them but i much prefer doing it in Lightroom.   Any help would b

How to get the garbage collector to work?

Hi, i have i program where i load an image scale it down and save the scaled version in an array. I do this for a whole directory of images. After every image i set the temporary variable for the loaded image = null and call the function System.gc().

How to get Port Forwarding to 8080 working on HH2

Hi, How can I get port forwarding to 8080 working on my HomeHub2? I have a QNAP TS219P NAS connected via wired Ethernet to my HomeHub2. This has a Web Administration facility that should enable me to access & manage the NAS over the Internet. I have

How to get EDUP wireless usb adapter working under linux

i have a EDUP wifi adapter, that i would like to use with arch. the box states that linux is supported. but i dont know how to get the drivers to work. here is the out put of lsusb. [[email protected] ~]$ lsusb Bus 001 Device 004: ID 0ace:1215 ZyDAS WLA-

I am trying to get Menu Editor 1.2.7 to work globally for all users. I have added the .xpi to the extensions folder and it is not being installed auto-magically.

I would like to have Menu Editor installed for all users. I attempted to put the .xpi file in c:\Program Files (x86)\Mozilla Firefox\extensions with the expectation that the user would be prompted to install.You need to rename the XPI file to the (GU

How to get the measure total at row level for another measure calculation in DAX?

Hi There, Using DAX, I am trying to get an expression for a calculated measure as follow: So basically, I would like to get the AMeasure total highlighted in yellow in the A2Measure calculation: Smeasure -(Ameasure total * WMeasure) where Ameasure to

How do I turn on surround sound (5.1) for all my iTunes items?

In iTunes, while a video is playing, I can go to Controls/Audio and Subtitles and select English (Surround Audio). This allows the sound to work with my 5.1 Dolby Digital audio setup. It looks, though, like the only way to turn this on is to actually

How to transfer GOS attachment to my work item

Hi Friends,   I have the following requirement. The user while creating a Appropriation request in tcode IMA1N will create an attachment using Generic Object Services(GOS). once he saves my workflow will trigger and it will go to approval. I need to

How to get the first month of the year inputed by user manually

Hi Expert, Just like the subject, I 'd like to get the first month of the year inputed by user manually, but don't know how to set the variable, please help. For example, user execute a query and input the value of variable Year = 2010, and what I wa

How to get maximal value from the data/class for show in Map legend

I make WAD report that using Map Web Item. I devide to four (4) classes for legend (Generate_Breaks). I want to change default value for the class by javascript and for this, I need to get maximal value from the class. How to get maximal value from t