Getting the task list for a user

i´ve created a bpel project in which all i do is a simple human workflow asssined to user1. Next i want to create a jsp in which i list the tasks assigned to that user for which i looked into the tutorial 10.UserTasks.
The difference between the example in there is that the active bpel is the TaskManager in my case it just opens the TaskActionHandler.
Now when i look into the exmple in listTasks.jsp it uses
ITask[] tasks = worklist.listTasksByAssignee( "[email protected]" );
when i set the user to user1 it returns no tasks, even though i can see 3 tasks opened.
any clues? any pointers would be appreciated.
gabriel

Hi,
In 10.1.2 the TaskManager is replaced with the TaskActionHandler.
You don't necessarily have to build a JSP to access tasks - you can use the out of the box sample worklist. This can be accessed at:
http://localhost:9700/integration/worklistapp/Login
However, if you would like to create your own worklist, you will have to use the new 10.1.2 Worklist apis.
These are documented in Chapter 14 and Chapter 16 of the BPEL developers guide.
You can also find the javadoc at
ORABPEL_HOME\integration\orabpel\docs\workflow
To see a sample you can look at the VacationRequest or the HelpDeskRequest sample

Similar Messages

  • How to get failed tasks list for a user in OIM.

    Hi All,
    Can anybody please suggest me a way to get list of task that got failed(when a user trying to provision to a resource) in OIM using java code.
    Thanks in Advance.
    SP.

    Use the code snippet below to get the task status. Based on this you can filter rejected tasks.
    userintf = (tcUserOperationsIntf) ioUtilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
    provintf = (tcProvisioningOperationsIntf)ioUtilityFactory.getUtility("Thor.API.Operations.tcProvisioningOperationsIntf");
    long userKey=100;
    tcResultSet userresultSet = userintf.getObjects(userKey);
    for(int i=0;i<userresultSet.getRowCount();i++)
         userresultSet.goToRow(i);
         long processKey = userresultSet.getLongValue("Process Instance.Key");
         tcResultSet provresultSet = provintf.getProcessDetail(processKey);
         for(int j=0; i<provresultSet.getRowCount();j++)
              provresultSet.goToRow(j);
              String taskName = provresultSet.getStringValue("Process Definition.Tasks.Task Name");
              String taskStatus = provresultSet.getStringValue("Process Instance.Task Details.Status");
    Let me know if you have any queries...

  • Can you retrieve a task list for a user without specifying that user's connection settings?

    Hi
    I would like to know if it is possible to obtain a list of workspace tasks for a user of my choice. In the following code, taken from the relevant quickstart, I am able to retrieve a list of tasks for "administrator" because it is the "administrator" settings specified in the connection properties when obtaining an instance of ServiceClientFactory. If I wanted to obtain a list of tasks for user "greg", for example, is there a way I can do this without having to specify the settings for "greg" in the connection properties? I tried to invoke the setUserId() method of the TaskFilter interface but no tasks are returned for user "greg" in that scenario. The aforesaid user has 3 tasks assigned to him. If I specify the user name and password for "greg" in connection settings, I am able to retrieve his list of tasks successfully. However, this is undesirable because I want to be able to retrieve a list of tasks for any user of my choice, by passing a parameter. Is that possible? Code follows:
    //Start of code
    import com.adobe.idp.dsc.clientsdk.ServiceClientFactory;
    import com.adobe.idp.dsc.clientsdk.ServiceClientFactoryProperties;
    import com.adobe.idp.taskmanager.dsc.client.TaskManagerClientFactory;
    import com.adobe.idp.taskmanager.dsc.client.TaskManagerQueryService;
    import com.adobe.idp.taskmanager.dsc.client.query.StatusFilter;
    import com.adobe.idp.taskmanager.dsc.client.query.TaskFilter;
    import com.adobe.idp.taskmanager.dsc.client.query.TaskRow;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Properties;
    public class RetrieveTaskInfo {
        public static void main(String[] args) {
            try {
                //Set connection properties required to invoke LiveCycle                                                                                                                        
                Properties connectionProps = new Properties();
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "jnp://localhost:1099");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,Service ClientFactoryProperties.DSC_EJB_PROTOCOL);          
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password");
                //Create a ServiceClientFactory object
                ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
                //Create a TaskManagerQueryService object    
                TaskManagerQueryService queryManager = TaskManagerClientFactory.getQueryManager(myFactory);
                //Define search criteria by performing a search on 
                //Assigned tasks (tasks assigned to the user specified
                //in connection properties) 
                TaskFilter filter = queryManager.newTaskFilter();
                StatusFilter sf = filter.newStatusFilter(); 
                sf.addStatus(StatusFilter.assigned); 
                filter.setStatusFiltering(sf);
                //Perform the search
                List result = queryManager.taskList(filter); 
                //Create an Iterator object and iterate through
                //the List object
                Iterator iter = result.iterator();
                while (iter.hasNext()) {
                    TaskRow myTask = (TaskRow)iter.next();
                    //Get the task identifier value
                    long taskId = myTask.getTaskId();
                    //Get the status of the task
                    long taskStatus = myTask.getTaskStatus();
                    //Get the name of process on which this task is based
                    String processName = myTask.getProcessName();
                    //Get the task description
                    String taskDes = myTask.getDescription();
                    System.out.println("The task identifier is " + taskId + "\n" +
                            "The status of the task is " + taskStatus + "\n" +
                            "The name of the process on which the task is based is " + processName + "\n" +
                            "The task description is " + taskDes);
            } catch(Exception e) {
                e.printStackTrace();
    //End of code
    Thanks
    Darren

    Paul,
    Thanks very much, I never tried just asking for the parameter I was looking at the entire list coming back from a query with no filters. Using the DBMS_LDAP package you can in fact get their GUID.
    I understand your concern for the use of the field and for other reasons have moved to a different identifier to tie OID accounts to our internal application user accounts.
    Thanks very much, I'm still glad to know how to do get at the info.

  • Getting UWL task count for all users in a role.

    Hi.
    I recently posted a question regarding a very similar issue, but I haven't got any response yet. I think my question might have been somewhat poorly phrased, so I will try to do better at explaining what we need.
    We have a number of processes, most of which need to be dynamically assigned to a user when created. The way we want to assign those tasks is by executing a WebService which would receive a role name and get all the users for that role. Then, using the UWL API, it would check how many tasks each of the users have in their UWL, and return the UserID for whoever has the least tasks. I haven't been able to get this to work. I keep getting Logged in users context or session doesn't exist Exception.
    Please, any help on this will be greatly appreciated.
    Currently working with SAP NWDS 7.1 SP05 PAT0005

    Hi,
    Thank you for your response, however, that's not what I need.
    For you and anyone esle who might find this extra info useful...
    I know how to get a user's role(s), and how to get the users in a role.
    I also know how to assign a task to a specific user dynamically.
    Using the UWL API, I know how to get the tasks (or items) in a user's UWL from a WD application, I need to do that from a WebService and using pretty much the same code, with the necessary adjustments, I can't get it to work.
    Furthermore, I'm able to get the UWL tasks for ONE user, that user being the one I log into the application with. For example, if I write code to get the tasks for user testUser1, I need to log in with testUser1 to get it to work, if I log in with any different user or make it a non-authenticated application, it won't work.
    Again, help on this is much needed and will be appreciated.

  • I updated to 3.6, lost bookmarks, have only a default profile so I restored. The bookmarks are now there but I can't get the dropdown list for many folders so I can't access these. Clicking on the arrow to the right of the folder name does nothing.

    When I Click on some of the bookmark folders I do get a dropdown list of sites but not always all of the sites that were bookmarked. If I copy a nonresponding folder, the new copy can be accessed but apparently does not contain all of the sites. If I rightclick on a nonresponding folder and use 'open all tabs' Firefox will tell me the number of sites in the folder and ask if I really want to open so many.

    Sounds like a corrupted places.sqlite file.
    See http://kb.mozillazine.org/Locked_or_damaged_places.sqlite

  • Getting the most out for a user that is not exactly savvy

    My apologies if I have broached this topic somewhat before. I bought my first computer last fall and was not that familiar with Windows based machines at the time. Currently, I just surf the internet and check my email in yahoo. I'd like to get more out of my machine and become more savvy. I own the Leopard missing manual, however its not the most fun book to read cover to cover. I have picked up some information from visiting websites like Macworld. What are the desert island books and the best websites by consensus for learning? As I have a lot of time on my hands, what would be the best way to go about learning? I need help pertaining all aspects of computing. From learning to type to peripherals, software and hardware included. Thanks much!

    I'm going to go against the crowd here and say that if you don't find David Pogue's book "The Missing Manual" interesting, then you are not interested in learning about the computer. It's an excellent book, well written and readable and thoroughly informative about how your computer works. BUT It's no big deal if you're not interested: Apple computers are basically made for people who want to use them, as opposed to understanding them or tinkering with them. Figure out what you want to use your computer for, and approach the learning process from that direction.

  • How to get the home page for a user using  Pl/sql code ?

    Hi,
    I have a pl/sql procedure which runs after a form submission on a dynamic page. At end of completion of the procedure I want to send user to his/her home page. I am trying to write at the end of procedure to redirect the user to the home page. How do I do that ? What is way to redirect to a page using pl/sql and how do I know the user home page url ?
    thanks,
    Mainak

    Hi,
    Try <portalschema>.wwv_redirect.url('<portalschema>.home');
    Please replace portalschema with the name of your portal schema.
    Thanks,
    Sharmila

  • SP 2013 Workflow Associations - get the content type for associated tasks with PowerShell

    I am creating a PowerShell script to document SharePoint 2013 workflow associations on a site. I can get the Subscription object for the workflow association, but I can't figure out how to dig into it to find out the Content Type for tasks generated
    by workflows created by this WF association. I can get the Task List ID from the Subscription.PropertyDefinitions, and from there can get the Task List. But the task list may use many different content types, because when you associate a 2013 workflow
    to a list, SharePoint adds the workflow's content type to the set of content types used by the workflow task list. If you have a lot of workflows that use the same task list, that task list gets a lot of content types.
    I have the Subscription object for the workflow association. How can I divine the content type for tasks that the workflow will generate?
    Leigh Webber

    I would suggest you to consider using the SPListItem that running the workflow instance to check the task content type.
    First, find the list item that associated with the workflow, then SPListItem.Tasks returns a collection of workflow tasks for the item, you can check the content type from the task item.
    Qiao Wei
    TechNet Community Support

  • Standard test error in the task list operations

    Hi Friends,
    We made a Z program in such a way that Task list operation long text through standard text key (CA10) will get updated automatically for
    those associated operations, but the problem we never observed that program is overwriting the
    standard text key entries on the operations while updating the long text, and unfortunately
    it went to the production environment and it has been keep on executing the
    program for last 3 months and suddenly we came to know that there is bug in the
    code.
    My main intention is how to trace till now how many reports
    got corrupted and how to restore back those records which were effected in PRD environment.
    Regards,
    Srinika

    Greetings Srinika,
    I assume that the Z-program enters the Task List and re-enters the Standard Text Key KTSCH, does it call the standard transaction IA12? Maybe a good place to start is to see whether the Change Documents had been saved. Does the Z-program run as batch, as a particular user?
    Query the table CDHDR on the object PLAN, then based on the Object & Document numbers query CDPOS. You can get the Task List & Operations from CDPOS field TABKEY.

  • How to get workflow task list ID?

    I created simple workflow in Office 365 SharePoint 2013 using SharePoint Designer 2013.
    The action Assign a task to user (Task outcome to Variable: Outcome |Task ID to Variable: TaskID) was used.
    The variable TaskID had a value something look like
    902aa0e9-0d58-47c0-a3ba-da96ebd47651, but I need ID from a task list.
    How to get the task list ID in SharePoint Designer Workflow?
    I am very grateful in advance for any help.
    bnossov

    I created dictionary and create two variables:
    Name: Accept; Type: string; Value:
     application/json;odata=verbose;
    Name: Content-Type ; Type: string; Value: application/json;odata=verbose;
    Output variable: JSonRequestHeader.
    I called HTTP web service:
    https://xxxxxx/_api/web/Lists/getbytitle('WorkflowTaskList')/items?$select=ID
    I used Count Items in Variables: JsonRequestHeader(Output to Variable: count)
    The output variable count had value equals 2.
    When I printed service url in browser it gave me xml with all the items ID in the
    WorkflowTaskList.  There were eight .
    How can I take data from web service and put them in dictionary?
    I would be grateful for any help.
    bnossov

  • How get configuration task list?

    hi
    i have a selection screen with this fields:
    material
    Vehicle Model
    Product Code
    Product Class
    Color
    how i can get configuration task list for this material?(like tcode cu50)
    tnx
    Edited by: saeidom on Jun 19, 2010 9:10 AM

    Hello,
    It is better to fulfil this requirement by Recording ( either BDC or LSMW )
    If you have a beg set of data and if this is a one time job, you can use 0170/0001/RCPTRA01/B. SAP gives a detailed program documentation about various options.
    There are also other objects to update the Equipment Task list, Funcational location tasklist.
    Hope this helps you.
    Best Regards,
    Murugesh AS

  • Locks list for a user session

    Hello,
    Is there a function module or class/method which will give me the list of all locks of a user in the current session and not across all sessions (like transaction SM12). Function modules like ENQUE_READ and ENQUE_READ2 provides the lock list for a user across all sessions but not in the seesion in which the FM is being executed.
    Please let me know if you have any information in this regard.
    Thanks & Regards,
    Saurabh

    Hi saurabh,
    Dont post duplicate thread . Its against the rule of engagement.
    Locks list for a user session
    If you have got the answer in the previous thraed then close this thread.
    Regards,
    Sujit

  • Reg:tasks are not getting displayed in the uwl mss for particular user

    hi all
    Tasks are not getting updated in the MSS under tasks tab for particular user in EP.can any one please share their exp and knowledge on this how to reslove it.
    Thanks in advance.
    Deepika

    Hi Sateesh,
    This message will appear if either the background jobs are not scheduled, or UWL cannot tell that the background jobs are scheduled. The message no longer appears once you ensure the background jobs are scheduled to run via the user id UWL_SERVICE and that user is mapped to my portal user ID UWL_SERVICE.
    Kai

  • FindGroups - Error while getting group list for login user

    Hi All,
    I am using below code snippet to search a group in OIM but it gives me "Error while getting group list for login user" error message.
    tcResultSet rsetAss = null;
    tcGroupOperationsIntf groupIntf = (tcGroupOperationsIntf)utilFactory.getUtility("Thor.API.Operations.tcGroupOperationsIntf");
    HashMap mapGrp = new HashMap();
    mapGrp.put("Groups.Group Name","DEF_GROUP");
    rsetAss = groupIntf.findGroups(mapGrp);     
    And i am ruuning this code using xelsysadm logon.
    com.thortech.xl.util.config.ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
    Hashtable env = config.getAllSettings();
    com.thortech.xl.crypto.tcSignatureMessage moSignature = tcCryptoUtil.sign("xelsysadm", "PrivateKey");
    utilFactory = new tcUtilityFactory(env, moSignature);     
    Any guess?
    Thanks & Regards
    Inbaa.

    Here it is Rajiv,
    public class GetUserApprover {
    private String defGroup = "DEF_GROUP";
    public tcUtilityFactory getUtilFactory()
    tcUtilityFactory utilFactory = null;
    try
         logger.debug("Initializing the utilFactory");
         com.thortech.xl.util.config.ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
    Hashtable env = config.getAllSettings();
    com.thortech.xl.crypto.tcSignatureMessage moSignature = tcCryptoUtil.sign("xelsysadm", "PrivateKey");
    utilFactory = new tcUtilityFactory(env, moSignature);
    catch(Exception ex)
         logger.info("Error while getting the utilFactory" + ex.getMessage());
         System.out.println(ex.getMessage());
    return utilFactory;
    public String getGroupKey(String defGroup){
              String groupKey = null;
              tcUtilityFactory utilFactory = getUtilFactory();
              if(utilFactory != null)
         System.out.println("utilFactory not null. Searching for group:" +defGroup );
                   try
              tcResultSet rsetAss = null;
              tcGroupOperationsIntf groupIntf = (tcGroupOperationsIntf)utilFactory.getUtility("Thor.API.Operations.tcGroupOperationsIntf");
              HashMap mapGrp = new HashMap();
              mapGrp.put("Groups.Group Name","DEF_OWNER_GROUP");
              System.out.println("Finding Group....");
              rsetAss = groupIntf.findGroups(mapGrp);          
              System.out.println("RowCount-->" +rsetAss.getRowCount() );
              rsetAss.goToRow(0);
              groupKey = rsetAss.getStringValue("Groups.Key");
         System.out.println("GroupKey-->" + groupKey);
         catch(Exception e){
              System.out.println("Error" + e.getMessage());
              return (java.lang.Object)groupKey;
    }

  • Why do I not get the checkout option for a pdf type document when clicking on the document link in the SharePoint workflow task?

    We are trying to use workflows to review and edit pdf files in sharepoint 2010. We are having a couple of issues and am hoping someone has the answer.....
    1)  When myself and coworkers click on the pdf document in the library, we get the check out option as expected.  However when we click on the document
    link in a workflow task (on the sharepoint site), the pdf opens as a temporary file and we do not get the check out option.  Why does this happen????? 
    2)  The same thing happens when we click on the document link in the workflow task email;   HOWEVER,  one of our co-workers does get the
    check out option when clicking on the link in the email task.  Why would she get the checkout option using the email and not when clicking on the link in the task list on the sharepoint site ????  We have compared our internet settings and adobe
    settings to ours and found no differences.
    We are using Sharepoint 2010, Windows 7, IE8, Adobe Reader X or XI.  Some of us have Adobe Pro X and have the same issues.

    Hi,
    According to your post, my understanding is that you could not get the checkout option for a pdf type document when clicking on the document link in the SharePoint workflow task.
    I try to reproduce the issue, however, no matter when I click the pdf type document in the library or click on the pdf document link in the workflow task email, it download the pdf doucment and then I can open it.
    It will be better if you can descript how you
    get the check out option as expected when you click on the pdf document in the library.
    Then I upload a
    word type document to the library, no matter when I click the word type document in the library or click on the word document link in the workflow task email, I can open the word document directly and get the check out option as expected.
    I recommend to use the other type docuemts to check whether the check out option works.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

Maybe you are looking for

  • How do I set the print area in Numbers?

    How do I set the print area in Numbers?

  • Flash Product Rotators

    I am modifying a rotator that was used on the old site I worked with. Go to orderpaintball.com and look on the right hand side of the page, you will see a flash rotator displaying our products. This runs off of an XML file and is very flexible when h

  • Mac Proxy Server Software - can not find any app to run a Mac proxy server

    Hi! Looking for an application that will run and manage a proxy server on my Mac. I am after something that does not involve programming, editing and using the console, something that is done through a simple, user friendly interface. I would need to

  • Original iPhone Woes Since 2.0.2 Upgrade

    Last week, American Express left me two voicemail messages and my brother left me one, and I never received any of them. Today, my brother tried to call me, and he got "the number you have reached is not in service", or something like that. Second ti

  • Browsing history in Firefox 17 - can I keep this for a specific number of days?

    Earlier versions of Firefox would let us specify how long to keep browsing history, and would then automatically clear out anything older than that. I can't find this option in Firefox 17. I've been having serious problems with FF, with frequent and