[Worklist API] Failed to fetch task list

Hello Guys,
I am trying to fetch tasks using worklist API but it doesnt work for me..It returns the Task list whcih has 0 (zero) tasks. Below is the code i am using:
Hashtable props = getBpelProperties();
Locator locator = new Locator("default","welcome1",props);
IWorklistService Worklist = (IWorklistService)locator.lookupService(IWorklistService.SERVICE_NAME);
ITask[] Tasks = null;
try { 
System.out.println("Obtaining List");
Tasks = Worklist.listTasksByAssignee("oc4jadmin");
// I dont find any task in the collection Tasks but i can see the tasks that have been assigned to oc4jadmin using oracle worklist application
System.out.println("Tasks:"+Tasks.length);
System.out.println("Got List");
} catch (ServerException e) {
System.out.println("Error : "+e.getMessage());
catch (Exception ex) {
System.out.println("Error : "+ex.getMessage());
Can anyone help me please?
Message was edited by:
mchagani
Message was edited by:
afz

With regard to your first approach that causes the java.lang.NoSuchMethodError exception, that one is probably caused by the classpath settings.
The piece of code from the other thread works with the following classpath in JDeveloper 10.1.3.3 and SOA Suite 10.1.3.3:
bpm-infra.jar, bpm-services.jar, orabpel-common.jar, orabpel.jar (all from the SOA Suite server), Oracle SOAP library, Oracle XML Parser v2 library, Commons Logging 1.0.3 library, JAX-RPC Client library, and the correct wf_client.config.xml, wf_config.xml, is_config.xml files.
In that piece of code the Apache Commons logging framework is used for logging, not log4j. There are some known issues with the logging jar's included in the BPEL libraries and custom code.

Similar Messages

  • How to fetch task list details?

    I want to fetch task list details against multiple task lists.
    Currently i am calling FM EAM_FM_TASKLIST_GETDETAIL in a loop.
    Since it may lead to performance issues in the case of large number of tasklists, I am looking for other options.
    Is there any other option?

    Vivek,
    If you only specify those tables you require in EAM_TASKLIST_GET_DETAIL (e.g. ET_HEADERS, ET_OPERATIONS) then the function module will run much quicker.
    I'm not sure why your Code Review Team have issues with this method - its common practice to use SAP standard function modules in this way.
    The only real way to know if the Code Review Team are correct is to try testing the report in a test/staging system (copy of production).
    PeteA

  • Failed to fetch a list of all custom record types

    Hi,
    I tried to fetch a list of all custom record types. I tried with below piece of code, but failed with below error message. Can anybody help me to resolve this issue:
    CustomRecordTypeReadAll_Input cusRecTypeAllIn = new CustomRecordTypeReadAll_Input();
    CustomRecordTypeServiceProxy proxy = new CustomRecordTypeServiceProxy(endpoint);
                   CustomRecordTypeReadAll_Output out = proxy.customRecordTypeReadAll(cusRecTypeAllIn);
    Detail error message:
    AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (400)Bad Request
    faultActor:
    faultNode:
    faultDetail:
         {}:return code: 400
    <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Client</faultstring><detail><ErrorCode>SBL-ODU-01007</ErrorCode><ErrorMessage>The HTTP request did not contain a valid SOAPAction header. The value of the header was "document/urn:crmondemand/ws/odesabs/CustomRecordType/:CustomRecordTypeReadAll"</ErrorMessage></detail></soap:Fault></soap:Body></soap:Envelope>
         {http://xml.apache.org/axis/}HttpErrorCode:400
    (400)Bad Request
    //////////////////////////////////////////////////////////////////////////////////

    Thank you very much for valuable reply.
    I am now using WS-Security to include credentials in request. I have also ensured that "Customization - Customize Application" setting is enable for my OCOD account. But now, i am getting following exception:
    java.lang.IllegalArgumentException: faultCode argument for createFault was passed NULL at com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl.createFault(SOAPFactory1_1Impl.java:55)
         at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:169)
         at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:111)
         at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
         at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
         at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
         at $Proxy28.customRecordTypeRead(Unknown Source)
         at Main.main(Main.java:75)
    I have also tried customRecordTypeReadAll API butgetting the same exception.
    Can you please suggest me what can be the reason behind above exception?
    For reference: The complete SOAP request message:
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Header>
    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" S:mustUnderstand="1">
    <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="XWSSGID-1298986875153522346527">
    <wsse:Username>myusername</wsse:Username>
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">mypassword</wsse:Password>
    <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">pRkWQ9ZcOrJngcGijmok0skB</wsse:Nonce><wsu:Created>2011-03-01T13:43:19.669Z</wsu:Created></wsse:UsernameToken></wsse:Security></S:Header><S:Body><ns2:CustomRecordTypeRead_Input xmlns="urn:/crmondemand/xml/customrecordtype/data" xmlns:ns2="urn:crmondemand/ws/odesabs/customrecordtype/" xmlns:ns3="urn:/crmondemand/xml/customrecordtype/query">
    <ns3:CustomRecordType>
    <ns3:Name>Custom Object 01</ns3:Name>
    <ns3:SingularName>TestCustom</ns3:SingularName>
    <ns3:PluralName>TestCustom</ns3:PluralName>
    <ns3:ShortName>TestCustom</ns3:ShortName>
    </ns3:CustomRecordType>
    </ns2:CustomRecordTypeRead_Input>
    </S:Body>
    </S:Envelope>
    Thanks
    Ravish
    Edited by: 833189 on Mar 1, 2011 6:02 AM

  • Fetching Task List Id in SharePoint VS 2012 Workflow

    Hi Team,
    I have created a single task in Workflow. I have a custom list in which the workflow is attached.  I need to find the Task list id and Task list URL for the task created for the Approver.
    How to fetch this information in Workflow for VS 2012?
    Thanks

    Hi Venkatzeus,
    When workflow is created, there will be a SPWorkflowActivationProperties, it contains property like TaskList, TaskListID, TaskListURL,
    You can use it to get the task list information.
    SPWorkflowActivationProperties members:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.workflow.spworkflowactivationproperties_members.aspx
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Oracle Worklist API -- OWSM

    Hi,
    I am invoking SOA suite 11G (11.1.1.5) human task application (sits in one wls server domain) from a web application (sits in another wls domain) using oracle worklist api and showing the task details in my web app. I would like to do the user credentials validation at SOA application side by adding owsm username token policy to my composite application.
    So there are 2 questions:
    1.How do I pass (or construct) the username token details in worklist client class which resided in my web application?
    2. Will OWSM can check these user credentials against our own database table or always against the weblogic identity store?
    Please provide some inputs.
    Thanks,
    Cdhar

    Hi,
    i'm also trying to access the worklist from a java program, authentication using jazn xml works fine.
    IWorkflowServiceClient wfSvcClient =               WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
    ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
    IWorkflowContext ctx = querySvc.authenticate("jcooper",     "welcome1",
                             null, null);
    List queryColumns = new ArrayList();
                   queryColumns.add("TASKID");
                   queryColumns.add("TASKNUMBER");
                   queryColumns.add("TITLE");
                   List tasks = querySvc.queryTasks(ctx,queryColumns,
                             null, ITaskQueryService.ASSIGNMENT_FILTER_MY,
                             null, null, null, 0, 0);
    However querySvc.queryTasks always returns empty.
    I've tried to check the worklistapp, and the tasks are there.
    could somebody tell me what are the mistakes?
    Thanks in advance,
    santoso

  • I need tutorials to help me configure and get task list.

    hello,
    In my current use case scenario i would have to do simple task like fetch TASK list and MODIFY A Human Task.
    I plan to use the wsdl <oracle_home>\bpel\system\services\schema
    It would be great if we have some good links to get started.
    Thanks,
    Sun

    I am using workflow API to develop the use cases and this code seems to work.
    import java.util.ArrayList;
    import java.util.List;
    import org.apache.log4j.Logger;
    import oracle.bpel.services.workflow.client.IWorkflowServiceClient;
    import oracle.bpel.services.workflow.client.WorkflowServiceClientFactory;
    import oracle.bpel.services.workflow.query.ITaskQueryService;
    import com.oracle.services.bpel.task.Task;
    import oracle.bpel.services.workflow.repos.Ordering;
    import oracle.bpel.services.workflow.repos.Predicate;
    import oracle.bpel.services.workflow.repos.TableConstants;
    import oracle.bpel.services.workflow.task.ITaskService;
    import oracle.bpel.services.workflow.verification.IWorkflowContext;
    public class TaskImpl {
         private static org.apache.log4j.Logger log = Logger
         .getLogger(TaskImpl.class);
         public void getTask(){
              System.out.println(" classpath : " + System.getProperty("java.class.path") );
              try {
                   //Create JAVA WorflowServiceClient
                   IWorkflowServiceClient wfSvcClient =
                   WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.SOAP_CLIENT);
                        //Get the task query service
                   ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
                   //Login as jcooper, jstein or jcooper or weblogic
                   IWorkflowContext ctx = querySvc.authenticate("weblogic",
                   "weblogic",
                   null, //Use default realm
                   null);//Not logging in on behalf of another user
                   //Set up list of columns to query
                   List queryColumns = new ArrayList();
                   queryColumns.add("TASKID");
                   queryColumns.add("TASKNUMBER");
                   queryColumns.add("TITLE");
                   queryColumns.add("OUTCOME");
                   //Create a predicate to query tasks that have a null outcome
                   String outcome = null;
                   Predicate predicate = new Predicate(TableConstants.WFTASK_OUTCOME_COLUMN,
                   Predicate.OP_EQ,
                   outcome);
                   //Create an ordering to order tasks by task number
                   Ordering ordering = new Ordering(TableConstants.WFTASK_TASKNUMBER_COLUMN
                   ,true //Ascending order
                   ,false //Nulls last
                   //Query a list of tasks assigned to jstein
                   List tasks = querySvc.queryTasks(ctx,
                   queryColumns,
                   null, //Do not query additional info
                   ITaskQueryService.ASSIGNMENT_FILTER_MY,
                   null, //No keywords
                   predicate, //Only tasks with no outome set
                   ordering, //Order by ascending task number
                   0, //Do not page the query result
                   0);
                   //Get the task service
                   ITaskService taskSvc = wfSvcClient.getTaskService();
                   //Loop over the tasks, outputting task information, and approving tasks
                   for(int i = 0 ; i < tasks.size() ; i ++)
                   Task task = (Task)tasks.get(i);
                   int taskNumber = Integer.parseInt(task.getTaskId());
                   String title = task.getTitle();
                   String taskId = task.getTitle();
                   //Set the outcome
                   taskSvc.updateTaskOutcome(ctx,taskId,"APPROVED");
                   System.out.println("Task #"+taskNumber+" ("+title+") is APPROVED");
                   catch (Exception e)
                   //Handle any exceptions raised here...
                   System.out.println("Caught workflow exception: "+e.getMessage());
    }

  • Task list not getting copied in Order

    Hi All,
    I have created a Maintenance plan where my call object is notification. I have scheduled the plan & i got the Notification after releasing the call.
    I am getting the Task list reference in Maintenance plan tab in notification.
    Now my issue is, the task list is not getting copied to order when i create order against the notification.
    Kindly help me resolve the issue.
    Thanks & regards,
    Basavaraj

    Basavaraj,
       When a order is created from the worklist (IW28) of notification , the task list associated to the notification will be exploded and added as operations.
    Have a look at [Sap Help|http://help.sap.com/saphelp_erp60_sp/helpdata/en/fc/f26c3c17c8c67ee10000000a11402f/frameset.htm]
    for detailed steps.
    Regards
    Narasimhan

  • Error while retrieving TASK list through worklist API

    Hi All,
    I am try'n to retrieve TASK lit for user in BPEL 10.1.3.1 using worklist api ,
    I am stucked with this error while quering the tasks.
    bpeladmin
    Aug 25, 2008 11:31:52 AM oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: oracle.bpel.services.workflow.task.model.TaskImpl; unable to create instance
         at com.evermind.server.rmi.RMIClientConnection.handleMethodInvocationResponse(RMIClientConnection.java:897)
         at com.evermind.server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:341)
         at com.evermind.server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:296)
         at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:278)
         at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:152)
         at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127)
         at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:825)
         at java.lang.Thread.run(Thread.java:595)
    Help me out.
    Regards,
    Kalyan.

    Hi,
    Guys any updates...

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

  • 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

  • Returning error while listing  reportees of a user by using worklist api.

    Hi,
    I am trying to list reportees of a user by using bpel worklist APi in custom application.the following is the code fragment of that:
    BPMUser bpmUser = gu.getWorkflowServiceClient().getAuthorizationService("dm.hoogly").lookupUser(gu.getWorkflowServiceClient().getTaskQueryService().getWorkflowContext("dm.hoogly").getUser());
    List directs = bpmUser.getReportees(1);
    System.out.println(" size..."+directs.size());
    its retuning error.
    Can any one help me how to list a reportees of a user by using BPELworklist api
    thanks
    Murali

    Hi..
    I am using 10.1.3.3 SOA suite.
    thanks
    Murali

  • API for Task list create/change

    Hi,
    Is there any API for task list create/change (Transaction IA05/06)?
    Thanks
    Sanket Sethi

    That would be very useful to know for me too. So has anybody an idea?
    Greetings Philip

  • Is it possible to update the human task payload without using worklist API but only using advance routing rule.

    Hi,
    I have one human tasks in BPEL process in which i am using different stages and with using advance routing rules i am routing my task payload to one stage to another.My payload has Task Status and Branch,after approving the human task from first stage I want to send modified value of the Task Status to the next stage without using worklist API or manual updation but only using the advance routing rules,is it possible ??? If anyone have any idea about this than please enlight me with your valuable solutions and  advices...
    Thanx
    Regards
    Ajral

    Hi SamGoe,
    According to your description, my understanding is that you want to update the PoerPoint slide from SharePoint 2010 slide library automatically.
    It seems to be not necessary to use Macros. SharePoint provides an OOB way to notify you to check for update to the slide library slides when you open the presentation. PowerPoint does this because you selected the option
    Tell me when this slide changes when you copied the slides from the library.
    More information, please refer to the link below:
    http://office.microsoft.com/en-us/powerpoint-help/sharepoint-slide-libraries-ii-use-slides-in-the-library-RZ010254089.aspx?section=6
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • In inspection lot..task list does not fetch

    Hi QM Guru..
    when i do UD for fish material. with QA32....in QA32 showing inspection lot no..but when i select line item of inspection lot and click on inspection lot..one window open..when i go inspection specification for task list..when i  click on task list....show the massage....
    but i all ready created inspection plan from QP01...i have over ther MIC and sampling procedure also
    No inspection plan could be found
    Message no. QA278
    Diagnosis
    A task list  could not be found for the selection criteria. The inspection setup for this material in the quality management view of the material master defines an inspection with a task list.
    System Response
    Sample calculation and inspection lot release are not possible.
    Procedure
    Check the:
    Selection criteria
    Material/task list assignment
    Task list status
    Task list usage
    Task list usages i have taken 5  for GR
    status 4 general release
    kindly suggest me why task is not taking...i have already created task list
    kindly suggest me
    Regards
    Aqueel

    Dear,
    Is this quality Plan is back dated and Lot size should be 1 to 9999,999.
    Why are you creating rate routing? check lot for 04 insp type in QA02.
    Or for old material just create one new order and test it once again.
    You can check the statuses in config.
    QM>Quality Planning>Inspection Planning>General>Define Task List Status.
    You should find that "4" is in there with all the check marks on.
    QM--> Quality Inspection --> Inspection Lot Creation --> Maintain Inspection Lot Origins and Assign Inspection Types.
    There is a column called status. For each inspection ORIGIN, you can specify the status of the inspection plan. It appears someone in your system changed the 4's to an X and then created the status "X".
    Regards,
    R.Brahmankar

  • 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

