How to retrieve all the tasks for a UserView with the worklist api 10.1.3.1

Hi,
I have defined a custom view for user jcooper. The view just displays all the current uncompleted tasks for jcooper.
I want to use the worklist api to retrieve all the tasks in the view. I first tried it with the following function call:
taskQueryService.queryViewTasks(workflowContext,viewName, null, null, 0, 0);
assuming that the viewId in the corresponding java-doc corresponds to the name of the view..However this doesn't work and the method returns a null reference. So viewId is something different than a viewName. Because I cannot find the corresponding viewId for my view (not looked in the db yet, but I don't want to use these ids in my app), I tried the method:
client.getUserMetadataService().getUserTaskViewList(workflowContext, Partcipant participant);
However I did not find a method to retrieve a Partipant instance for jcooper in the worklflow api documentation.
My question now is if someone can help me out to retrieve all the tasks for a specific view. I should be possible I think...
Thanks!
Kind regards,
-Tom

The second argument (Participant) was added to handle the use case where one user such as an admin or manager needs to retrieve user metadata of another user (offcourse with the required security checks). We will try to do a future enhancement such that if the pariticipant is passed as null then we will assume the metadata is to be retrieved for the workflow context user.
For now you can define a simple method to create a participant from a workflow context as follows and pass this as an argument to the UserMetadataService call:
private Participant createParticipant(workflowContext)
Participant participant = new oracle.bpel.services.workflow.common.model.ObjectFactory().createParticipant();
participant.setName(workflowContext.getUser();
participant.setRealm("jazn.com");
participant.setType("USER");
return participant;
// code to retrieve task list...
UserViewList views = client.getUserMetadataService().getUserTaskViewList(
workflowContext, createParticipant(workflowContext))
...

Similar Messages

  • How to retrieve all the users along with their password from LDAP

    Hello,
    Can anyone let me know how to retrieve and list all the user along with their password from LDAP.
    Thanks

    Hi Prashant,
    I have limited experience with Synchronization, but I agree with you - if you need to synchronize Passwords, you need to have the Password in clear Text.
    If you trying to build your own Synchronization Solution using any of the avaliable LDAP APIs, I don't think you can ever retrieve a user's Password in clear text.
    However, I did come across an interesting article & I hope you find it useful :-
    http://www.oracle.com/technology/obe/obe_as_10g/im/configssl/configssl.htm
    I am not sure if SSL is necessary - If you have a look at Metalink Note 277382.1 ( How to Configure OID External Authentication Plug-In for Authentication Via Microsoft Active Directory (MS AD) ), teh question asked by oidspadi.sh for the same is asnwered as "N".
    Regards,
    Sandeep

  • How to retrieve all the data from a BLOB using view-generated accessor

    I am using JDeveveloper 10g v. 10.1.3 and am storing an image in a database as a blob object and need to retrieve all of the data to get the entire image and store it in an ImageIcon. The code I have works partially in that it retrieves the correct data, but only gets a piece of it, leaving me with a partial image.
    AppModuleImpl am;
    ImageVwViewImpl vo;
    am = (AppModuleImpl)panelBinding.getDataControl().getDataProvider();
    vo = (ImageVwViewImpl)am.findViewObject("ImageVwView");
    ImageVwViewRowImpl ivo = (ImageVwViewRowImpl)vo.getCurrentRow();
    ImageIcon icon = new ImageIcon(ivo.getImage().getBytes(1, (int)ivo.getImage().getBufferSize()));
    jULabel1.setIcon(icon);I either need to know how to use a stream to get the data out (from BlobDomain method getBinaryStream()), or how to get the other chunks of data separately.
    edit: I know the problem is that getBufferSize() returns an int which is too small to hold all the data, but need to know what to use instead. Thanks!

    This is the code I'm using now. Same problem :(
    AppModuleImpl am;
            ImageVwViewImpl vo;
            am = (AppModuleImpl)panelBinding.getDataControl().getDataProvider();
            vo = (ImageVwViewImpl)am.findViewObject("ImageVwView");
            ImageVwViewRowImpl ivo = (ImageVwViewRowImpl)vo.getCurrentRow();  
            ImageIcon icon = new ImageIcon(ivo.getImage().toByteArray());
            jULabel1.setIcon(icon);

  • How to retrieve all the information about a workbook saved on the DB

    Hi everybody,
    I created some reports, but after have modified and have renamed custom folders and joins on the Administrator, now I'm not able to re-open any report (they are completely finished !!!)
    I have the following error: Cannot join tables used in the workbook.
    I know that the problem are the joins on the Administrator....that I modified after the reports creation....and now I don't remember how they were originally when I created the reports....
    So, I'd like to retrieve from the workbooks saved on DB which tables (or custom folders) they use and how they originally connected (joins' names, etc..), in order to rebuild on the Administrator the old structure and reopen my workbook.
    Is there a place where all the information about the workbooks saved on the DB are stored ?
    Thanks a lot in advance
    Alex

    Hi,
    All the workbooks are stored in the EUL5_DOCUMENTS table. They are stored in a LONG RAW column and in a binary format so this is not much help to you.
    You could try using the workbook dump utility which is provided with Disco Admin and Desktop. You run it from the command line:
    d51wkdmp Workbook1 Workbook1.txt DB user1:"System Administrator"/pass1@dbname EUL5_US -f
    Rod West

  • How to retrieve all the art objects which are inside a selected path?

    Hi,
    I need it for a plug-in I want to create.
    In fact, I want to enable the user to draw a closed path which will select all the objects inside it.
    I actually need something like a Lasso Tool but one which also draws a path.
    I'm looking for it, but unable to find it.
    If you can help me, I'll be thankful.
    Leon.

    Let's say I require that the entire art must be inside the path(Or at least all it's anchor points).
    Anyway, one thing for sure - I assume the path is a simple closed path, ie the path doesn't intersect itself(like figure 8 shape).
    What is the way to check whether an art or at least a point is inside such a path(not inside it's bounding rectangle, but inside it)?
    I wonder why there is no such function if the Lasso Tool exists in AI and it does some such geometry computation, at least this is what I think.
    I thank you guys for your replies.

  • How to retrieve all users in the portal with UME API

    Hi everybody,
    I would like to know how to retrieve all the users from a portal, which uses LDAP as a source (there are users created in the portal as well)
    My code snippet is :
    IUserFactory userFactory = UMFactory.getUserFactory();
    UserSearchFilter searchFilter = userFactory.getUserSearchFilter();
    searchFilter.setDisplayName("*", ISearchAttribute.LIKE_OPERATOR, false);
    ISearchResult searchResult = userFactory.searchUsers(searchFilter);
    My problem is that with the code above, only the users created in the portal are displayed, and no LDAP users.
    Does someone know how to retrieve all the users whatever is the source?
    Regards
    Renaud

    prakash's code should work.
    however, mine code below doesn't user a search filter. it retrieves everyuser including users like indexadmin etc. Note:
    result.next().toString();
    returns a weird uniqueID used in the portal world.
    getUniqueName()
    gives your the usernames (sAMAccountName in Microsoft AD) people use to logon to the portal.
    try {
      IUserFactory uf = UMFactory.getUserFactory();
      ISearchResult result = uf.getUniqueIDs();
      while (result.hasNext()) {
        String uniqueid = result.next().toString();
        IUser user = uf.getUser(uniqueid);
        String userid = user.getUniqueName();
    } catch(Exception e) {
      //systemout

  • Trying to retrieve all the records from the file on desktop

    HI All
    I have one particular problem. I was given a text file which as 7000 records with length 512 each in a continues string. I Changed begining of each record with comma  in that text and saved it in .csv , when I try to upload the file into my program's internal table.
    It is still giving one record. I used
    itab_EXTRACT1 declared as
    DATA: begin of itab_extract OCCURS 0,
            extract1(512) type c,
          end of itab_extract.
    call method cl_gui_frontend_services => gui_upload
        exporting
          filename                = Xfile
        filetype                    = 'ASC'
         has_field_separator     = 'X'
        changing
          data_tab                = itab_EXTRACT1
      exceptions
        others                  = 17.
      Is there a way how to retrieve all the records into the internal table.
    Thanks
    Ravi

    Hi Ravi,
    I don't know if this is the correct solution, but I think it will work.
    Declare your internal table (itab_extract) with the maximum length which your file will occupy.
    Create another internal table (itab) with field (text) length 512.
    Populate the internal table itab_extract using GUI_UPLOAD.
    Then write this code
    l_index = 1.
    itab-text = itab_extract-extract1+0(512).
    append itab.
    do.
    n = ( l_index * 512 ) + 1.
    itab-text = itab_extract-extract1+n(512).
    append itab.
    if ( itab-text is initial ).
    exit.
    endif.
    enddo.
    Let me know if I miss anything.

  • I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk.  It deleted all new data added since Dec (notes,contacts,texts,pics, info in apps) and reverted back to all my old data.  How can I retrieve all the lost data??

    I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk.  It deleted all new data added since Dec (notes,contacts,texts,pics, info added to apps) and reverted back to all my old data (literally uploaded all of my old texts and 1400 old pics and deleted anything new).  How can I retrieve all the lost data?? Please help!!

    SkyDaughter29 wrote:
    My current situation: I have soooo many texts on my iphone and I haven't deleted many because I need the information contained in them for future reference and for legal purposes.  I would really like to find a means and way to save them other than on the phone itself. I've done searches for various apps yet I'm not finding what I think I would need.  It appears Apple does not sync the texts between the iphone and my MacBook Pro.
    Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php
    Best of luck.

  • How do I retrieve all the itunes I paid for on my replacement phone, I never backed up my previous one before it broke

    How do I retrieve all the songs I paid for through itunes on my 3gs, I never backed them up on my previous phone before it broke ?

    You need to download and install iTunes 10.3 on your desktop. Log in to your iTunes account.
    On the left side of iTunes is an entry under STORE called "Purchased". Click on it, and a list of everything you bought opens in the right window. There's a button at bottom left  "Download Previous Purchases".
    Note: Until iTunes 10.3 and iCloud beta you could not do this. You would NOT have been able to get your music back. Please use iTunes to back up your iPhone, or you risk losing everything.
    And to anticipate a possible response: the pre-10.3 situation was NOT an Apple decision - ti was because the music corporations would not allow re-downloading.

  • I have added a 5 songs from a single album and in Ipod it comes as enigma album and in that one song is available and another album named enigma and another song. IT happens for 5 songs also. How to make all the 5 songs in one album name Enigma

    I have added a 5 songs from a single album and in Ipod it comes as enigma album and in that one song is available and another album named enigma and another song. IT happens for 5 songs also. How to make all the 5 songs in one album name Enigma???

    I am working on a friend of mine's 15g ipod(W/dock connector)and I am having the same trouble except it does it to all the songs. I have tried reseting it multiple times, but to no avail.
    I am not sure that this runs on windows XP, it is absolutly archaic (compared to my 5th gen. 30g video).
    Help?
    15g ipod (w/dock connector)   Windows XP  
      Windows XP  

  • How to find all the tables associated for a particular transaction

    Hi-
    May I know how to find all the tables, related(foreign key) tables for a transaction within SAP GUI?
    Up to my technical knowledge, this can be achieved by looking database diagrams from DB level. But that would be for entire database as a whole. What I'm expecting is to see transaction level relative tables that too from SAP GUI. Please share the possibilities if any.
    Regards
    Sekhar

    Dear Micky Oestreich
    May be we possess expertise or high level experience, it should not show up in our way of communication. Every professional starts with the basic stuff to learn. When the question is raised in such minimum polite way, the same level of courtesy is expected in return. If you felt my question was basic, you might have refused it gently. If you are in good mood or bad mood it doesn't matters.
    Hi Vengal Rao
    Thanks for your response. It helped me.
    Regards
    Sekhar

  • Hi, I have accidently delete a keynote app, could someone tell me how to redownload the app and retrieve all the contained information

    Hi, I have accidently delete a keynote app, could someone tell me how to redownload the app and retrieve all the contained information? Thank you!

    You are most welcome

  • How to retrieve all users in a specific group

    Hi,
    I am using SunOne directory server. Can someone please post a sample code that illustrates how to fetch all the list of users in a particular group.
    1) Let's say I want to find all the users in a group called "marketing". The root context is dc=mycompany,dc=com This group can be anywhere below this root context. Only information I am told is the name of the group - "marketing". How will I get all the users in this group?
    2) For each user that is retrieved from the group marketing, how will I find out the user's DN?
    Thanks for the help,
    - Satish

    Do it like this...
    String searchBase = "ou=marketing";
    StringBuffer filter = new StringBuffer();
    filter.append("(|");
    if (organizationName != null && !organizationName.trim().equals("")) {
         filter.append("(");
         filter.append(ou);
         filter.append("=");
         filter.append("marketing");
         filter.append(")");
    SearchControls constraints = new SearchControls();
    constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
    constraints.setCountLimit(200); // How many users should be found
    constraints.setTimeLimit(100000); // how much time should this search wait
    // Get a initial context and set it to the ctx object
    ctx.search(searchBase, filter.toString(), constraints);

  • Recursively Retrieving All the Files/Directories in a Directory

    Hello,
    I want to retrieve all files in a directory, and ran into this sample code:
    www.ni.com/example/27157/en/
    This is the function that does the retrieve action:  GetFilesAndDirectories().  Its content is as follow:
    void GetFilesAndDirectories(char dir[], int* numItems, int parentItem)
    char fileName[MAX_PATHNAME_LEN], searchPath[MAX_PATHNAME_LEN];
    int error = 0;
    strcpy (searchPath, dir);
    strcat (searchPath, "\\*");
    if (!GetFirstFile (searchPath, 1, 1, 0, 0, 0, 0, fileName)) // has at least one file
    InsertListItem (panelHandle, PANEL_LISTBOX, -1, fileName, (*numItems)++);
    while (!GetNextFile (fileName))
    InsertListItem (panelHandle, PANEL_LISTBOX, -1, fileName, (*numItems)++);
    if (!GetFirstFile (searchPath, 0, 0, 0, 0, 0, 1, fileName)) // has at least one directory
    char dirNamesSaved[MAX_NUM_DIR][MAX_PATHNAME_LEN];
    int numDir = 0, i;
    strcpy (dirNamesSaved[numDir++], fileName);
    while (!GetNextFile (fileName) && numDir<MAX_NUM_DIR) // first save all the directory names
    strcpy (dirNamesSaved[numDir++], fileName);
    for (i=0; i<numDir; i++)
    char displayName[MAX_PATHNAME_LEN];
    Fmt (displayName, "%s<%s%s", fileName, " (Directory)");
    InsertListItem (panelHandle, PANEL_LISTBOX, -1, displayName, (*numItems)++);
    MakePathname (dir, dirNamesSaved[i], searchPath);
    GetFilesAndDirectories(searchPath, numItems, (*numItems)-1);
    I then modify that function into one that I can use to retrieve either files or folders, and populate a ring object with the result.  I call it Ring_Populate().  Its content is as follow:
    void Ring_Populate (int panel, int TargetRing, char TargetFolder[], int Directory_Bool, int *Iteration_Now, int Iteration_Prev)
    char FileName [260]; //standard = 260 max char. w/ null char.
    char Folder [260];
    strcpy (Folder, TargetFolder); //copy string
    strcat (Folder, "*"); //add wildcard character, * or ?
    switch (Directory_Bool)
    case 0: //file
    if (!GetFirstFile(Folder, 1, 1, 0, 0, 0, 0, FileName)) //has at least 1 file
    InsertListItem (panel, TargetRing, -1, FileName, (*Iteration_Now)++);
    while (!GetNextFile(FileName))
    InsertListItem (panel, TargetRing, -1, FileName, (*Iteration_Now)++);
    break;
    default: //folder
    if (!GetFirstFile(Folder, 0, 0, 0, 0, 0, 1, FileName)) //has at least 1 folder
    int Folder_No = 0;
    int Folder_Max = 50; //max 50 folders
    char Folder_List [50][260]; //name 260 max
    strcpy (Folder_List [Folder_No++], FileName); //copy first element then ++
    while ( (!GetNextFile(FileName)) && (Folder_No < Folder_Max) )
    strcpy (Folder_List [Folder_No++], FileName); //copy all folder names
    for (int i = 0; i < Folder_No; i++)
    char modFolder [260];
    //Fmt (modFolder, "%s<%s%s", FileName, " (DIR)");
    //InsertListItem (panel, TargetRing, -1, modFolder, (*Iteration_Now)++);
    //MakePathname (TargetFolder, Folder_List [i], Folder); //recycle
    //Ring_Populate (panel, TargetRing, TargetFolder, 1, Iteration_Now, (*Iteration_Now) - 1);
    Fmt (modFolder, "%s<%s%s", Folder_List [i], " (DIR)");
    InsertListItem (panel, TargetRing, -1, modFolder, i);
    break;
    It works fine.  However, the section that I commented out (modified from the sample code, which works) gives me stack overflow.
    //Fmt (modFolder, "%s<%s%s", FileName, " (DIR)");
    //InsertListItem (panel, TargetRing, -1, modFolder, (*Iteration_Now)++);
    //MakePathname (TargetFolder, Folder_List [i], Folder); //recycle
    //Ring_Populate (panel, TargetRing, TargetFolder, 1, Iteration_Now, (*Iteration_Now) - 1);
    This is the original code:
    char displayName[MAX_PATHNAME_LEN];
    Fmt (displayName, "%s<%s%s", fileName, " (Directory)");
    InsertListItem (panelHandle, PANEL_LISTBOX, -1, displayName, (*numItems)++);
    MakePathname (dir, dirNamesSaved[i], searchPath);
    GetFilesAndDirectories(searchPath, numItems, (*numItems)-1);
    Question:
    1. How do I get stack overflow?  My code is essentially the same.
    2. My modified code works fine retrieving the list of folders.  I do not see the need to call the function recursively.  Can anyone explain?

    Hello all,
    I can't figurate how to list all the root directories
    (C:/> , D:/>, E:/> etc.) in a system.
    I know how to recursively check the content of a
    directory and all its subdirectories when a
    predefined path is defined. However what I' d like to
    do is actually give the option to pick one of the
    root directories to start the iteration. I have been
    looking around but I can' really find anything
    helpful.
    If any of you has any idea on how to achieve the
    above objective some clarification would be really
    appreciated.
    Thanks in advance for your help!How to installing the Javax.comm package

  • Can anyone tell me how to retrieve all reserved identifiers and keywords in

    can anyone tell me how to retrieve all reserved identifiers and keywords in oracle ???
    i want to know the syntax of query ??

    yes i do , but now i faced problem of JDBC
    thanx for the help , i am able to retrieve the keywords
    actually i want to retrieve the words in java thought JDBC
    my code is
    try ..//
    Vector  keywords =new Vector();
    String sql4=("select * from   V$RESERVED_WORDS");
    ResultSet rs7=stmt6.executeQuery(sql4);
    //  System.out.println("1");
    while(rs7.next())
    keywords.addElement(rs.getString("KEYWORD"));
    ;catch //This is giving following exception
    java.sql.SQLException: Invalid column name

Maybe you are looking for

  • How to trigger replication from CRM to ECC when changing custom z-field?

    Hi all, I've created a z-field in CRM which matches the field KNVV-KLABC in ECC. I've created the needed user exits to replicate from ECC to CRM and vice versa. The functions are called and update successfully. So actually everything works fine excep

  • Service ticket error

    Hi, We are working on CRM4.0 We are working on service tickets in IC Webclient Whenever we try to create a service ticket without confirming an account, it gives an error. This is causing problem because at times we are unable to confirm an account a

  • Adding namespace qualified element nodes

    Is there a way to add namespace qualified element nodes to a document stored in a BDBXML container using the XmlModify class (BDBXML version 2.3.10, Linux)? Or, for that matter, any other handles? Particularly, is it possible to achieve this using th

  • Public Meraki Network / Airport Extreme

    I'm within range of a Meraki wireless network signal that will apparently let me access the internet. However, Apple Airport Extreme is a modem and Access Point in one and appears to be interfering with the signal. If I purchase a Meraki repeater to

  • I wanna delete my photos from my laptop but i don't know how?

    see here i wanted to move some of my photos to my laptop then when i it sync it seems that it move some of my photos from my laptop to my iphone now when i looked in my photos my photos from my laptop were there but i was trying to delete it cannot b