Listing the Human tasks through Workflow API

The workflow API uses oc4jadmin as the user to get the workflow context. what if we dont have the credentials of oc4jadmin but of a normal user to whom a task is assigned. I am not able get the workflow context by using the credentials of a simple user.
I am using :
workflowContext = getTaskQueryService().authenticate(WF_MANANAGER_UN, WF_MANANAGER_PW, LDAP_DOMAIN, worklistUser);
List tasks = getTaskQueryService().queryTasks(getWorkflowContext(), displayColumns, optionalInfo, "My+Group", null, whereclause, null, 0, 0);
when i change the user name and password from oc4jadmin, it throws an exception of "null pointer"

Hi,
We solved this issue by applying the following steps:
* Create a shared library on the OC4J container using the same name (oracle.ifs.client), but another version (10.1.2). Actually, give it the version of your Content Services version.
* Upload the following JAR files to the shared library from the previous step: axis.jar, commons-discovery-0.2.jar, commons-logging-1.0.3.jar, content-ws-client.jar, http_client.jar, log4j-1.2.14.jar, wsdl4j-1.5.1.jar. Important: use the JAR files from you Content Services installation, not the JAR files from the Oracle AS installation (that containes another version of those JAR files).
* When you deploy the client application that accesses Content Services make sure you import the oracle.ifs.client shared library, but include a max-version attribute that equals your own shared library. That way, the correct JAR files are loaded instead of the newer version.
Regards, Ronald

