Complete Task which is avilable in UWL using Universal Worklist API

Hi All,
I have create the custom task in web dynpro java using UWL API.
Once task is created the task is avilable in portal UWL,while clicking the task its opening the web ynpro application,that web dynpro application contains complete button, while clicking the complete button i need to complete the task using UWL API.
How to complete the task using UWL API ?
Regards,
Boopathi M

Dear Boopathi,
I apologize for the previous reply.
I hope the following code may help you in doing the Completion of UWL WorkItem.
public void completeNotification( com.sap.tc.webdynpro.progmodel.api.IWDNodeElement item )
try {
IUWLService uwlService = (IUWLService) WDPortalUtils.getServiceReference(
IUWLService.ALIAS_KEY);
UWLContext myContext = new UWLContext();
IWDClientUser user;
user = WDClientUser.getLoggedInClientUser();
IUser loggedInUser = user.getSAPUser();
myContext.setUser(loggedInUser);
IUWLSession mySession =
uwlService.getUwlSessionForWebDynproClient(myContext);
IUWLItemManager itemMan = uwlService.getItemManager(myContext);
Item notifItem = (Item) item.getAttributeValue("Item");
notifItem.setStatus(StatusEnum.COMPLETED);
IPushChannel push = uwlService.getPushChannel();
IProviderConnector procon =
uwlService.getRegisterProviderConnector(
IProviderConnector.ADHOC_WORKFLOW_CONNECTOR_ID);
push.updateItem(procon,myContext,notifItem);
uwlService.endSession(myContext);
getInbox();
} catch (UWLException e) {
e.printStackTrace();
wdComponentAPI.getMessageManager().reportSuccess(""+e.getCause());
This Document will also be more helpful I suppose.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/802bfda2-8a85-2b10-9290-d67da32d0c01
Thanks,
Vivek.

Similar Messages

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

  • Which design patten i should use while building API to convert from Word to PDF

    Hi all,
    I would like to build one API which will convert document to PDF which design patten in c#  I should use so that it will be scalable and secure.
    Abhijit Desai

    Hello,
    In .NET no direct support for Word Document to PDF Document Conversion. However, as far as I know, the office seems to provide api/add-in which could do this, you could check this sample:
    Word Document to PDF Conversion.
    Or checking the Document.SaveAs Method:
    https://msdn.microsoft.com/en-US/library/microsoft.office.tools.word.document.saveas(v=VS.80).aspx
    If you are using office 2007, you could use this add-in below:
    2007 Microsoft Office Add-in: Microsoft Save as PDF or XPS
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to filter tasks on the Creation date using the IWorklist API in Java

    Hi all,
    I'm currently developing a java gui application to display usertasks set by the BPM.
    I use the WorkList API to communicate with the TaskActionActionHandler.
    I only want the tasks that has a creation that is after a specified date. Therefore I add a filter. The code for retrieving the usertasks now becomes:
    Map filterMap = new HashMap();
    SimpleDateFormat d = new SimpleDateFormat("dd-mm-yyyy");
    Date date = d.parse((String) dForm.get("filterdate"));
    Calendar cal = Calendar.getInstance();
    cal.setTime(date);
    filterMap.put(IWorklistService.FILTER_TYPE_CREATE_DATE_FROM_FILTER,
    cal);
    RemoteWorklistServiceClient client = new RemoteWorklistServiceClient();
    client.init();
    IWorklistContext ctx = client.authenticateUser(user, password);
    List tasks = client.getWorklistTasks(ctx, filterMap,
    IWorklistService.SORT_FIELD_TASK_TITLE,
    IWorklistService.SORT_ORDER_ASCENDING);
    You can see from the above code-fragment that I specify a FILTER_TYPE_CREATE_DATE_FROM_FILTER filter that is given a Calendar object. This is not working properly. Also a Date value gives a runtime error.
    The error I get is :
    ORABPEL-10150 Worklist Service Task List Error. An error occured in the Worklist Service while retrieving the task list for user jcooper. Check the task filter criterion and the error stack and fix the cause of the error. Contact oracle support if error is not fixable. at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1602) at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1553) at
    Can anyone tell me what kind of dateformat I have to specify for the filter option FILTER_TYPE_CREATE_DATE_FROM_FILTER?
    Thanks in advance!
    Tom

    Hi,
    Enter the format that you have defined in the configuration of the property in the Additional Metadata parameter. Use the syntax customFormat=<pattern>.
    In this link, you have at the end screenshots where to navigate in KM to see the property metadatas of your property:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/645d4357-0701-0010-07bd-a2ea8c4d0aaf
    Here see the Defenitions of the KM Metadata Properties:
    https://wiki.sdn.sap.com/wiki/display/KMC/DefenitionsoftheKMMetadata+Properties
    Regards,
    Praveen Gudapati

  • Approving OIM/SOA requests using OIM 11g APIs

    I'm creating a SOA request using createRequest method in RequestService OIM API. I would like to approve/reject the work items using the API as well but I don't see any methods to approve/reject the tasks. Is this something I would have to use SOA's webservices to do it?
    Thanks

    You need to use BPEL worklist API for the same.
    http://technology.amis.nl/blog/1496/invoking-bpel-worklist-api-from-remote-server-with-java
    http://docs.oracle.com/cd/E12839_01/integration.1111/e10224/bp_worklistcust.htm
    -Bikash

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

  • 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

  • Hide link to SAPguiDetails from completed task list in UWL

    Below is the code I have in XML file to hide links to SAPGuiDetails.
    <Action name="launchSAPDetails" handler="SAPMiniAppLauncher">
    <Properties>
    <Property name="display_order_priority" value="uwlExcludeFromPreviewDetail"/>
    </Properties>
    </Action>
    This works fine however when user selects drodrown in UWL to show completed tasks and open the completed taks, they can still see links to SAPGUIDETAILS. Appreciate if I can get any help how I can hide the link to SAPguidetails from completed tasks list.
    Thanks,
    Bobby

    The simplest way to hide it from all the views in UWL is to put launchSAPDetails in the "List of UWL Actions to exclude" property of the UWL iview.
    If you want item specific or view specific customization, you will need to identify which item and view configuration is used and include the above XML in each of those.
    Thanks,
    Shanti

  • Completed Task cannot be launched again from the UWL.

    Here is the situation.
    The identified agent clicked the task in the UWL.
    Task was launched in a new window and opened an ABAP webdynpro application correctly.
    Agent then approved the task using the approve button in the application. Task was thus completed.
    Now the agent pulled the "Completed Tasks" from the Show dropdown on the Tasks tab in the UWL.
    The task which the agent approved earlier showed up.
    But when the agent clicked this link in the UWL. The application would not be launched again.
    The task preview does appear but the agent wants to the same application form displayed again to confirm what they have approved.
    Any ideas how this can be done. I remember we could do that in the PCR application on ISR framework.
    Edited by: Linkin Pereira on Dec 5, 2008 7:12 PM

    I did some investgation and figured out that there is no standard way to invoke an already completed Task.Therefore for our requirement I have proposed a new solution.
    I am storing the Workitem Id, when the task gets created, in a custom table along with all the data which is necessary for the I-View display.
    To enable users to open the I-View of the task they already completed and take a print out of the I-View etc, I have designed another application. and in this application I am using the Workitem Id to read which completed task they want to view.
    See if this works for you.

  • Unable to perform the request error while selecting completed tasks in UWL

    Hi,
    When user is selecting the Completed Task in the UWL, the below error is displaying
    error: Unable to perform the request. Try again and if the problem persists, inform your system administrator.
    While selecting completed tasks in the drop down, it is showing "Completed Tasks(30)". But after selecting "Completed Tasks(30)" from the drop down, the above error message is getting.
    How can we resolve this??
    Note: We are using EP 7.0 SP 17. When I checked in sdn, I found that there is a problem with completed tasks earlier to sp14. But in SP14, this issue was fixed. But why we are facing this issue?
    Thanks,
    VV

    Hi,
    Please let us know if you can found any relevant logs on
    1) dafault.trc file
    <Drive>:\usr\sap\<sys-id>\JC<inst-no>\j2ee\cluster\server0\log\
    2) UWL logs:
    usr\sap\<version>\JC00\j2ee\cluster\server0\log\applications\sap.com\u
    wl
    Also Have a look on note 1120556.
    Please remember to evaluate the replays, this incentive the SDN to keep growing,
    regards,
    Fabio

  • 500 Internal error when clicking on Completed tasks in UWL

    Hi All
    We are getting 500 Internal Server Error and java.Lang.Null pointer exception when trying to Click on Completed Tasks.
    We are using GP to design the process flow.
    In UWL we are getting tasks from GP Connector
    Please help to resolve the issue
    Thanks
    Satish
    Edited by: satish jarabana on Oct 23, 2009 3:37 PM

    Hi Satish,
    We are also facing same problem, could you please tell me how did you solve the problem.
    Thanks & Regards,
    Veera.

  • HT203167 I had itunes on another laptop which is no longer in use.  I have changed my apple id to my email address which has completed fine.  I cannot find the itunes I had on my account before that I had on my other laptop.  Can you help?

    I had itunes on another laptop which is no longer in use.  I have changed my apple id to my email address which has completed fine.  I cannot find the itunes I had on my account before that I had on my other laptop.  Can you help?

    Your music will only be where you put it. It does not magically appear in other places.  Copy it from your old computer or your backup copy of your old computer.
    If for some reason you have failed to maintain a backup, not good, then you can redownload some itunes purchases in some coutries:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Complete tasks using the outlook integration

    I left a "send email" pending created directly on the CRM, then a user sends an email using the outlook plugin and creates a new completed task with the same subject.
    Is possible to link both task?
    thanks

    Hayden,
    I don't think there are any documentation available for this task. So the answer would probably be no.
    Thanks,
    Gordon

  • UWL still showing completed tasks - is there any property to get refresh??

    Hi all
    Even i complete the task in UWL still the same task is showing not getting updated or not updated in UWL.
    how to make that completed task should disppear in UWL , is there any refresh or any specific property??
    Thanks
    Bindu

    Do not cross post in the different portal forums.

Maybe you are looking for

  • How do i import an iPhoto library from a time machine backup?

    how do i import an iPhoto library from a time machine backup? I did a back up and i formatted my machine. How do i get iphoto to be the same?

  • 10.3.4 install on Windows 7 64 bit

    Update or install seems to pull thru just fine when rebooting after the install - NAL windows pops up and user logs in passively etc. However after the next boot the login process is extremely slow and when hitting the desktop - we get the "Zenworks

  • Link to Flash application from PDF not working on a Mac

    I'm creating a PDF using Acrobat.  I have 2 links that should open up a separate Flash application.  When I try clicking on them in Adobe Reader on a Mac, I get an error message saying "could not find an application to open the file 'xxxxx'.  I can n

  • MacBook Pro retina with 256GB or 512GB?

    I currently have a macbook (late 2009), and after 4-5 years it's finally carked it. It has 2.26GHz intel core duo processor, 2GB RAM and 256GB hard drive. I've finally decided on getting a macbook pro and not the air. Also that 8GB RAM should be well

  • Image gallery download?

    Hi ., i'm building a flash website  and i have a xml as3 gallery and i want to know if there;s a way for the user to download the pictures? is there any code for that?  will i have to add more code to my gallery ? or it can be done ? thnks