Gettings tasks assigned to a user

Hi
I am trying to get the tasks assigned to a user using the workflow API from a jsp. I am using the following code snippet.
tasks = wfSvcClient.getTaskQueryService().queryTasks(ctx, displayColumns,
optionalInfo,
"My+Group",
null,
pred, null, 0, 0);
However I am getting WorkflowException. It does not give any description or message. I only know the error code (9732).
Also when I try to run the same code from a standalone JAVA client it works fine but donno why it ia failing in a jsp.
Any Clues....Please help
Thanks

Hi All,
To find all tasks assigned to User,who are the potential owner of it.
You can go Manage Tasks in NWA.
Go to advanced.
Search by Identity and put the ID of the user who is the potential user.
Select the Potential owner check box and click go.
It will populate all the tasks that the user is a potential owner of.
Select all and Suspend.
Done
Cheers
Shyam

Similar Messages

  • Project 2013 REST API - getting all tasks assigned to a user

    I'm trying to get all tasks assigned to a user to display something like you would see in "My Tasks" using the REST API.
    I found this: http://social.technet.microsoft.com/Forums/projectserver/en-US/a5d8760d-8e27-432b-8187-592cadf302ae/get-my-tasks-tasks-via-rest-api-or-web-services?forum=sharepointdevelopment
    But it doesn't seem to pertain to Project 2013.
    Any idea on how I could do this?
    As an aside, I'm having some trouble with finding guidance in the documentation. Are there any Project 2013 developer resources that break things down a little more than the SDK? Everything I've found is pretty Sharepoint-centered, not really getting into
    the specifics of Project.

    Check the samples folder which gets installed with SDK, there you will find some samples, however may not be the REST but with CSOM you could try something like this, i am sure you would be able to convert this pretty easily, in case required
    projContext = new ProjectContext(pwaPath);
    var PrjList = projContext.LoadQuery(projContext.Projects.Where(Prj => Prj.Name == newProjName));
    projContext.ExecuteQuery();
    var GotPrj = PrjList.First();
    //DraftProject projCheckedOut = GotPrj.CheckOut();
    projContext.Load(GotPrj.Tasks);
    projContext.ExecuteQuery();
    foreach (var tsk in GotPrj.Tasks)
    this.textBox1.Text += Environment.NewLine + "Task Name: " + tsk.Name + " || Task Work: " + tsk.Work +" || Task Remaining Work: " +tsk.RemainingWork;
    projContext.Load(tsk.Assignments);
    projContext.ExecuteQuery();
    foreach (var tskAssgn in tsk.Assignments)
    projContext.Load(tskAssgn.Resource);
    projContext.ExecuteQuery();
    this.textBox1.Text += Environment.NewLine + tskAssgn.Resource.Name + "--Res ID--" + tskAssgn.Resource.Id +
    "----Assgn ID: " + tskAssgn.Id + " || Actual Work: " + tskAssgn.ActualWork +
    " || Assgn Remaining Work: " + tskAssgn.RemainingWork
    + " || Assgn minDate: " + tskAssgn.Start
    + " || Assgn maxDate: " + tskAssgn.Finish
    Thanks | epmXperts | http://epmxperts.wordpress.com

  • Automatic Tasks are assigning to the user even the Vacation rule Enabled

    Hi Experts,
    I have enabled a Vacation rule in bpm/workspace.
    But I can see all the tasks assigned in the inbox for that user.
    Then I have enabled the Customized rule as the vacation rule and tried to reassign the tasks to an another user.
    That is also not happening. Tasks are assigning to the other user.
    Our ECM version is 11.1.1.6.0
    Went through all the documentations and couldn't find the solution..
    Thanks,
    Nir

    Hi Nir,
    When you said
    But I can see all the tasks assigned in the inbox for that user.
    do you mean the instances that were previously assigned to the user are still there in the user's queue?
    Vacation rules let you reassign or delegate tasks assigned to a user once the vacation period begins.  If work items are already in their queue before the vacation rule goes into effect, they remain in the person's queue.  It's up to the user to reassign or delegate the existing work item instances that were already in their queue.
    New instances that arrive once the rule goes into effect however, should be automatically reassigned (or delegated depending on the vacation rule's radio button selected) to the other person.
    Dan Atwood

  • 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 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

  • My Tasks View in my custom task list fails to display the tasks assigned to me (that is the currently logged in user)

    Hi
    I am new to sharepoint 2010.
    I created a custom task list, where I  have many tasks assigned to users (I had tasks assigned to me as well). I created a view as "My tasks "and having a filter as Assigned To is equal to [Me]. When I do that my view fails to show the
    tasks assigned to me. This happens same with the Sharepoints 'My Tasks' view as well. I tested by creating some test tasks under my name and when I selected 'My Tasks' view no tasks are getting displayed.
    Please help.
    Thanks,
    Gokulkumar.

    Hi,
    According to your post, my understanding is that you wanted to display the tasks assigned the current logged in user.
    In my environment, if I used the System Account, My Task view didn’t display any tasks.
    However , if I used other users except the System Account, My Task view could display current user tasks correctly.
    I recommend to use other accounts except System Account to log in site. Then everything will work well.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Assign Task to a specific user based on the value of DDL from the form

    Hello,
    Can any one please advise me on how to assign a task to a specific user based on the value of the drop down list from the form. E.g. user fills the form and before they submit the form they have to select one of the name from the drop down list so the form can go to that person for approval.
    Thanks in advance,
    Han

    I got it works now by using the xpath expression (in workbench) to assign to the selected user from the DDL in the form.

  • Project Lite user cannot see tasks assigned ...

    Hi
    I have assigned tasks to a user Project 2013 and linked the project to Project Online.
    As the administrator, I see all my tasks in the Timesheet view in PWA but the users that use Project Lite canot view their tasks and cannot see them in their Timesheet.
    I am quessing it is a permissions issue but cannot find where to set the right permissions.
    Any solutions out there?
    Thanks.

    Hi,
    Have you correctly published the assignment of the user from the project (either PWA or MS Project Pro)?
    Is the user looking at the right period?
    Is the publish job successful?
    Is the booking type committed and not proposed?
    Is the resource the assignment owner of the assignment?
    Have you assigned an enterprise resource and not a local resource? When you go to the resource center, select the resource, can you see the assignment?
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Query for tasks assigned individually to all members of a user group

    I am looking for a query that will allow me to create a list view that will show all tasks assigned to the current user (in the Assigned To field), as well as to other members of the user group that the current user belongs to. The scenario is that we want
    a student to see tasks assigned to them, as well as to other students in the class. Each class is its own user group. I have seen a lot of examples where the filter shows tasks assigned to the current user and the current users group - that is NOT what I am
    looking for.
    For example - Todd (me), Fred and John are members of one user group. When I look at this class view, I should see tasks assigned to me, as well as those assigned directly to Fred and John.
    Does anyone have a CAML query for this? I am thinking it would need to include the SPGroup element. Thanks!

    Hi William,
    I've tried this, but it isn't working for me. Should I chnge the Smart Group, to an ordinary one?
    Thanks

  • Human task assignment for users in Group1 and Role1

    Is there a way to make a Human Task assignment in Oracle SOA Suite BPM 11g for all the users in Group1 who has the Role1 role?.
    I don't want to assign the task to all the Group1's users plus all the Rrrole1's users. I only need the users who belong to both: Group1 and has Role1, but I don't know how to configure this in the HumanTask.
    Edited by: alfredozn on Feb 23, 2011 10:04 AM
    Edited by: alfredozn on Feb 23, 2011 10:06 AM

    repost.

  • Task assignment adapter - dynamic route to either group or user

    I have configured an approval process in design console and I want to be able to dynamically route the approval request to either the target user manager OR a group. I have written logic/code to automatically determine what group or user to route the request to and also to set the key type to either user or group depending on my logic conditions.
    This code is executed in a task assignment adapter and set the values for the key type and key depending on the logic.
    i.e. the key type would be "user" and key would be the user key for the target user manager, if my logic determines it should be routed to a manager
    OR
    the key type would be "group" and key would be the group key for the approval group, if my logic determines it should be routed to a group
    HOWEVER MY PROBLEM is with assigning the adapter to a process task. I am thinking I would need to have two entries in the Assignment tab of the process task. The first entry has the default rule and I assigned the target type to "group" and include my adapter here.
    How do I go about assigning the second entry for target type "user"? Since "Default" is the only rule option and I am not able to use it twice.
    I tried to create a rule in the Rule Definition form and create a Task Assignment rule that might do something to check if a task is assigned to "user", so that I can have this as my second rule in the Assignment tab of the process task and if it is true, it would call my adapter that would return the key for the target user's manager.
    I DO NOT KNOW what conditions to set in the Rule Element window for the Task Assignment rule. Can someone tell me what to do here OR provide me with a better alternative.

    Thanks for all the responses. Approvals are now being routed correctly.
    I have a follow-up question though........ I created a process adapter to send notifications to either the target user manager or members of the group that is the approval is routed to.
    I have a notification process task as part of my approval process and in its Integration tab, I added my process adapter that sends notifications.
    The code for the adapter uses the same logic I described in my original question to determine if the approval is being routed to a user of group. If it is routed to a group, the notification adapter identifies members of the group and sends email to them, this part works fine.
    However the problem is when the logic determines it should be routed to the target user's manager. One of the variables of this notification process adapter is username of the target user. Using that username, my code determines who the manager, gets the manager's email address and sends the email. Problem with this is that when mapping variables for process adapters in the Integration tab, in the Map To field, it does not give you the option of mapping to Request Target User, which would have provided me with user attributes of the target user such as the user name. It provides option for the Requester, but my reality is that the Requester is not always the Target User.
    Any suggestions for fixing this would be greatly appreciated.

  • CAML query to get task assigned to current logged in user

    I want to know the CAML query to get tasks assigned to the currently logged in user
    Nour

    Hi,
    This is the query that worked for me
    <Where>
    <And>
    <Or>
    <Membership Type=’CurrentUserGroups’>
    <FieldRef Name=’AssignedTo’ />
    </Membership>
    <Eq>
    <FieldRef Name=’AssignedTo’  LookupId=’TRUE’ />
    <Value Type=’Lookup’>123</Value>
    </Eq>
    </Or>
    <Neq>
    <FieldRef Name=’Status’ />
    <Value Type=’Text’>Completed</Value>
    </Neq>
    </And>
    </Where>
    Regards,
    Nishant Rana
    http://nishantrana.wordpress.com https://twitter.com/#!/nishantranacrm

  • Approval request to dynamic user --- task assignment adapter

    Hi All,
    I have a requirement.
    1. User will be requesting for AD Group Memership.
    2. The approval request should go to the owner of the AD group. (AD Group owner will have an OIM Account)
    is it possible to add custom "Target Type" in "Assignment" tab of Approval task?
    Assistance appreciated.
    Thanks & Regards
    Inbaa.

    Hi Thanks for the info. I have tried the approach.
    Task Assignment adapter has two adapter variables - "Adapter Return value for key" ( Type - Object) and "Adapter Return value for key type" ( Type - Object)
    1. I have added a task which invokes my custom java class method -- getApprover() - returns approver Name (User Id) -- String format -> I have mapped the output to adapter variable "KEY"
    2. I have added another task which invokes my custom java class method -- getApproverType() - returns statuc string "User" -- String format -> I have mapped the output to adapter variable "TYPE"
    I have attached this adapter to approval process with the mapping
    Variable -Adapter Return value for key & Adapter Return value for key Type
    Map To - Task Information
    Qualifier - Note
    When I request for the resource , the task assignment adapter assigns the approval request to the USER itself instead of the approver.  Anything I am missing here??
    Thanks & Regards
    Inbaa

  • Reg : How to retrive Group User ID's and Task assigned to users?

    Hi,
         Can anyone please help me out?
         I have a requirement like, In my process I have assigned a task to Group of Users. Now I need to findout All the User ID's as well as How many tasks assigned for that specific user. This is my requirement.
    My uderstanding for this we need to implement specific API's. But I dont have idea which API have to use.
    Please anyone having idea share with me and suggest me appropriate steps!
    Thanks in Advance,
    Anand.

    How strange I answered (or at least helped) this very same question earlier today. Here the link to my previous answer then:
    http://scn.sap.com/thread/3536135

  • Unable to fetch task assigned to particular group from user

    Hi,
         I am usinf BPEL 10.1.3.0. The BPEL is configured to use the Oracle Infra as directory server for providing identity service.
         I have a two group created in oid by name AdminRole and TestRole.Have a one user assigned to each group.
         If i create a new user and assigned to both the role, so any task created for both the group will be visible to new user.
         But this is not happening the new user is not able to view any task assigned to AdminRole or TestRole.
         Any Help Apprecited.
    Regards,
    Bhavik

    Hi Dasaradh,
    If earlier issue (Pop message with 60) is not resolved, then it means your Service Constructor is old one. You will see this pop error message when you have more than 60 records to be fetched. The service solution component tables's maximum capacity was 60 only. We fixed the issue later.
    So if you still see this issue, I would suggest you to update your service constructor.
    For later issue [(Unknown Source)Error: Extension ID oracle.aia.codegen.codegenwizard in extension.xml does not match jar filename oracle.aia.aiaserviceconstructor], it looks like your Service Constructor install is not successful.
    Thanks
    Vikas
    Edited by: user10866611 on Nov 24, 2010 3:15 AM
    Edited by: user10866611 on Nov 24, 2010 3:16 AM

Maybe you are looking for

  • How do I install Lion on a partition on a 2012 Macbook pro running Mavericks?

    I need to run software for which the latest OS that it is compatible with is OSX 10.7. How can I install 10.7 on a partition in my Mavericks Macbook pro?

  • Keeping the connection open while in sleep

    I was just wondering if there is anyway to keep the internet connection open while the computer is in sleep mode? I have looked around for a little bit but I figured someone else probably already has an answer. Just to clarify I don't mean closing th

  • Did You Hear About Logics s New Lucid Dream Freeze Function?

    for a small fee, apple will freeze you ( not your tracks). and when they work out all the bugs and logic returns to a pro app that works properly, you can be thawed out and resume working again. there is no tech support and side effects may occur whi

  • User Creating in a database

    Hello! im trying to wirte some code to create a user within a database but im getting the error java.sql.SQLException: Parameter index out of range (2 > number of parameters, which is 0). Im pretty new at coding, ive managed to code modify, and delet

  • Address already in use,Please help me!

    I install solaris in vm6. At first ,it will run fine,but today when i restart it , I get these error inetd[337]:Failed to bind to the port of service instance svc:/network/swat/tcp:default,proto tcp:Address already in use. Too many bind failures for