List workflow task details

Hi all,<br>
We're in the midst of evaluating oracle bpel pm 10.1.2 for our application. I had created an user task using jdeveloper bpel designer. Successfully tested the flow using bpel console and bpel worklist. I intended to develop a gui for displaying the task and task details using jsp pages. listTasks.jsp will display a list of tasks for a person. displayTask.jsp will allow that person to see the task details. Successfully implemented the listTasks.jsp with the following code:<br><br>
listTasks.jsp<br>
//import necessary packages<br>
WorklistService wlSvc = WorklistService.getWorklistService();<br>
String user = "achrist";<br>
String password = "welcome";<br>
IWorklistContext ctx = wlSvc.authenticateUser(user, password);<br>
Map filterMap = new HashMap();<br>
//put necessary filter in map<br>
//get a list of tasks<br>
//provide a link for user to see details<br>
//something like <href="displayTask.jsp?taskId=<%= taskId %>"><br>
//I had checked that the taskId contains value<br><br>
displayTask.jsp<br>
//import necessary packages<br>
String taskId = request.getParameter("taskId");<br>
if(taskId == null || "".equals(taskId)) {<br>
//do something<br>
} else {<br>
WorklistService wlSvc = WorklistService.getWorklistService();<br>
IWorklistContext ctx = wlSvc.authenticateUser("achrist", "welcome");<br>
IWorklistTask task = wlSvc.getWorklistTaskDetails(ctx, taskId);<br>
//having doubt to proceed further<br>
}<br><br>
I'm having problem with displayTask.jsp as how to proceed further. I'm using a schema file which contains info like customer name, address, customer id, and loan amount. How am I supposed to display those values in the jsp page? I saw a file called taskConfigSimpleUserActivity1_WF_Form.jsp, how can I make use of it? Any suggestion are welcomed and thanks in advance.<br><br>
Regards,<br>
k-lite

I have a similar issue with my version of SharePoint. 
SharePoint 2010 Enterprise.
Outlook 2013 with MS Exchange
Document approval workflow.
When you open the document approval email that comes from SharePoint and click on "Open this task"  the popup window flashes across "workflow tasks details are being retrieved from the server ".
I've tried the regedit fix and the hive fix and resetting IE that some of the other people have said that works and it doesn't. 
When I go the site, and connect the task list to Outlook, I can complete the task that way.
I also created a new approval workflow in SharePoint designer and it behaves the same way.
Anything else I should try?
== Steve Morley MedIT, Dalhousie University