Similar Messages

  • 'Claim' a Human Task through Workflow API

    There is no function to "Claim" a task that is assigned to a group, through Workflow API.
    There is a function to "Acquire" the task but after acquiring, the task cannot be completed (it throws exception):
    java.lang.NoClassDefFoundError: com/collaxa/common/util/NonSyncPrintWriter
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at com.evermind.io.ClassLoaderObjectInputStream.resolveClass(ClassLoaderObjectInputStream.java:33)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
         at com.evermind.server.rmi.RMIClientConnection.handleMethodInvocationResponse(RMIClientConnection.java:856)
         at com.evermind.server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:287)
         at com.evermind.server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:242)
         at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:224)
         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:727)
         at java.lang.Thread.run(Thread.java:595)
    and if viewed through the default worklist application, there is no action available to the task after "Acquiring" through API.
    How can we create a custom worklist application and complete tasks which are assigned to a group of users ?

    Can you post how you are acquiring it and how you are attempting to complete it?

  • Dynamic Sequential List of Approvers in the Human Task

    Hi all - I have this asynchronous BPEL process and want to dynamically assign a Sequential List of Approvers that are the result of an Invoke of a Database Adapter.
    1. Added the OutputCollection of the Invoke as a parameter to the Human Task (element type).
    2. Under Assignment and Routing Policy, chose Sequential List of Approvers, and By Expression, chose the value from the OutputCollection from the payload.
    3. After deployment, the instance falls through to completion without errors, but without assigning a task to any approvers. I can see in the Invoke where it pulled the names I want to be assigned.
    Any help or direction would be greatly appreciated.
    Using JDeveloper 10.1.3.3

    I tried to recreate the problem like listed above, but after I add the Outputcollection of the Invoke as a parameter, there is no schema info (not even task:task) when editing the Assignment and Routing Policy section. At any rate, there weren't errors to speak of - the instance completed with "The state of this instance is Completed".
    In the meantime, I've used a while loop to loop through a sequence of approvers that are result of a query. I'll have to keep track of approvers and include them in each new payload I think.

  • 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

  • Query on rendering the Human Tasks in the customized GUI application.

    Hi All,
    In oracle11g BPEL, Is there any way to render the Human Tasks in the Customized GUI (Weblogic Portal) application rather that using the applications like "Oracle BPM WorkList"?. Does the Oracle11g BPEL supports this ?. My requirement is that, i need to render the Human tasks inside my own GUI application. I do not want to allow the end user of my application to use the other GUI applications like Work List to wotk up on the human tasks. Instead of this, User must be able to access and work up on the BPEL human tasks through my Customized GUI (Weblogic Portal) application. Is there any way in Oracle11g BPEL to achieve the required functionality?.
    Edited by: user538948 on Sep 2, 2012 11:03 PM
    Edited by: user538948 on Sep 5, 2012 2:04 AM

    Hi Naga
    http://docs.oracle.com/cd/E14571_01/apirefs.1111/e10660/toc.htm
    1. I would not recommend using APIs unless and otherwise if you do not have any other option. You can always create the TaskForms in your own custom pages using out of box generated bindings for each .TASK file. This gives more flexibility. There are lots of stuff associated with a Task apart from your own custom payload like full Task details, system attributes, headers, history, comments/attachments etc. You do not want to use APIs to get all these.
    The below 2 links should give you an overview of overall architecture of a Workflow and TaskForms.
    Re: Integrating BPM taskflows into an ADF application
    Re: deploying a large Oracle BPM Application with multiple UI projects
    Re: What exactly 'PAYLOAD' Means???
    Once you have basics covered, refer oracle docs also that shows how to reuse a single project.
    Thanks
    Ravi Jegga

  • Error while updating the Human task

    When I try to update my Human task the following error is occuring in JDeveloper and I can't save my changes, any help will be appreciable. thank you.
    Uncaught exception
    java.lang.NullPointerException
    o.bpel.services.workflow.verification.impl.TaskContentAccess.getAccess(TaskContentAccess.java:127)
    o.tip.tools.ide.workflow.util.AccessRulesUtil.getDefaultActionAccessData(AccessRulesUtil.java:265)
    o.tip.tools.ide.workflow.util.AccessRulesUtil.getChangedActionAccessData(AccessRulesUtil.java:174)
    o.tip.tools.ide.workflow.editor.tab.TaskActionAccessConfigurationPanel.getData(TaskActionAccessConfigurationPanel.java:272)
    o.tip.tools.ide.workflow.editor.tab.TaskAccessConfigurationPanel.getActionData(TaskAccessConfigurationPanel.java:103)
    o.tip.tools.ide.workflow.editor.tab.AdvancedOptionsPanel.getData(AdvancedOptionsPanel.java:215)
    o.tip.tools.ide.workflow.editor.tab.AdvancedOptionsEditor$LocalPropertyChangeListener.propertyChange(AdvancedOptionsEditor.java:141)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
    j.a.Component.firePropertyChange(Component.java:8128)
    o.tip.tools.ide.workflow.editor.tab.AssigneesEditor.propertyChange(AssigneesEditor.java:186)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
    j.a.Component.firePropertyChange(Component.java:8128)
    o.tip.tools.ide.workflow.editor.v2.StageEditor.firePropertyChange(StageEditor.java:1488)
    o.tip.tools.ide.workflow.editor.v2.StageEditor.propertyChange(StageEditor.java:1081)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
    j.a.Component.firePropertyChange(Component.java:8128)
    o.tip.tools.ide.workflow.editor.v2.ParticipantEditor.editParticipant(ParticipantEditor.java:1304)
    o.tip.tools.ide.workflow.editor.v2.ParticipantEditor$LocalMouseAdapter.mouseClicked(ParticipantEditor.java:1004)
    j.a.Component.processMouseEvent(Component.java:6266)
    jx.s.JComponent.processMouseEvent(JComponent.java:3267)
    j.a.Component.processEvent(Component.java:6028)
    j.a.Container.processEvent(Container.java:2041)
    j.a.Component.dispatchEventImpl(Component.java:4630)
    j.a.Container.dispatchEventImpl(Container.java:2099)
    j.a.Component.dispatchEvent(Component.java:4460)
    j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
    j.a.LightweightDispatcher.processMouseEvent(Container.java:4247)
    j.a.LightweightDispatcher.dispatchEvent(Container.java:4168)
    j.a.Container.dispatchEventImpl(Container.java:2085)
    j.a.Window.dispatchEventImpl(Window.java:2478)
    j.a.Component.dispatchEvent(Component.java:4460)
    j.a.EventQueue.dispatchEvent(EventQueue.java:599)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    Edited by: user9351838 on 15-Feb-2012 18:45

    Seems you Human Task has run into not finding the input configurations you have made for the same.
    Please check the .task files generated. and delete it from Composite and trying recreating the Human Task.
    Reg,
    MaShek

  • Control mult access to the Human Task

    Hi All,
    I have a human task in the BPM process which is assign to the role of the user. I've noticed that the task can be accessed by multiple users at the same time within the BPM workspace task list.
    How can I control it that when one person is already open the human task and nobody can open it. Is it a way to
    set the concurrency level for bpm human task?
    thanks in advance.

    Guessing you might already know this, but the human tasks have an auto-claim property that is turned on by default. The way this works is that if more than one end user selects a task at the same time, the first one to submit the task will be the one that gets committed. While I'd agree that it's not ideal, the second end user (who also had the form displayed for the task when they simultaneously selected the same task) will not be able to submit the task. The second end user sees this rather cryptic message when they try to submit the form:
    >
    "Insufficient privileges to access the task information for this task. User 9616d414-d4bc-4573-9d39-cc100fda7391 cannot access the task information for task: {1}. Ensure that the user has been granted appropriate privileges to access the task information for this task."
    >
    This doesn't sound like the route you want to go either, but from the Workspace - end users can "Claim" a task from the Actions dropdown. Claim is useful when an end user is working on a work item instance and they want to make sure that no one else assigned also tries to work on the same work item instance. End users do not have to claim tasks in the Workspace, but it's useful to keep another end user from working on (or even seeing in their queue) the same work item instance that they had already started working on.
    Once claimed, a work item instance can only be viewed and worked on by the user who claimed it and anyone assigned to the Process Owner role (it is shown in the Process Owner's "My Staff Tasks" tab - not in their "My Tasks" tab). The instance could be returned back into the general queue by clicking the Actions dropdown and clicking Release.
    Dan

  • TO VIEW MANUAL USER LIST IN HUMAN TASK

    Hii All,
    I want to add in the user list manually in the human task and to assign the task to them.Can anyone please help me how to create userlist manually.
    with regards,
    Deekay.

    Deekey, can you please explain us your question bit more in detail ? By default the users for soa suite are maintained in jazn.

  • Query regarding changing the human task type

    Hi,
    I am new to BPM.I have created a process with two tasks and mistakenly selected both the human tasks with the initiator pattern.And now I am getting this compilation error which says my process contains more than one initiator tasks.Is there any way in which I can change the human task type to simple after the process has been created?
    Thanks in advance

    Hi,
    Thanks for your reply.I found that out too.It is really strange that there is no way in which you can change the type once you have created a user task.
    Thanks
    Rahul

  • How to create payload attribute to the Human Task

    Any examples/doco will be appriciated.

    You open up the human task file (.task) and on the Data tab you add in whatever variables you want to pass to the human task. These can be simple XSD types such as strings, or complex objects ("Add Other Payload") which are elements which have their own .xsd file, typically Business Objects defined in the business catalog. This is how you configure the payload once the .task file has already been created.
    If you have a BPMN process and you're adding a new interactive activity, then you can define the payload while you're creating the activity itself. After you drop the activity onto the process, click the implementation tab, click the green plus icon to add a new human task, then click the plus icon in the parameters section to define the payload. You can drag and drop objects defined as Process or Project data objects from the palette that appears on the right directly into the parameters section on the left. Make sure to mark them as editable if you want users to be allowed to change the values in the human task.
    Edited by: Mike Rokitka on May 14, 2010 10:36 AM
    Edited by: Mike Rokitka on May 14, 2010 10:37 AM

  • Workflow - Selection of the final vendor through workflow if multiple rate

    HI,
    PLz suggest if there is any standard workflow template and Business object which can be used for the requirement -
    "Selection of the final vendor through workflow if multiple rate contarct exists".
    Thanks

    No.

  • Can we call the Human Task operations and the Rule Designer, etc. from outs

    Hi,
    I just had one of my customers ask me -
    Can we call the Human Task operations and the Rule Designer, etc. from outside the SOA Suite ??
    Since these are independent applications, and that they are based on Service Oriented Architecture, I should be able to call these services from outside Oracle SOA Suite (SCA) for reuse.
    In case you have any idea about the possibilities, could you share some real world examples / URLs please ?
    Thanks & Regards

    Hi Vaibhav,
    Yes, you are right. We are using Oracle SOA suite 11g.
    My question is, can these Web Services be directly accessed from, say a .NET application without using BPEL PM, or is using BPEL a must to invoke these services in Human Task operations, Rule Designer, etc ?
    Regards

  • SOA/BPM/Human Tasks 11g -- add new task participant through Workflow API

    Heya folks. Got a question that's been driving me nuts, hope you can help.
    I have a bunch of Human Tasks in a BPMN process. Each task is pretty simple -- for assignment a single stage only; parallel approval; list of participants is passed in -- via the task payload -- as a comma-delimited list. When the task is initiated it produces a root task, and one child task for each participant. So, say we have participants "fgolfer,atreyvaud" we get three task objects: the "master" or root task and one each for fgolfer and atreyvaud.
    Now what I want to do is add another approver (let's say "gfrog") -- i.e. create a new task for gfrog which is a child of the master task and leaves the tasks for fgolfer and atreyvaud as they are. As far as I can figure, this is NOT a Reassign nor an Ad-Hoc Route. Applying either of those to an existing task effectively removes the existing user from the task and assigns it to the new user.
    On another track, if I programmatically create a new task (with initiateTask() from the Task service, using the values from an existing task), I seem to get a NEW master task with attendant child tasks, while leaving the existing master task and children.
    Make sense? Neither of these outcomes is what I want.
    Seems like this should be pretty simple but for the life of me I can't figure it out. I could create an FYI task or a todo task or a subtask but again this isn't what I want -- need to create a task with all the custom outcomes and such.

    In case folks are playing along at home, I've yet to find a solution for this. Because I need to move forward with my project, I've decided I can't do it through the Workflow API and I'm taking a different route -- basically, triggering a custom task outcome which returns to the same Human Task in the BPMN flow, thus starting the task again. Before doing that I update the task's payload, which contains the task assignees.
    I'm not happy with this, it seems like a nasty hack to overcome a limitation with the Workflow API.
    Understand, though, I'm not saying this is impossible through the Workflow API, just that I haven't found a way to do it. I've spent 2-3 person weeks on this and it's time to move on.

  • Executing Workflow Task through JAVA APIs

    Hi,
    I'm able to send the workflow task to the next step with JAVA APIs.
    The problem comes here if I try to log in into MDM through IConnectorGatewayService.
    If I get a connection to MDM through CatalogData's login method, everything works fine, task is getting executed properly. But, if I try to run the same code where I get the connection through IConnectorGatewayService, the same code doesn't work.
    Surprisingly, there is no problem in retrieving data from MDM while connecting with ConnectorGatewayService.
    Please do let me know if I need to specify some parameters while getting the connection with IConnectorGatewayService so that I can change the workflow task status.
    Thanks and Regards,
    Mausam

    Hi Mausam
    Please go through this document u will get the solution
    https://help.sap.com/javadocs/MDM/current/index.html
    https://help.sap.com/javadocs/MDM/current/index.html
    I think it may help you
    Regards
    Hari

  • Error while updating the Human task in JDeveloper. Can not save the changes

    When I try to update my Human task the following error is occuring in JDeveloper and I can't save my changes, any help will be appreciable. thank you.
    Uncaught exception
    java.lang.NullPointerException
    o.bpel.services.workflow.verification.impl.TaskContentAccess.getAccess(TaskContentAccess.java:127)
    o.tip.tools.ide.workflow.util.AccessRulesUtil.getDefaultActionAccessData(AccessRulesUtil.java:265)
    o.tip.tools.ide.workflow.util.AccessRulesUtil.getChangedActionAccessData(AccessRulesUtil.java:174)
    o.tip.tools.ide.workflow.editor.tab.TaskActionAccessConfigurationPanel.getData(TaskActionAccessConfigurationPanel.java:272)
    o.tip.tools.ide.workflow.editor.tab.TaskAccessConfigurationPanel.getActionData(TaskAccessConfigurationPanel.java:103)
    o.tip.tools.ide.workflow.editor.tab.AdvancedOptionsPanel.getData(AdvancedOptionsPanel.java:215)
    o.tip.tools.ide.workflow.editor.tab.AdvancedOptionsEditor$LocalPropertyChangeListener.propertyChange(AdvancedOptionsEditor.java:141)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
    j.a.Component.firePropertyChange(Component.java:8128)
    o.tip.tools.ide.workflow.editor.tab.AssigneesEditor.propertyChange(AssigneesEditor.java:186)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
    j.a.Component.firePropertyChange(Component.java:8128)
    o.tip.tools.ide.workflow.editor.v2.StageEditor.firePropertyChange(StageEditor.java:1488)
    o.tip.tools.ide.workflow.editor.v2.StageEditor.propertyChange(StageEditor.java:1081)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
    j.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
    j.a.Component.firePropertyChange(Component.java:8128)
    o.tip.tools.ide.workflow.editor.v2.ParticipantEditor.editParticipant(ParticipantEditor.java:1304)
    o.tip.tools.ide.workflow.editor.v2.ParticipantEditor$LocalMouseAdapter.mouseClicked(ParticipantEditor.java:1004)
    j.a.Component.processMouseEvent(Component.java:6266)
    jx.s.JComponent.processMouseEvent(JComponent.java:3267)
    j.a.Component.processEvent(Component.java:6028)
    j.a.Container.processEvent(Container.java:2041)
    j.a.Component.dispatchEventImpl(Component.java:4630)
    j.a.Container.dispatchEventImpl(Container.java:2099)
    j.a.Component.dispatchEvent(Component.java:4460)
    j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
    j.a.LightweightDispatcher.processMouseEvent(Container.java:4247)
    j.a.LightweightDispatcher.dispatchEvent(Container.java:4168)
    j.a.Container.dispatchEventImpl(Container.java:2085)
    j.a.Window.dispatchEventImpl(Window.java:2478)
    j.a.Component.dispatchEvent(Component.java:4460)
    j.a.EventQueue.dispatchEvent(EventQueue.java:599)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    j.a.EventDispatchThread.run(EventDispatchThread.java:122)

    Resolved ..
    It was an issue with permissions .
    Thanks

Maybe you are looking for

  • How to get rid of the reference lines on the front panel

    I forgot how I created a couple of horizontal and vertical reference lines on the front panel. It looks like the origin lines on the front panel. When I move my program to another monitor with different resolution, all the layout is messed up because

  • System Preference: Print & Fax missing

    Hello. When I go to System Preferences > Internet & Network... My Print & Fax icon is missing. I can't select and default my installed printers. How do I retrieve this icon? Thanks

  • Macbook to ps3?

    is there any way to connect my macbook to my ps3 and add it to my network. i ve tried to hook up over ethernet, but its like the 2 wont find each other. is there a way to connect thru bluetooth at least as both are blurtooth capable, but when i scan

  • PPI Limitation in photoshop CS5???

    Hi, I am working with very high resolution images (21,739 pixels per cm).  Not a typo! The images are of zebra finch brain sections that were scanned using an Olympus Nanozoomer (microscope) with a 20X object. The scanning resolution was a cool 0.46u

  • Change line graph color to red when negative?

    I've got a line graph charting my budget. Anyone know if there is a way to have the line be red if it is negative, and the standard blue if it is in the positive? I didn't see any sort of option when I briefly looked around Numbers - but I thought I'