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

Similar Messages

  • 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 use the Worklist API from Java (classpath ??)

    Hi all,
    Sorry for a novice question but I couldn't find the way to go about this (probably because it's such common knowldge...)
    I would like to try and use the Worklist API from my Java code in Eclipse, and according to the BPEL dev-guide I need to add an Import command for oracle.tip.pc.api.worklist. Where do I find these classes ?????
    I guess I need to change my CLASSPATH but I couldn't find a single word about this in the BPEL dev-guide (chapter 17), BPEL installation guide or elseware.
    thanks.

    Hi all,
    Ok now.
    To summarize - I was trying the code from BPEL developer guide, chapter 17, page 40 for using the Worklist local API's.
    Only after adding the following JAR's to the build path, was I able to compile it:
    orabpel-common.jar
    orabpel.jar
    bpm-infra.jar
    bpm-services.jar
    So, these 4 JAR's are required for using the Worklist local API's (not a clue in the dev guide itself for this requirement though...)
    Thank you very much for your help,
    assaf.

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

  • Worklist API

    Hi,
    Please let me know if bpm 11g worklist API jars comes default with oracle bpm and the location of the jar files.
    Regards,
    Sam

    Modify domain.xml to include bpm-services.jar in bpelcClasspath.
    Steps
    1. Shutdown server
    2. cd $ORABPEL_HOME\domains\default
    cd D:\BPELPM1012\integration\orabpel\domains\default
    notepad domain.xml
    append D:\BPELPM1012\integration\orabpel\system\services\lib\bpm-services.jar to bpelcClasspath element value
    After modifying bpelclasspath element becomes
    <property id="bpelcClasspath">
    <name>BPEL process compiler classpath</name>
    <value>C:/work/JbossBPELPM/system/classes;C:/work/JbossBPELPM/lib/j2ee_1.3.01.jar;D:/BPELPM1012/integration/orabpel/system/services/lib/bpm-services.jar</value>
    <comment>
    <![CDATA[Server-side BPEL process compiler classpath.  Any user-specific classes/libraries used by a BPEL java exec node (that have not been packaged in the BPEL archive) need to be specified here so that the server-side BPEL process compiler can successfully compile the BPEL process.]]>
    </comment>
    </property>
    4. If you need more classes, append required jars
    3. start the server and deploy again

  • Getting exception when trying to get taskdetails url using BPM worklist api

    Getting exception when trying to get taskdetails url using BPM worklist api method :
    String url = WorklistUtil.getTaskDisplayURL(
    wfSvcClient,
    ctx,
    task,
    null,
    "worklist",
    parameters);
    Jul 21, 2011 11:24:40 AM oracle.bpel.services.common.ServicesLogger __log
    WARNING: <oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.getServerPropertiesFromMbean()> Exception while loading install config file in standalone Error : javax.management.InstanceNotFoundException: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean
    oracle.fabric.common.FabricException: javax.management.InstanceNotFoundException: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean
    at oracle.soa.common.util.PlatformUtils.getServerInfo(PlatformUtils.java:184)
    at oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.getServerPropertiesFromMbean(TaskFlowPropsUtil.java:319)
    at oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.getServerInfoForWeblogicServer(TaskFlowPropsUtil.java:491)
    at oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.getServerInfo(TaskFlowPropsUtil.java:363)
    at oracle.bpel.services.workflow.worklist.api.util.WorklistUtil.getDefaultURLPrefix(WorklistUtil.java:264)
    at oracle.bpel.services.workflow.worklist.api.util.WorklistUtil.getTaskDisplayURL(WorklistUtil.java:353)
    at oracle.bpel.services.workflow.worklist.api.util.WorklistUtil.getTaskDisplayURL(WorklistUtil.java:293)
    at com.test.WorflowServiceClient.main(WorflowServiceClient.java:198)
    Caused by: javax.management.InstanceNotFoundException: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1094)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:662)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:638)
    at oracle.as.jmx.framework.config.session.ConfigurationMBeanServerImpl.getAttribute(ConfigurationMBeanServerImpl.java:210)
    at oracle.soa.common.util.PlatformUtils.getServerInfo(PlatformUtils.java:78)
    ... 7 more
    Caught workflow exception: null
    Process exited with exit code 0.
    Can anyone please help me

    Actually i'm using Jdeveloper 11.1.1.4 and our requirement is to show list of BPM worklist tasks for the logged in user on the first page and onclick of each task task details page should be opened. I can use Webcenter PS3 worklist taskflow. But i'm not able to customize that taskflow. So, i'm going for Worklist client api.
    I'm able to retrive the taskId,task title and few other details like task payload. But i don't know why the below method is giving exception.
    String url =
    WorklistUtil.getTaskDisplayURL(wfSvcClient,
    ctx, task, null,
    "worklist", parameters);
    And i observed that you have also used the same code for getting Taskdetails url. And one more thing is i'm trying to access BPM worklist which is installed on remote machine.
    Can you tell me what could be the reason for the exception?

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

  • Optimization in worklist api authentication ..

    Hi i have a question about the worklist api authentication when your using a Remote Client ..
    When you authenticate remotely against identity service, i.e. to later get a task list you write:
    RemoteWorklistServiceClient wlsc = new RemoteWorklistServiceClient();
    wlsc.init();
    IWorklistContext context = wlsc.authenticateUser(username, password);
    I noted that the process of authenticaton it takes a really long time
    (Note:
    a few miliseconds but i have a really loaded front web app working in a oc4j cluster and with a clustered bpel process manager -sharing a dehyd store-),
    my question is theres anyway to share this context between different oc4j instances ? i mean, i can store this context in the session object but i dont know if could be worst, because the session replication of the oc4j instances ..
    and another question is if i stored by someway this context, ill keep open an rmi connection all the time ?
    (i know it depends if dedicated.connection its true but this context keeps using a InitialContext holding the rmiContext ? )
    .. i ask before start decompiling bpel worklist api to get some conclusions :P :P ..
    thx in advance guys if u hace some idea ..
    regards
    Dam.

    http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28985/index.html
    Marc

  • 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

  • How to hide custom actions from Oracle Worklist Application (Conceptual)

    Hi,
    I have a conceptual question in relation to Worklist Application and the Oracle Workflow. I will explain, now:
    This is the image that demonstrate the situation (worklist app console): http://i53.tinypic.com/34h9ilw.png
    As you can see, i have 4 custom actions (ENVIAR_ANALISE_FRAUDE, APROVAR, REPROVAR, ENVIAR_ANALISE_NIVEL2) and i have three main regions in the image
    (Action By Menu 1, Action By Menu 2 and Action By Button 3).
    I have to make same custom validations when the user to choose any action, then inside of the JSPX file (Human Task Page Generated), i made the following customizations to reach my objective:
    1) At the Region 2 (Action By Menu 2) - I delete these lines of code to hide the actions:
    <af:group id="g2">
    <af:forEach var="childNode1"
    items="#{actionAvailable.customActions}">
    <af:commandMenuItem textAndAccessKey="#{childNode1.displayName}"
    actionListener="#{invokeActionBean.setAction}"
    action="#{invokeActionBean.action}"
    partialSubmit="false" id="cmi2">
    <f:attribute name="ACTION_MENU_ITEM"
    value="#{childNode1.action}"/>
    </af:commandMenuItem>
    </af:forEach>
    </af:group>
    2) At the Region 3 (Action By Button 3), i change the default action button's to point to my managed bean action and make the required custom validations, in accordance to my requirements. After that i made my validations, i call some lines of code to make with the Oracle Workflow executes your default internal functions when an action is clicked.
    <af:commandToolbarButton actionListener="#{myManagedBean.setOperation}"
    text="Aprovar"
    disabled="#{myManagedBean.isErrorOccurred}"
    action="#{myManagedBean.invokeMyCustomizedOperation}"
    partialSubmit="false"
    visible="#{wf:isCustomActionAvailable('APROVAR', 'bindings.customActions')}"
    id="ctb2">
    <f:attribute name="DC_OPERATION_BINDING" value="bindings.APROVAR"/>
    </af:commandToolbarButton>
    public void setOperation(ActionEvent p1){
    this.acaoSelecionada = (String) p1.getComponent().getAttributes().get("DC_OPERATION_BINDING");
    this.operation = UtilWorkflow.getInstance().getOperationFromHumanTask(this.acaoSelecionada);
    this.operation.execute();
    InvokeActionBean ia = (InvokeActionBean)ADFContext.getCurrent().getRequestScope().get("invokeActionBean");
    ia.setFinalizerJavaScriptName("closeBrowser()");
    ia.invokeScript();
    3) The great problem for me now is the region 1 (Region By Menu 1), this the part of Oracle Worklist Application and i cannot hide this Menu or change anything inside it. If the user click at the 'APROVAR' action, my custom validations will be ignored and the Workflow will approve my task, without intervention of my validations.
    After explaining everything this, here are my questions:
    1) Is this the correct way to work with the Oracle Soa Suite ?
    2) How can i hide the Region 1 (Action By Menu 1) ? Is possible ?
    Thanks,
    Victor Jabur

    Hi,
    I am also in need of hiding or having custom validations for the actions in Region 1. Does anyone have any suggestions? Please help!
    Thanks,
    Farhana

  • Deploying Oracle Worklist into a Separate Environment

    Hi Experts
    I am trying to deploy the Oracle Worklist application into the oc4j container in my local machine, which doesn't have a SOA environment.
    Is this possible? I tried to deploy the worklist app into a different container of the application server which has got the SOA environment
    and it didin't work.
    Expecting your ideas.
    Thanks
    Jamith

    Thanks for your responses guys, however I am now more confused as Torsten and Ravinder are saying its OK and Garth says its not OK. Can anyone validate this please. Thanks a ton.
    The real answer is that you are going to have to trying it for yourself. I don't recommend doing it based on previous experience.
    Just think about it for a monument. What happens when your server team doesn't upgrade to CM12 Sp2 but the WS team does? How exactly will this affect your MP?
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Oracle.forms api

    I need the oracle.forms api for javabeans development, but i am unable to find it.
    I have the JDAPI api, thats not what i want.
    ( I have searched oracle.forms api & documentation on google but i am unable to find them.
    the link : http://www.oracle.com/technology/documentation/oracle9i_arch_901.html
    contains a lot of documentation files, but i am not sure these are the ones that i need.
    some of the files there are over 200 mb. before dowloading such heavy files, i want to be sure that they are the ones i need!!!)
    I want to use the following packages / classes :-
    oracle.forms.handler.IHandler
    oracle.forms.ui.*
    oracle.forms.properties.ID
    I want to find out more about the above mentioned packages, and i thought that javadocs / api would be the most comprehensive help that i can get.
    I have downloaded a few javabeans that were close to my requirement, and was going through the java source codes, thats where i encountered these classes / packages.
    I amd using forms 9i. and Jdeveloper 9i

    You should ask the experts in the forms forum (Forms
    Timo

  • 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

  • Oracle 11i API's

    Hello all,
    Can anybody say whether Oracle 11i suite of applciation come up with new API's instead of conventional interface tables to import legacy data.
    If yes, appreciate if somebidy can point me
    to right place for documentation.
    I looked at 11i documentation, it doesn't seem to be any new API's other than standrard interface tables.
    Syam.

    Look in the Oracle Manufacturing APIs and Open Interfaces Manual. Both the table-based APIs and the new process APIs are documented there.

  • Running Oracle seeded API from Custom Schema

    Hi All
    I have a custom schema and I need to call a Oracle standard API from this schema. When I try to initialize the session using fnd_global.apps_initialize I get the following error:
    ORA-00942: table or view does not exist
    ORA-06512: at "APPS.FND_CORE_LOG", line 25
    ORA-06512: at "APPS.FND_GLOBAL", line 104
    ORA-06512: at "APPS.FND_GLOBAL", line 1620
    ORA-06512: at "APPS.FND_GLOBAL", line 2170
    ORA-06512: at "APPS.FND_GLOBAL", line 2312
    ORA-06512: at "APPS.FND_GLOBAL", line 2250
    ORA-06512: at line 2
    I understand that this is an issue with GRANTS. However I have granted the EXECUTE ANY PROCEDURE and SELECT on all the underlying tables of this oracle package.
    Has anybody faced a similar situation. Any help would be greatly appreciated.
    Thank You.
    Jyoti
    Edited by: user646763 on Oct 3, 2010 11:49 PM
    Edited by: user646763 on Oct 3, 2010 11:51 PM

    Hi,
    I understand that this is an issue with GRANTS. However I have granted the EXECUTE ANY PROCEDURE and SELECT on all the underlying tables of this oracle package.The error "ORA-00942: table or view does not exist" indicates that the custom schema owner cannot select from the underlying tables. Please review the packages code again and make sure that your custom user has select privileges (or check if any public synonym needs to be created).
    See eTRM website for details about those packages and the relevant tables -- http://etrm.oracle.com
    Thanks,
    Hussein

Maybe you are looking for

  • Open/closed PRs

    Hi, What exactly is an open PR and how does it differ from a closed PR? How can we close open PRs? (or are there automatic ways to close PRs) And what are the general rules(things to be kept in mind) before closing PRs? Thanks in Advance, Chintan.

  • Lotus Notes Application in Visual Studio

    Hi All, My company currently has a old VB application running in lotus notes. This imports a XML file, calls a stored procedure on a SQL DB tranforms the file, calls another stored procedure, then loads the file data into the SQL DB. We are now looki

  • Iphone turns onto blue screen

    when i turni phone on all that shows up is a blue screen no apple logo nothing just blank blue screen does anyone haythve ne ito what it could be? i have not dropped my  or plugged it in to anything unsual or updated anything it was on charge and whe

  • CS4 replace image issue - Windows 7

    New laptop - Dreamweaver CS4 - Windows 7... If i insert an image to a document it puts the image in fine.  But if I want to change that image I select that image and hit the "browse for image" (little folder icon) and select a different image in the"

  • Switching images used as a symbol late in development

    Does anyone know a way to switch the image you are using as a symbol later in the development stage? Lets say you edit an image in Fireworks, then convert it to a symbol, then copy and paste it into Flash and use it throughout the movie. Is there a w