Similar Messages

  • Workflow task details are being retrieved from the server

    Hi,
    Using an approval workflow. when the task has been assigned to the person he is getting an email but when clicking on the edit this task button ,the pop window with the
    "workflow task details are being retrieved from the server" 
    error is getting. SharePoint site 2007 and Microsoft Outlook is 2010.

    I have a similar issue with my version of SharePoint. 
    SharePoint 2010 Enterprise.
    Outlook 2013 with MS Exchange
    Document approval workflow.
    When you open the document approval email that comes from SharePoint and click on "Open this task"  the popup window flashes across "workflow tasks details are being retrieved from the server ".
    I've tried the regedit fix and the hive fix and resetting IE that some of the other people have said that works and it doesn't. 
    When I go the site, and connect the task list to Outlook, I can complete the task that way.
    I also created a new approval workflow in SharePoint designer and it behaves the same way.
    Anything else I should try?
    == Steve Morley MedIT, Dalhousie University

  • How to get site workflow tasks not list workflow tasks in SharePoint 2013 programatically ?

    i want to customize wrkstat.aspx based on site workflow not list workflow, so i want to filter section of tasks view to filtering based on site workflow, i made this to list workflow and i cannot do that to site workflow.
    Please advise me.
    Thanks.

    Hi Ramakrishnan,
    you can use the below code to post comments in newsfeed. I think this will helps you.
    var feedManagerEndpoint;  
    // Get the SPAppWebUrl parameter from the query string and build  
    // the feed manager endpoint.  
    $(document).ready(function () {  
        var appweburl;  
        var params = document.URL.split("?")[1].split("&");  
        for (var i = 0; i < params.length; i = i + 1) {  
            var param = params[i].split("=");  
            if (param[0] === "SPAppWebUrl") appweburl = param[1];  
        feedManagerEndpoint = decodeURIComponent(appweburl)+ "/_api/social.feed";  
        postToMyFeed();  
    // Publish a post to the current user's feed by using the   
    // "<app web URL>/_api/social.feed/my/Feed/Post" endpoint.  
    function postToMyFeed() {  
        $.ajax( {  
            url: feedManagerEndpoint + "/my/Feed/Post",  
            type: "POST",  
            data: JSON.stringify( {   
                'restCreationData':{  
                    '__metadata':{   
                        'type':'SP.Social.SocialRestPostCreationData'  
                    'ID':null,   
                    'creationData':{   
                        '__metadata':{   
                            'type':'SP.Social.SocialPostCreationData'  
                    'ContentText':'This post was published using REST.',  
                    'UpdateStatusText':false  
            headers: {   
                "accept": "application/json;odata=verbose",  
                "content-type":"application/json;odata=verbose",  
                "X-RequestDigest": $("#__REQUESTDIGEST").val()  
            success: getMyFeed,  
            error: function (xhr, ajaxOptions, thrownError) {   
                alert("POST error:\n" + xhr.status + "\n" + thrownError);  

  • Sharepoint Designer - Two step List Workflow task item is not changing the status from not started to Complete

    Hi 
    Using SPD i am creating list workflow.
    Scenario: Employee submits a request . Task assign to manager. Manager can either approve/ reject. If approve then change the state column to "done". If rejected the state column to "Rejected".
    Problem is "Assign a to do item" is assigning the task to manager. But after manager approves the status in the task list not changed to "Completed". Still it is showing "Not started". I dont want to manually complete the task.
    Please help me for automatic process. 
    What i should do to change the status to "Complete" automatically after manager approval
    Regards
    Jhanani
    Janani.R

    Hi Janani,
    From your description, you would like to create an approval workflow for a list. When an employee submit a request to the list, an approval task should be assigned to manager, then manager could approve or reject the request. From the request list,
    we should be able to see the Approval task’s status.
    Not understand the reason of designing the workflow to two steps, an approval action should be enough from my understanding. For producing, I create a list named Request list, then customize it in InfoPath form to add a Request field for stating request
    content. Then add a workflow to list named Approval task, add the action of Start an approval process with administrator and make the workflow automatically start when item is added.
    The image below shows the status of Adding items, Approving and Rejecting. Please check if it could meet your requirement.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Can workflow task lists integrate into the Timeline webpart in SP '13?

    Hey all!
    Can a Workflow Task List be added to the Timeline web part?
    Thanks,
    TD

    Hi Timothy,
    If you want to integrate task list in time line web part, you can set the datasource property in the web part.
    Here are some detailed articles for your reference:
    http://sharepoint.rackspace.com/task-lists-in-sharepoint-2013
    http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/07/09/how-to-use-the-timeline-web-part-in-sharepoint-2013.aspx
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Workflow task list is missing or damaged. SharePoint 2010

    SharePOint 2010 Enterprise
    Customer created workflows for the annual review of our QPC Emergency Plan.
    The document library  shows that there is a EP_Review workflow “In Progress” for each section.   However if you click into the “In Progress” link to see the actual progress of the workflow it shows no Visio diagram, it’s just a blank white
    space (not even an error message) and under the Tasks section it gives the message:
      "The workflow task list is missing or damaged.  Please contact your administrator for more information"
    I looked in the Task List and there are no tasks showing, which normally does show when we kick off a workflow. 
    I ran a report on the EP_Review workflow for Cancellations and Error messages and the system comes back with the following error message:  "Report contains no Data"
    Log says:
    3/05/2014 11:58:08.67  w3wp.exe (SLSPW02:0x8DC0)                0x8418 SharePoint Foundation          Monitoring                   
     nasq Medium Entering monitored scope (Request (POST:http://strspdept:80/sites/Compliance/EmergencyPlan/_layouts/CustomizeReport.aspx?ReportId=05c9fc6e-b5bd-44c6-9b22-48d33f3b719a&AssociationId=1585f93e-968f-4008-9d41-28e4d03b03b9&Category=Workflow&List=4cb06049%2Dbe01%2D4e76%2D9e78%2D3faa95c4f06c)) 
    03/05/2014 11:58:08.67  w3wp.exe (SLSPW02:0x8DC0)                0x8418 SharePoint Foundation          Logging Correlation Data     
     xmnv Medium Name=Request (POST:http://strspdept:80/sites/Compliance/EmergencyPlan/_layouts/CustomizeReport.aspx?ReportId=05c9fc6e-b5bd-44c6-9b22-48d33f3b719a&AssociationId=1585f93e-968f-4008-9d41-28e4d03b03b9&Category=Workflow&List=4cb06049%2Dbe01%2D4e76%2D9e78%2D3faa95c4f06c) eaeae4dc-25b7-479e-bc20-dd98b6fcd778
    03/05/2014 11:58:08.67  w3wp.exe (SLSPW02:0x8DC0)                0x8418 SharePoint Foundation          Logging Correlation Data     
     xmnv Medium Site=/sites/Compliance eaeae4dc-25b7-479e-bc20-dd98b6fcd778
    03/05/2014 11:58:08.70  w3wp.exe (SLSPW02:0x8DC0)                0x8418 Document Management Server     Document Management          
     52od Medium MetadataNavigationContext Page_InitComplete: No XsltListViewWebPart was found on this page[/_layouts/CustomizeReport.aspx?ReportId=05c9fc6e-b5bd-44c6-9b22-48d33f3b719a&AssociationId=1585f93e-968f-4008-9d41-28e4d03b03b9&Category=Workflow&List=4cb06049%2Dbe01%2D4e76%2D9e78%2D3faa95c4f06c]. 
    Hiding key filters and downgrading tree functionality to legacy ListViewWebPart(v3) level for this list. eaeae4dc-25b7-479e-bc20-dd98b6fcd778
    03/05/2014 11:58:08.75  w3wp.exe (SLSPW02:0x8DC0)                0x8418 SharePoint Foundation          Monitoring                   
     b4ly High Leaving Monitored Scope (EnsureListItemsData). Execution Time=32.1239873194787 eaeae4dc-25b7-479e-bc20-dd98b6fcd778
    03/05/2014 11:58:08.78  w3wp.exe (SLSPW02:0x8DC0)                0x8418 SharePoint Server              OpenXml                      
     0000 Medium OfficePackageLibrary::OpenPackage(app=3, path=C:\Users\TEMP\AppData\Local\Temp\tmpBAE2.tmp, fcm=3) eaeae4dc-25b7-479e-bc20-dd98b6fcd778
    03/05/2014 11:58:08.80  w3wp.exe (SLSPW02:0x8DC0)                0x8418 SharePoint Foundation          Monitoring                   
     b4ly High Leaving Monitored Scope (EnsureListItemsData#2). Execution Time=10.6167606926937 eaeae4dc-25b7-479e-bc20-dd98b6fcd778
    03/05/2014 11:58:08.80  w3wp.exe (SLSPW02:0x8DC0)                0x8418 SharePoint Foundation          Runtime                      
     tkau Unexpected Microsoft.Office.RecordsManagement.Reporting.ReportEmptyException: Report contains no data.    at Microsoft.Office.RecordsManagement.Reporting.ApplicationPages.CustomizeReport.OKBtn_Click(Object sender, EventArgs
    e)     at System.Web.UI.WebControls.Button.OnClick(EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
    sourceControl, String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) eaeae4dc-25b7-479e-bc20-dd98b6fcd778
    03/05/2014 11:58:08.80  w3wp.exe (SLSPW02:0x8DC0)                0x8418 SharePoint Foundation          Monitoring                   
     b4ly Medium Leaving Monitored Scope (Request (POST:http://strspdept:80/sites/Compliance/EmergencyPlan/_layouts/CustomizeReport.aspx?ReportId=05c9fc6e-b5bd-44c6-9b22-48d33f3b719a&AssociationId=1585f93e-968f-4008-9d41-28e4d03b03b9&Category=Workflow&List=4cb06049%2Dbe01%2D4e76%2D9e78%2D3faa95c4f06c)).
    Execution Time=131.764628890724 eaeae4dc-25b7-479e-bc20-dd98b6fcd778
    03/05/2014 11:58:09.05  w3wp.exe (SLSPA02:0x1CD4)                0x1F68 SharePoint Foundation          Topology                     
     e5mb Medium WcfReceiveRequest: LocalAddress: 'http://slspa02.corp.questar.com:32843/5d041280466646db9f816a170ae8f6b8/MetadataWebService.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges'
    MessageId: 'urn:uuid:8f54c63f-a3d4-4180-b9be-2eefe9ff3495' 01f77dd7-96fb-4f20-b72a-cd736a3354bf
    03/05/2014 11:58:09.05  w3wp.exe (SLSPA02:0x1CD4)                0x1F68 SharePoint Foundation          Monitoring                   
     nasq Medium Entering monitored scope (ExecuteWcfServerOperation) 01f77dd7-96fb-4f20-b72a-cd736a3354bf
    03/05/2014 11:58:09.05  w3wp.exe (SLSPA02:0x1CD4)
    Any Ideas how I can figure out how to resolve this?
    Thanks for any input

    Hi mikeatquestar,
    it seems you may need to check if should the task able to create at your environement,
    you may try this at your development environment first:
    Saved a task list as a template from a working site collection and moved the template to the problem site collection. Used this template to create a new list, and associated this list to the Workflows task list.
    http://office.microsoft.com/en-us/windows-sharepoint-services-help/manage-list-templates-HA010099156.aspx#BMcreate
    http://office.microsoft.com/en-us/sharepoint-server-help/copy-or-move-a-list-by-using-a-list-template-HA101782479.aspx
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Related Item link is broken in DispForm.aspx for a task in Workflow Tasks list if file name contains " ' " (single quote)

    Description:
    We have created a custom workflow in Microsoft Visual Studio 2013 and SharePoint 2013. This Workflow is associated with a Document library.
    This Workflow starts as soon as any new item is created OR updated in Document library and creates a Task in Workflow Tasks list.
     Related Item link is not working in following scenario -
    Upload a file that contains “ ' “
    in its name, in a document library
    Navigate to Workflow Tasks list
    Open View Item form (DispForm.aspx ) of  Task Created by workflow then click on link in Related Item fields
    OUPUT:
    Related Item link  truncates after “ ' “
    Eg.
    Original Link: http://<Site URL>/Documents/te'st.txt
    Related Item Field: http://<Site URL>/Documents/te
    Is this known bug in SharePoint 2013 OR any hotfix available to fix it.

    Hi,
    As I tested per your description, I can reproduce the issue as well.
    From what I have found out, it seems SharePoint resolve single quote into different code in different place. During the test, if I set Task Name to Document Name, single quote will be resolved to &#39; , if I set some field to Document encoded URL, single
    quote will be resolved to %27 . For now, I haven't found out any article talking about this issue.
    As workaround, we may find out a way to change the Related Item field. However, it is OOB field in workflow task (SharePoint 2013) content type, and this content type cannot be modified in form.
    I'd suggest you add new column to get document url and place in the form in Task content type settings.
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Workflow 2013 Breaking Role Inheritance On Workflow Task list

    When breaking role inheritance on the out of the box Workflow Task List (2013), a custom workflow is suspended when assigning a task
    (System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. ).
    As soon as task list is inheriting permissions again, the workflow is able to assign tasks. (Similar issue: http://social.msdn.microsoft.com/Forums/en-US/8c60da76-8299-436c-8528-802fa5a594c3/2013-workflow-with-unique-permissions-on-task-list-ends-up-suspended).
    I have not found a solution to this issue so far.

    Same problem. Any solution found?
    in2brain

  • Details: System.ArgumentException: AssignedTo at Microsoft.Activities.Hosting.Runtime.Subroutine,sharepoint 2013 designer workflow task cancellation

    We are getting sharepoint 2013 designer workflow task cancellation only for a specific sharepoint user. Its working for other users.
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi Amit,
    Based on the error message, I recommend to check if the user with issue has user profile generated in User Profile Service Application.
    Please also check the ULS log for detailed error message and a screenshot of the workflow steps for further research.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Workflow Tasks NOT expiring!

    Hi guys,
    I've bumped lately with an issue building a workflow on SP2010, as you mostly already have figured out from the title, workflow tasks are NOT expiring.
    I've tried to take this on my own, but no more as I have to move on. Here's the details;
    -a custom workflow (attached to a custom list) that has start custom task as its first action.
    -due date for custom task is set in "select task process participants", Due Date for Task Process. and is set to run parallel (I have one participant for the task).
    -the custom task have only the "behavior of a single task" configured, all task workflow steps are there.
    When a Task is Pending fires well, and it ends with Pause for 2 minutes > then send email. then task due date reaches but
    When a Task Expires never kicks! tasks simply stays at status "Not Started"
    when I check the workflow history, it shows the last log "pausing completed", but I suspect the main issue is with the task processor, task isn't expiring and im not sure where to look.
    timer job service is working, I've checked timer jobs (workflow auto cleanup, workflow failover and bulk workflow task processing) and they're all running in timely fashion now.
    any thoughts?
    thanks
    If a reply helps you Vote As Helpful, if a reply solves your problem don't forget to Mark As Answer. Aabed Yassine.

    hi Victoria,
    running the above code in a PS1 file throws:
    The term 'http://portal.xx' is not recognized as the name of a cmdlet,
    function, script file, or operable program. Check the spelling of the name, or
    if a path was included, verify that the path is correct and try again.
    At C:\Users\spadmin\Desktop\Get-TimeZone.ps1:2 char:70
    + $site=new-object Microsoft.SharePoint.SPSite(portal.xx<<<< );
        + CategoryInfo          : ObjectNotFound: (portal.xx:String
       ) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    Get-SPServiceContext : Cannot bind argument to parameter 'Site' because it is n
    ull.
    At C:\Users\admin\Desktop\Get-TimeZone.ps1:3 char:39
    + $serviceContext = Get-SPServiceContext <<<<  $site;
        + CategoryInfo          : InvalidData: (:) [Get-SPServiceContext], Paramet
       erBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M
       icrosoft.SharePoint.PowerShell.SPCmdletGetServiceContext
    You cannot call a method on a null-valued expression.
    At C:\Users\admin\Desktop\Get-TimeZone.ps1:4 char:14
    + $site.Dispose <<<< ();
        + CategoryInfo          : InvalidOperation: (Dispose:String) [], RuntimeEx
       ception
        + FullyQualifiedErrorId : InvokeMethodOnNull
    New-Object : Exception calling ".ctor" with "0" argument(s): "Value cannot be n
    ull.
    Parameter name: serviceContext"
    At C:\Users\admin\Desktop\Get-TimeZone.ps1:5 char:18
    + $upm = new-object <<<<  Microsoft.Office.Server.UserProfiles.UserProfileManag
    er($serviceContext);
        + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvoca
       tionException
        + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.Power
       Shell.Commands.NewObjectCommand
    i'm not sure what are the variables in this code, I've change the site collection URL and domain\user. anything else I should edit?
    If a reply helps you Vote As Helpful, if a reply solves your problem Mark As Answer. Its made to make it helpful for others seeking help.

  • Task details in BPM worklist on SOA 11g could not retrieved.Experts plz adv

    Hi,
    This is regarding issues when I click on the Task details on the BPM worklist 11G. I am invoking a BPEL process using custom JSP and from the custom JSP form values are
    sent to BPEL and from BPEL i am invoking the Human workflow.
    Tech used: BPEL 11.1.1.2, RCU 11.1.1.2.1, WLS 10.3.2 and DB 10.2.0.4
    I am using one jsp named "myFlow.jsp" to call the BPEL process and i can able to get the Task in worklist but i click on "Task details" , i am getting "404 error".
    Note: There was no errors when i tried with ADF autogenerated form. I can able to approve, reassign and do all operations.
    I got one soultion for that, i mean i have to create another custom jsp(taskDetails.jsp) to fetch the values based on the Task Id and finally i have to give that URI in EM to fetch the details.Today i created that also but i dont know how to give the URI IN EM for the task details jsp. I am refering soa developes guide also to get the API's.
    My Ref: http://sqltech.cl/doc/oas11gR1/integration.1111/e10224/bp_worklistcust.htm
    http://docs.tpu.ru/docs/oracle/en/owl/E14571_01/integration.1111/e10224/bp_designtf.htm
    1. myFlow.jsp used - To initiate the BPEL to create a Task in worklist.(By mistake i gave this URI in EM and i am getting the same request page in the task details). Now i created another jsp which queries the task details based on the Task ID. i dont know how to give the URI in EM for this Jsp.
    2.taskDetails.jsp - Used to retrive the task details based on thr Task id.
    Both Jsp's are displayed below. Please advise how to fetch the task details.
    worklist API provided by oracle is used to fetch only the metadata on the Task details but i have to get all the form values also in the task details that has been submitted
    by my Jsp(myFlow.jsp)
    Both are shown below,
    *1. myFlow.jsp*
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%--
    <%@page import="com.oracle.bpel.client.Locator" %>
    <%@page import="com.oracle.bpel.client.NormalizedMessage" %>
    <%@page import="com.oracle.bpel.client.dispatch.IDeliveryService" %>
    --%>
    <%@page import="oracle.fabric.common.NormalizedMessage" %>
    <%@page import="oracle.fabric.common.NormalizedMessageImpl" %>
    <%@page import="oracle.soa.management.facade.Locator" %>
    <%@page import="oracle.soa.management.facade.LocatorFactory" %>
    <%@page import="oracle.soa.management.facade.Composite" %>
    <%@page import="oracle.soa.management.facade.Service" %>
    <%@page import="oracle.soa.management.facade.CompositeInstance" %>
    <%@page import="oracle.soa.management.facade.ComponentInstance" %>
    <%@page import="oracle.soa.management.util.CompositeInstanceFilter" %>
    <%@page import="oracle.soa.management.util.ComponentInstanceFilter" %>
    <%@page import="java.util.Hashtable" %>
    <%@page import="java.util.UUID" %>
    <%@page import="java.util.List" %>
    <%@page import="java.util.Map" %>
    <%@page import="javax.xml.transform.*" %>
    <%@page import="javax.xml.transform.dom.*" %>
    <%@page import="javax.xml.transform.stream.*" %>
    <%@page import="javax.naming.Context" %>
    <%@page import="org.w3c.dom.Element" %>
    <%@page import="java.io.*" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <title>myFlow</title>
    </head>
    <body>
    <%
    String ssn = request.getParameter("Name");
    if (ssn == null)
    %>
    <h3>Invoke BPEL Application</h3>
    <h4>NYC Application Form</h4>
    <form>
    <table>
    <tr>
    <td>NAME:</td>
    <td><input type="text" name="Name"></td>
    </tr>
    <tr>
    <td>NRIC Number:</td>
    <td><input type="text" name="NRIC" value="12345678"></td>
    </tr>
    <tr>
    <td>Gender:</td>
    <td><input type="text" name="Gender" value="Male"></td>
    </tr>
    <tr>
    <td>Race:</td>
    <td><input type="text" name="Race" value="Indian"></td>
    </tr>
    <tr>
    <td>Occupation:</td>
    <td><input type="text" name="Occupation" value="IT"></td>
    </tr>
    </table>
    <input type="submit" value="Submit">
    </form>
    <%
    else
    String Name = request.getParameter("Name");
    String NRIC = request.getParameter("NRIC");
    String Gender = request.getParameter("Gender");
    String Race = request.getParameter("Race");
    String Occupation = request.getParameter("Occupation");
    // 3. Initiate the BPEL process here
    //Locator locator = new Locator("default","bpel");
    //IDeliveryService deliveryService = (IDeliveryService) locator.lookupService(IDeliveryService.SERVICE_NAME );
    // Construct a normalized message and send to Oracle BPEL Process Manager
    //NormalizedMessage nm = new NormalizedMessage();
    // nm.addPart("payload", xml);
    // Initiate the BPEL process
    // deliveryService.post("myFlow", "initiate", nm);
    try {  
    Hashtable jndiProps = new Hashtable();
    jndiProps.put(Context.PROVIDER_URL, "t3://172.16.16.202:8001/soa-infra");
    jndiProps.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    jndiProps.put(Context.SECURITY_PRINCIPAL, "weblogic");
    jndiProps.put(Context.SECURITY_CREDENTIALS, "weblogic1");
    jndiProps.put("dedicated.connection", "true");
    out.println("====Got Values======" + jndiProps.get(Context.PROVIDER_URL));
    String inputPay = "<nycproject xmlns=\"http://xmlns.oracle.com/NycDesignApps_jws/NycDesignComp/NycDesignProcess\">\n"
    + "<Name>" + Name + "</Name>\n"
    + "<NRIC>" + NRIC + "</NRIC>\n"
    + "<Gender>" + Gender + "</Gender>\n"
    + "<Race>" + Race + "</Race>\n"
    + "<Occupation>" + Occupation + "</Occupation>\n"
    + "</nycproject>\n";
    Locator locator = null;
    //http://xmlns.oracle.com/TestDesignApp_jws/TestDesignComp/TestProcess
    //http://xmlns.oracle.com/NycDesignApps_jws/NycDesignComp/NycDesignProcess
    // connect to the soa server
    locator = LocatorFactory.createLocator(jndiProps);
    out.println("Connected after Locator - Available domains==>>" +locator.getDomains());
    // find composite
    String compositeDN = "default/NycDesignComp!1.0";
    Composite composite = locator.lookupComposite("default/NycDesignComp!1.0");
    out.println("Got Composite : "+ composite.toString());
    //out.println("Got Composite : "+ composite.getCompositeDN().toString());
    // find exposed service of the composite
    Service service = composite.getService("nycdesignprocess_client_ep2");
    out.println("Got serviceName : "+ service.toString());
    NormalizedMessage input = new NormalizedMessageImpl();
    //String uuid = "uuid:" + UUID.randomUUID();
    //input.addProperty(NormalizedMessage.PROPERTY_CONVERSATION_ID,uuid);
    input.getPayload().put("project", inputPay);
    Map payload = input.getPayload();
    out.println("Payload : "+ payload);
    out.println("input : "+ input);
    // process is the operation of the employee service
    //NormalizedMessage res = null;
    //NormalizedMessage input1 =null;
    try { 
    //res = service.request("process",input);
    //input1=service.request("process", input);
    service.post("process", input);
    } catch(Exception e) { 
    e.printStackTrace();
    out.println("Inside Catch1" + e.getMessage());
    //service.post(arg0, arg1);
    }catch(Exception e) {
    out.println("Inside Catch2" + e.getMessage());
    e.printStackTrace();
    %>
    </body>
    </html>
    *2.taskDetails.jsp*
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=EUC-KR"%>
    <%@page import="java.util.*" %>
    <%-- <%@ page import="com.oracle.jay.WorklistClient"%> --%>
    <%@page import="oracle.bpel.services.workflow.client.IWorkflowServiceClientConstants" %>
    <%@page import="oracle.bpel.services.workflow.client.IWorkflowServiceClient" %>
    <%@page import="oracle.bpel.services.workflow.verification.IWorkflowContext" %>
    <%@page import="oracle.bpel.services.workflow.client.WorkflowServiceClientFactory" %>
    <%@page import="oracle.bpel.services.workflow.query.ITaskQueryService" %>
    <%@page import="oracle.bpel.services.workflow.task.model.Task" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=EUC-KR"/>
    <title>TaskDetailsTest</title>
    </head>
    <body>
    <%
    String bpmWorklistTaskId = request.getParameter("bpmWorklistTaskId");
    String bpmWorklistContext = request.getParameter("bpmWorklistContext");
    Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String>
    properties = new HashMap<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String>();
    properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.MODE, IWorkflowServiceClientConstants.MODE_DYNAMIC);
    properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_PROVIDER_URL, "t3://172.16.16.202:8001");
    properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_CREDENTIALS, "weblogic1");
    properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_PRINCIPAL, "weblogic");
    IWorkflowServiceClient client = WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT, properties, null);
    IWorkflowServiceClient wfSvcClient =
    WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.SOAP_CLIENT, properties, null);
    //IWorkflowServiceClient wfSvcClient = WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.JAVA_CLIENT);
    IWorkflowContext ctx = null;
    ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
    ctx = querySvc.getWorkflowContext(bpmWorklistContext);
    Task humanTask = querySvc.getTaskDetailsById(ctx, bpmWorklistTaskId);
    out.println("<br>Task Number: " + humanTask.getSystemAttributes().getTaskNumber());
    out.println("<br>Task Id: " + humanTask.getSystemAttributes().getTaskId());
    out.println("<br>Title: " + humanTask.getTitle());
    out.println("<br>Priority: " + humanTask.getPriority());
    out.println("<br>State: " + humanTask.getSystemAttributes().getState());
    out.println("<br>Assignees: " + humanTask.getSystemAttributes().getAssignees());
    out.println("<br>AcquiredBy: " + humanTask.getSystemAttributes().getAcquiredBy());
    out.println("<br>Updated Date: " + humanTask.getSystemAttributes().getUpdatedDate());
    out.println("<br>Assigned Date: " + humanTask.getSystemAttributes().getAssignedDate());
    out.println("<br>Created Date: " + humanTask.getSystemAttributes().getCreatedDate());
    out.println("<br>Updated By: " + humanTask.getSystemAttributes().getUpdatedBy());
    out.println();
    %>
    </body>
    </html>
    Please Advise
    Kind Regards,
    -Bharathi

    It's too late but if someone need the answer..
    You can set if the outcome requires comments in General section of the Human Task.

  • Role Assignment to Workflow Tasks

    Hi Experts,
    Any hints on below requirement please :
    Details:
    1. For a role in transaction PFCG, I don't see the Workflow tab
    2. For the same role in transaction SUIM, I can see the Workflow tab and the tasks assigned.
    3. Now, I have a list of workflow tasks and I need to assign Role X, Role Y to all of them
    What is the correct and best way out to do this
    - Role-Task Assignment ::: Is it enough if I add all the workflow tasks in SUIM transaction(workflow tab) for both roles X,Y
    or
    - Task-Role Assignment ::: Can I assign both Roles X,Y in pftc transaction for each of the workflow tasks
    or
    - Both need to be done
    Thanks in advance ...
    ~Ali~

    Hi Ali,
    Answers for your questions:
    1. Transfer Missing Elements: YES
         With this step, new elements will create in the task container based on the method container elements and creates the binding b/w them. It is better to choose YES and after that, if you dont require the binding, you can delete it for respective elements.
    2. YES, we need to follow the same procedure.
    3. Basically production system is having the mandatory configurations like RFC destinations and Classify tasks are general, probably no other activities are required.
    4. For this, I am also waiting for other folks reply.
    Regards,
    Murali Krishna.

  • Stadard FM OR Any WorkFLOW TASK FOR Teigger a Mail

    Hi All
    Pls can any one help me which FM OR Standard Workflow Task is there for trigger a mail .
    Thanks in ADV .
    Rgds

    Hi,
    U can use the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' for sending the list to a mail id configured to outlook
    Have a look at the links below. will get detailed information;
    SEND EMAIL FROM SAP
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    Check these link..
    Cofiguration:
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    Sample Code:
    http://www.sap-img.com/abap/sending-email-with-attachment.htm
    Reward points if this Helps

  • How to set a custom column in a workflow task.

    Hello,
    I'm looking for some assistance a bit with how to set a custom column in a Workflow Task.
    I have a List Workflow that starts when an item is created in a list. The workflow, platform type SharePoint 2013, starts a new task, Task1, with Content Type 1. This Content Type has a custom column called Age. Once the Task1 is completed a new task, Task2,
    with Content Type 2, starts and has the same column Age, as Task1.
    How can I populate the Age column in Task2 with the content of the Age column in Task1?
    Since I start the task by running "Assign a task to ..." Action I was thinking to copy the Age column from the Task1 to the list item that started Task1, which has a column Age as well, and then in Task2 to start another workflow - which is associated
    with the Content Type 2,  that would try to read the Age column from the list item that started Task2, which was set once Task1 was competed - I know it's complex but this is how I was thinking. 
    The problem with this approach is that I can't get a reference to the list item that started Task2 to read the Age from the list item.
    Is there a better approach? I use SharePoint Designer 2013 to design all this.
    Any assistance is appreciated.
    Thank you.

    Hello Sebastian,
    you can get the Age column from Task 1 and then update the Task 2 Age column with that value. I am not sure why you want to run another workflow on Task 2.
    You can perform below steps to set Age column from Task 1 to Task 2.
    1.  Create Task 1 using Assign a task , wait till the task is completed.
    2. Get the Age column value based on Task 1 once the task is completed.
    3.Create Task 2 using Assign a task ,  uncheck wait till the task is completed option.
    4. Update the Task 2 with Age column in Task1.
    5. Use Wait for the field to equal value , check for Task Status is completed or not.
    >>The problem with this approach is that I can't get a reference to the list item that started Task2 to read the Age from the list item.
    you can get the related item from task list item to get the main list item.
    Other option is, Use Javascript and CSOM  in task edit form to get the Age column from Task1 and prepoluate the Age value when Task2 is opened.
    Hope this helps.
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • SharePoint 2013 workflow task gets canceled

    Just wanted to share my solution to a problem that I was having when creating a SharePoint 2013 Workflow that includes creating a task and assigning it to a group of people. After publishing the workflow and initiating it you get:
    Retrying last request. Next attempt scheduled in less than one minute.
    Microsoft.SharePoint.Client.ResourceNotFoundException: Cannot find resource for the request sp.utilities.utility.ExpandGroupsToPrincipals
    An unhandled exception occurred during the execution of the workflow instance.
      Exception details: System.ApplicationException: HTTP 404 {"error":{"code":"-1, Microsoft.SharePoint.Client.ResourceNotFoundException",
      "message":{"lang":"en-US","value":"Cannot find resource for the request sp.utilities.utility.ExpandGroupsToPrincipals."},
      "innererror":{"message":"Cannot find resource for the request sp.utilities.utility.ExpandGroupsToPrincipals.",
      "type":"Microsoft.SharePoint.Client.ResourceNotFoundException","stacktrace":" at
      Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPathRoot(Boolean mainRequestPath, EdmParserNode node, Boolean resourceEndpoint, MethodInformation& methodInfo)\u000d\u000a at
      Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPath(Boolean mainRequestPath, String path, String pathForErrorMessage)\u000d\u000a at
      Microsoft.SharePoint.Client.Rest.RestRequestProcessor.Process()\u000d\u000a at
      Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ProcessRequest()\u000d\u000a at
      Microsoft.SharePoint.Client.Rest.RestService.ProcessQuery(Stream inputStream, IList`1 pendingDisposableContainer)"}}
      } {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["46"]
      ,"SPRequestGuid":["624f66f8-a70c-81db-bf0d-c042443f5435"],"request-id":["624f66f8-a70c-81db-bf0d-c042443f5435"],
      "X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4569"],"X-Content-Type-Options":["nosniff"],
      "X-MS-InvokeApp":["1; RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Mon, 06 Apr 2015 22:17:23 GMT"],
      "Server":["Microsoft-IIS\/8.0"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]} at
      Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at
       System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at
       System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    I was not able to find any answer anywhere, so my solution was:
    1. Simply upgrade SharePoint Server 2013 to the latest version which in turn updates Microsoft.Activities.Proxy.dll
    2. Clear the SharePoint Designer cache
      Workflow Error - Sharepoint Designer cannot display the item
      http://community.office365.com/en-us/f/154/t/74327.aspx
    I hope this is helpful to somebody
    Thanks

    Hi Amit,
    According to your description, my understanding is that you want to approve workflow task using web service in SharePoint 2013.
    For troubleshooting this issue, please provide the more detailed code.
    Here are some similar posts, please check if they are useful:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/b999a417-dce3-4590-9173-89aea91f23a3/complete-workflow-after-approving-all-tasks?forum=sharepointdevelopment
    http://www.sharepointblog.in/2013/07/programmatically-approvereject-task-in.html
    http://aarebrot.net/blog/2011/10/how-sloppiness-and-spworkflowtask-altertask-could-inadvertantly-lock-your-workflow-task/
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • K9N Platinum NCQ Support

    Does K9N Platinum support NCQ hard drives? I plan to buy a hard drive with NSQ support and wanted to know.

  • Import xml file from server to itab

    Hi all, I have a little issue loading data from xml file in server into my itab. With my file in local (C:\example\example.xml) works fine, but if try this with the same file in the server (e:\example\example.xml) dont work. This is my code resume. T

  • Help Setup wireless trackpad and keyboard

    I have a new straight out of the box Mac mini, wireless keyboard and wireless trackpad.  How can I set these up?  I can use the trackpad to move around on the screen, but I cannot seem to click.  I can't figure out what the icons means.   All advise

  • I dropped my phone is water. How do I get it to work again?

    So I dropped my phone in water and I quickly took it out. And it still works, but the speakers are broken on it. How do I get them to work?

  • Imessage not functioning with restrictions 'on'

    I just updated my iphone 4 to OS5. I activated imessage but when I turn restrictions 'on' imessage reverts to 'off' The restrictions that I have are : Facetime and Ping are 'off' and location and accounts are set to 'no change'. I can't see any logic