Maybe you are looking for

  • Macbook to TV

    i have a white macbook 2.4 GHz Intel Core 2 Duo (Macbook 4,1) i wanted to hook it up to my tv and i would like both video AND audio to work any one with a suggestion for the best way to do this?

  • Gmail outgoing server issues with Apple Mail

    Hi, I'm currently running OS X 10.8.5 Mountain Lion, and trying to set up my gmail account in Apple Mail. I can recieve mail just fine, but am not able to send mail. for the outgoing server i typed "smtp.gmail.com." When i look at the Mail Connection

  • How to get MRP elements - quantity received/required

    Hi all I have a report and I need it to show the quantity received/required for each material in a plant due to MRP execution. Basically something like MD04 showing each MRP element entry (Deliv., OI-SL, Order, etc) but a sum of quantity received and

  • Need a help in Report for Fomula key figure

    Hi I am doing Trial Balance report, in my report there are two Formula fields     Net Dr  Net Cr    100     -100    - 200      200 The values are like this, Know what the user want is where the negative sign come that should display 0 in reports. I t

  • SIGN UPLOAD DEPENDING ON PURCHASING GROUP

    i need to up load sign based on the purchasing group in to a window so i am passing the purchasing group in a table which has per group and name and getting the name of bitmap file in variable V_name in sub routine and then i am creating a constant w