Getting a user task list by assignee...

Hello,
I had many problems trying to get a user task list from a java file. I found a way.
I do it this way because the IWorklistService class return cero tasks with any WhereCondition... please if any one found a proper way to do this, please let me know.
I use nanoxml library.
public static ArrayList queryWorklistServiceI(ArrayList users){ 
// Lookup the worklist service.
IWorklistService worklist =
(IWorklistService)locator.lookupService( IWorklistService.SERVICE_NAME );
try
WhereCondition cond = new WhereCondition();
cond.append("title like '%TaskActionHandler'").append("and").append(WhereConditionHelper.whereInstancesOpen());
IInstanceHandle[] i = locator.listInstances(cond);
ArrayList tareas = new ArrayList();
for(int j=0; j<i.length;j++){
IXMLParser xmlParser = XMLParserFactory.createDefaultXMLParser();
IXMLReader xmlReader = StdXMLReader.stringReader(i[j].getAuditTrail());
xmlParser.setReader(xmlReader);
IXMLElement xml_e = (IXMLElement) xmlParser.parse();
Vector children = xml_e.getChildren();
IXMLElement task = ((IXMLElement)children.get(4)).getFirstChildNamed("details");
IXMLParser xmlParser_task = XMLParserFactory.createDefaultXMLParser();
IXMLReader xmlReader_task = StdXMLReader.stringReader(task.getContent());
xmlParser_task.setReader(xmlReader_task);
IXMLElement xml_task = (IXMLElement) xmlParser_task.parse();
xml_task = xml_task.getFirstChildNamed("part").getFirstChildNamed("task");
String asignado = "";
asignado = xml_task.getFirstChildNamed("assigneeUsers").getContent();
if(asignado==null){
asignado = xml_task.getFirstChildNamed("assigneeGroups").getContent();
boolean b = false;
for(int k=0;k<users.size()&&!b;k++){
if(((String)users.get(k)).equals(asignado))
if(b){
String id = xml_task.getFirstChildNamed("instanceId").getContent();
String titulo = xml_task.getFirstChildNamed("title").getContent();
String estado = xml_task.getFirstChildNamed("state").getContent();
String modificado = (xml_task.getFirstChildNamed("modifyDate").getContent()).substring(0,16);
String tarea_id = xml_task.getFirstChildNamed("taskId").getContent();
Vector datos = xml_task.getFirstChildNamed("payload").getFirstChildNamed("Datos").getChildren();
ArrayList datos_array = new ArrayList();
for(int k=0;k<datos.size();k++){
IXMLElement dato = (IXMLElement)datos.get(k);
Dato d = new Dato(dato.getFirstChildNamed("Nombre").getContent(),dato.getFirstChildNamed("Valor").getContent(),false,"");
datos_array.add(d);
Tarea t = new Tarea(id,titulo,estado,asignado,modificado,tarea_id,datos_array);
tareas.add(t);
return tareas;
} catch (Exception e){System.out.println(e);}
return null;

someone??

Similar Messages

  • URL on User Task List

    good day all.
    Any body know how to attach url to workitem that received by user?
    The idea is when user certain workitem in their task list, they can execute the url which is in the attachment, preview pane section prior to make an approval/ rejection
    thanks in advance

    Hi Derelict, check this out:
    http://browserlauncher.sourceforge.net/Hope it's helpful!
    Chris.

  • Creating Hidden iView to get refresh UWL task list

    Hi @ll,
    i would like to know how can we create hidden iView to update task list in UWL using refreshUwlBackend event.

    Hi,
    You cannot use an invisible WD Java iView because the application is not executed if the iView is not visible.
    I don't know if it would work with other types of iViews.
    Regards,
    Pierre

  • Task list in hyperion planning dataforms 11.1.2 version

    Hi,
    I created a task list using administrator account and assigned these task list to user1. I mention a due date and alerts also. Here user1 have appropriate roles to access the dataform and to finish the task also.
    Now the issue is, when user1 finished and put the status as completed. But in admin user, those tasks status is showing as Incomplete.
    How admin will get that updated status as completed in task list.
    Regards,
    Madhu

    Hi David Mendele,
    Thanks for the reply.
    ya as u said i looked into report. but there also am getting status as incomplete using admin user.
    First of all i will explain u clearly about this issue.
    using admin account i created two task lists and assigned these tasks to user1. for example salary account and salary details ok.
    Now i login as user1 and put those task lists status as completed ok.
    Then now i login as admin and checked out those Task lists. In this scenario, am not getting those task lists(*salary account* and salary details) status as completed.
    It is still showing that status as Incomplete only which is already finished by user1 ok.
    Now, how can i get those assigned task lists status as completed automatically using admin user.
    I hope u understand about the issue.
    Regards,
    Madhu
    Edited by: 895234 on Nov 30, 2011 8:01 AM

  • Missing task lists after task list folder was deleted

    In Hyperion Planning 11.1.2.0 user that doesn't have access to task lists can delete task list folders with task lists (they are not visible and no error occurs). After that task lists are visible in Basic Mode but I cannot find then in Advanced Mode through Administer->Manage->Task Lists. How can I get back these task lists to Advanced Mode or delete them?

    User can delete tasklist? I've not seen that happening.
    You can try recycling Planning services and see if they come back or go away.
    It is stored in a table called hsp_task
    select b.object_name, c.object_name, a.* from hsp_task a, hsp_object b, hsp_object c
    where a.task_list_id=b.object_id and a.task_id=c.object_id;
    Regards
    Celvin
    http://www.orahyplabs.com

  • Reminders app with shared Outlook task lists

    I am able to get my Outlook tasks list to sync with the Reminders app. However, if I receive a shared task list in Outlook from another user, I can't see it in the Reminders app.  This happens even if I am given "owner" permissions to the task list. Is there a way to get it to appear?

    I do not know the answerr. Ik also have same question

  • How to get the user created at and modified at properties for a site collection using powershell

    Hi guys, I Know how to get the list of users of a site collection by Get-SPUser cmdlet but hte problem is that this cmdlet doesnt give me the user Created at and modifed at properties 
    can any one tell me how to get these values via powershell???? 
    ps: ignore the 2013 screenshot.. i just want a way to get those values .. if you provide me solution in either 2010 or 2013 , i will crack the other..
    plz guys help me ...

    Get the User Information list and then get the user from that list
    $web = Get-SPWeb "siteUrl"
    $userInfoList = $web.SiteUserInfoList
    $userItem = $userInfoList.Items[0]; #0 here is just for demonstration. You take the user you want here or loop through all users.
    $created = $userItem["Created"]
    $modified = $userItem["Modified"]

  • SIMPLE TASK LIST TEMPLATES

    Does any one know where one can get some simple task list for specifying, I am an interior designer and I am after a simple way to show lists with categories. My needs are simple help!

    "task list for specifying"
    You didn't finish what you were looking to specify.
    I would recommend looking at almost any template websites. There are a few for numbers and many for excel. Any one of them might be used or modified to fit your needs.
    Jason

  • User POV does not pop up from Report in task list

    Hello,
    I've created a report within Related Content in HFM and added it to a task list--the problem I'm experiencing is when I run the report the User POV does not pop up, rather it simply uses the default POV (ie, whatever is set up in data grids or process management)--this happens if I try to run it directly from Related Content or from the task list. My preferences within Financial Reporting have already been updated to 'On' to preview the User POV and if I run the report from Financial Reporting (ie, Explore) the User POV works fine--so, it seems like adding a report to Related Content disables the User POV from popping up. I'm running on Financial Reporting v11.1.2.1 and HFM v11.1.2.1.104.3701. I can't find anything about it within this forum, knowledge base or as a known issue in the ReadMe for the .104 patch set for HFM.
    Can anybody fill me in on if this is functionality by design or a defect?
    Best regards,
    Jason Call

    Financial Reports do not work as you might expect when they are used as a related content item. As you already have realized, you will not be able to adjust the FR POV items from inside of HFM.
    A 'work around' would be to link to the report and put that link in the Tasklist. This will then open the report 'normally' and you will get the POV functionality that you expect.
    To find the link to a report, open the report's properties and look at the 'smartcut' value. (That is a URL directly to the report)

  • 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

  • I keep getting this message from Imovie: Unable to prepare project for publishing. The project could not be prepared for publishing because an error occurred. (Error in user parameter list)

    I keep getting this message from Imovie:
    Unable to prepare project for publishing. The project could not be prepared for publishing because an error occurred. (Error in user parameter list)

    Bartirn,
    I called Apple under my Mac support contract.  They were completely unfamiliar with the error you and I were encountering.   Updating to 10.8.5 didn't help.
    I'm stopping my TimeCapsule while I perform these tasks, but I don't know yet if I have a consistent work-around.
    B

  • How to fin the Workcenter after getting Task list type

    Hi all ,
           I got the fields PLNTY(Task List Type ) , PLNNR(Key for Task List Group) , ZAEHL(Internal counter ) and VORNR (Operation/Activity Number)   from PLPO table .
    I need to get the work centers names . I saw the work centers are in CRHD table .
    May i know how to get the name of the work centers after getting the task list type details .
    I  found the routing details of a give finished/semi finished material .
    my next step is to find the work centers.
    Any suggetions from you are appreciated .
    Regards
    Raj

    Hi Jan,
    Yes, sa38 makes it possible indeed to execute in background into immediate mode a job but
    the user have to know the name of the program to be carried out ...
    The user knows only the name of these transactions trade. For example, IW38.
    In the menu of this transaction, SAP gives the possibility to execute in background :
    Program --> Execute in Background --> display of Start Time screen for the type of start condition :
    Immediate, Date/Time, After job, After event, or At operation mode).
    It is at this time there that we want that the user can only choose the "immediate" mode.
    We must thus prohibit the other choices (Date/Time, After job, After event, or At operation mode) ... and
    and we don't know how to restrict these other options in this screen "Start Time screen for the type of start condition".
    Thank you.
    By.

  • Additional User Defined field in Maintenance Task List

    I wan to add an additional field user field in Maintenance Task List.
    I know It is possible in User Fields.
    But I an not able added user field to Operations that are already there in the maintenance plan.
    The system is allowing me to Add field in New Operations that I am adding the the Task List.
    Thanks
    Sabyasachi

    Hi,
    If I am correct, It is not possible to add user fileds to the operations in the maintenance plan which was copied from the tasklist which is there in the maintenance plan.
    if you required these user fileds goto to change mode in maintenance plan and remove the task list in plan and do necessary changes in the task list and add to plan again. After that you can get userfileds in the opeations as u required with was generated now onwards. It is not possible for the past ones.
    Regards
    Srinivas

  • 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

  • I get error message "user parameter list" is stopping me from preparing a iMovie project for export.

    I am trying to share a 1 hour movie via idvd. I keep getting an error message saying user parameter list is preventing publishing. What do I need to change?

    Bartirn,
    I called Apple under my Mac support contract.  They were completely unfamiliar with the error you and I were encountering.   Updating to 10.8.5 didn't help.
    I'm stopping my TimeCapsule while I perform these tasks, but I don't know yet if I have a consistent work-around.
    B

Maybe you are looking for

  • Logical and Physical Length in Datastore

    I would like to know the differences between logical length and physical length in datastore. Can anyone teach best practices to use them properly?

  • Safari always requiring "Force Reload" - OSX 10.9.4/Safari 7.0.5

    Over the last week - MANY webpages are continually "not responding" - "force reload"? Not just one particular page...it's been various pages (so presume it's not just 'server issues' for a particular page. Looks to be from my end... Tried to "clear h

  • No joins found where required

    We were using Disc 9i(db is 8i) and now it is migrated to Disc 10g(db is 9i). After migrating it gives 'No joins found where required'. Actually there is no joins with that folder. Joins Activity in workbook/worksheet question says applying patch 499

  • Is it possible to (selectively) automatically move to next patch and start?

    .. so that (for example) my first three songs play one after the other then MS stops awaiting a play cmd? I can't see this anywhere in the help but it must be a frequently used function.

  • How to get Reference on files of my ADF Shared Library

    Dear All, Use case: I have compiled one project into a shared ADF library. This project has a ViewController. In it are some common css files that I would like to reuse. Now, I have a new project and have linked to that ADF library using Resource Pal