Human Task - content access policies + ITaskMetadataService

In SOA Suite 11gR1 you can specify fine grained access controls on the content of a human task (payload data specifically).
How does one go about accessing these privileges within the human task form (.jspx) in order to conditionally disable/hide form fields in the payload based on the declared access rules?
The documentation mentions getTaskVisibilityRules method of ITaskMetadataService, but no sample code is given. I'm trying to create a JSF managed bean I can expose to EL expressions on the .jspx and make use of this data, but it's failing with exceptions.
My code looks like this (excuse the formatting):
IWorkflowServiceClient wfSvcClient = WorkflowService.getWorkflowServiceClient();
ITaskQueryService queryService = wfSvcClient.getTaskQueryService();
ITaskMetadataService metaService = wfSvcClient.getTaskMetadataService();
IWorkflowContext wfContext; = queryService.getWorkflowContext(contextStr);
//Next line throws java.io.NotSerializableException for oracle.bpel.services.workflow.metadata.impl.Privilege
Map<String,IPrivilege> privs = metaService.getTaskVisibilityRules(wfContext, taskID);

Anyone?
This is what I'm referring to in the documentation:
http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/bp_hwfmodel.htm#BABCIIGF
The section is "25.3.10.8.1 Introduction to Access Rules"

Similar Messages

  • Workflow API: adding and accessing file Attachments to a Human Task

    Hi there,
    I am using the Workflow Services Java API (11.1.1) for SOA Suite to access and manipulate human tasks. I would like to be able to access and add file attachments to existing human tasks. I am using the methods provided in the AttachmentType interface.
    When adding an attachment, the problem I am running into is that an attachment does created and associated with the task, however it is empty and has no content. I have attempted both setting the input stream of the attachment, as well as the content string and in each case have had no success.
    I have successfully added and accessed an attachment using the worklist application, however when trying to access the content of this attachment through code I receive an object with mostly null/0 values throughout, apart from the attachment name.
    As the API's are not overly rich in documentation I may well be using them incorrectly. I would really appreciate any help/suggestions/alternatives in dealing with BPEL task attachments.
    Thanks
    The code I am using resembles:
    List attachments = taskWithAttachments.getAttachment();
    for(Object o : attachments){
    AttachmentType a = (AttachmentType) o;
    String content = a.getContent(); +// NULL+
    InputStream str = a.getInputStream(); +// NULL+
    String name = a.getName(); +// Has the attachment name+
    String mime = a.getMimeType(); +// Has the mime type+
    long size = a.getSize(); +// 0+
    Edited by: 855489 on May 2, 2011 4:23 PM
    Edited by: 855489 on May 2, 2011 8:48 PM

    I am also facing the same issue, using 11.1.1.6, anyone managed to solve this?
    Regards
    Venkat

  • Not able to access human task form (11.1.1.4)

    I installed SOA Suite with BPM Suite 11.1.1.4. I ran into quite a few issues. The biggest one is I am not able to access the human task form in BPM workspace even for the new application created in 11.1.14.
    Do you have such issue? I am not sure if it is a bug or is related to my specific installation. I followed the document “Quick Start Guide for Oracle® SOA Suite 11gR1 (11.1.1.4.0) Version 1.6” for the installation. The only difference is that I installed the generic version of WebLogic and JDev and configured them to use JDK 64-bit version since my OS is windows 7 (64-bit). Before, I had installed 11.1.1.3 with 64-bit and it was working fine. The only tool installed with 32-bit is the JDev 11.1.1.3. Since JDev 11.1.1.4 is supporting 64-bit, I installed everything with 64-bit for this time.
    The details of the error are the following:
    With JDev 11.1.1.4, I created a new application which has a simple BPM process with 3 flow objects: start event-user activity-end event. The human task has the auto-generated task form. I deployed the application to the SOA server.
    When testing the application, the task was created and listed in the BPM workspace. But when I clicked the task link to open the task form, the web page was hanging. I noticed the following log was REPEATED again and again in the access.log:
    140.98.125.168 - - [20/Apr/2011:10:28:08 -0400] "GET /workflow/TestpsUI/faces/adf.task-flow?bpmWorklistTaskId=2a5b4ad1-823f-4615-8a7e-c5449a7be814&bpmWorklistContext=12aa4934-991a-487c-b7f3-5159808c399a%3B%3BtbcZXSd1E1LVZv8OIaLZGd21meLUMNkYSMsmz60kNKoEaJ1N53wy3zyRYA%2BunyKF9UNi50fPHKtaXY6IqKbh%2Fu68WebTan3zCwGsUNmNMaw8aLEygS5qb2cOGx2qGal86F%2FgiRka874PYLXhohFdDPCQyoxre2p7IgpsloLHq2rh7T3zWGnyOjLdC7Qw0Geb20Kfp8XA2UUIoxaxTHS6YFPQqqs%2FzIkyEsgMNQJMDbYYGdceRL2sT8rMkBXpmQ0r&bpmWorklistHttpURL=http%3A%2F%2Flocalhost%3A7001%2Fbpm%2Fworkspace%2Ffaces&bpmWorklistHome=home.jspx&bpmWorklistReassign=reassignTask.jspx&bpmWorklistRoute=routeTask.jspx&bpmWorklistRequestInfo=requestInfo.jspx&bpmWorklistSecurity=signTask.jspx&tz=America%2FNew_York&lg=en&cy=US&vr=&dispNameLg=en&dispNameCy=US&dispNameVr=&df=medium&dt=both&tf=short&bpmWorklistSessionTimeoutInterval=900&soaUrl=http%3A%2F%2F140.98.125.168%3A7001&bpmBrowserWindowStatus=taskFlowReturn&adf.tfDoc=%2FWEB-INF%2FHumantask_TaskFlow.xml&adf.tfId=Humantask_TaskFlow&_task-flow-return=http%3A%2F%2Flocalhost%3A7001%2Fbpm%2Fworkspace%2Ffaces%2Fadf.task-flow-return%3F_adf.ctrl-state%3De1i6yi1gq_35&_adf.winId=e1i6yi1gq_26&_afrLoop=7156779026094&_afrWindowMode=0&_afrWindowId=null HTTP/1.1" 200 5478
    Please help if you know what is going on for the issue.
    Thanks a lot,
    Helen

    Go to OEM, select the SOA Composite application you deployed.
    Under Component Metrics … click the link of the Human Workflow Component that you have the issue
    The settings of the Human Workflow Component would be displayed
    Click the Administration tab, you will get the URI setting for the human task
    update the Host name etc. as you want and click "OK" then click "Apply"
    Please note: this is just a shortcut for my own dev-env. I have not got the time to figure out why this happens. It is sure not the right solution for the production if we have the issue in the prod-env, I think.

  • Accessing Human Task Payload from ADF Task Flow

    Hi
    Using jDeveloper 11g TP4 SOA...
    The scenario is this:
    1. We have created a Human Task which has parameters accountId and accountType in the payload.
    2. We have then created a Task Flow based on that human task.
    3. Inside the web folder with task flow we have *4 task display forms* (jspx pages).
    4. In the task flow we have the 4 pages and then a router
    5. Now we want the router to look in the payload of the human task and based on the accountType redirect to the correct task display form.
    Problem: We can't access the human task data control from the router in the task flow.
    Does anyone have some insigt into how we can read the accountType from the payload and then pick the correct task display form?

    Hi victor,
    i'm using a SOA(OSB) based task service, but i think that you have to use a "task service" (or something like this) to update your task
    this is my routine
    public Task updateTask(Task task) throws Exception {
    TaskServiceContextTaskBaseType taskUpd =
    new TaskServiceContextTaskBaseType();
    taskUpd.setWorkflowContext(getWorkFlowContext());
    taskUpd.setTask(task);
    return taskService.updateTask(taskUpd);
    where taskService is the port of my proxy.
    Hope this help

  • JAVA API of Oracle BPEL, to access the "Task Form"(JSP) of a human task.

    Hi,
    Are there any JAVA API of Oracle BPEL, to access the "Task Form"(JSP) of a human task, to render the task form inside the custom worklist application.
    Thanks,
    Naga

    I guess you mean accessing the task details and the payload from the java API.
    Refer the below blog it will provide you the details
    http://www.albinsblog.com/2012/05/update-human-task-payload-via-java-api.html
    Regards
    Albin I
    Edited by: Albin on Sep 19, 2012 11:24 PM

  • 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

  • How to get the contents of more than one comments of human task?

    The human task have more than one comments. I use the following functions to get the contents but still only get the first comment. Append function only returns the first comment.
    How to get all conents of comments?
    <while name="While_1"
    condition="bpws:getVariableData('Variable_int_i')&lt;number(bpws:getVariableData('Variable_comment_node'))">
    <sequence name="Sequence_3">
    <sequence name="Sequence_3">
    <assign name="Assign_7">
    <copy>
    <from expression="string(bpws:getVariableData('single_approve_1_globalVariable','payload','/task:task/task:userComment/task:comment'))"/>
    <to variable="Variable_comment_string"/>
    </copy>
    </assign>
    <assign name="Assign_6">
    <copy>
    <from expression="bpws:getVariableData('Variable_int_i')+1"/>
    <to variable="Variable_int_i"/>
    </copy>
    </assign>
    </sequence>
    </sequence>
    </while>

    You also have to test the value:
    REPORT ztest MESSAGE-ID 00.
    DATA: BEGIN OF itab OCCURS 0,
            f1 TYPE i,
            f2 TYPE i,
            f3 TYPE i,
            f4 TYPE i,
          END OF itab.
    DATA: sel_field(20),
          value TYPE i.
    DO 5 TIMES.
      itab-f1 = sy-index.
      itab-f2 = sy-index + 10.
      itab-f3 = sy-index + 20.
      itab-f4 = sy-index + 30.
      APPEND itab.
    ENDDO.
    LOOP AT itab.
      WRITE: /001 itab-f1, itab-f2, itab-f3, itab-f4.
      HIDE itab.
      CLEAR itab.
    ENDLOOP.
    AT LINE-SELECTION.
      CLEAR: sel_field,
             value.
      GET CURSOR FIELD sel_field.
      IF sy-subrc = 0.
        CASE sel_field.
          WHEN 'ITAB-F1'.
            value = itab-f1.
          WHEN 'ITAB-F2'.
            value = itab-f2.
          WHEN 'ITAB-F3'.
            value = itab-f3.
          WHEN 'ITAB-F4'.
            value = itab-f4.
        ENDCASE.
        MESSAGE s001 WITH 'Value of' sel_field 'is' value.
      ELSE.
        MESSAGE s001 WITH 'Invalid field selected'.
      ENDIF.
    Rob

  • Accessing output variables from human task

    Hi,
    I added a human task in my process (jdev 10.1.3) and set up a parameter to be an input field in the jsp. However, I could not find a way to copy the value from this particular variable even though this parameter is a child of payload. Do I have to define the query manually or did I miss something?
    Thank you for advice,
    Mirco

    Ok, I crosschecked the examples and it seems, that there is indeed an example for what I am looking for. In the LoanPlusDemo there is a StarLoan process and that contains the following assignment following a human task:
    <sequence id="BpSeq3" >
    <assign id="BpAss4" >
    <copy>
    <from variable="LoanApproval_globalVariable" part="payload" query="/task:task/task:payload/auto:loan"/>
    <to variable="loan" query="/auto:loan"/>
    </copy>
    </assign>
    </sequence>
    Now considering the input structure:
    <task>
    <title>Loan application for</title>
    <payload>
         <loan>
         <loanApplication>
    <ns1:SSN>123222</ns1:SSN>
    <ns1:email>[email protected]</ns1:email>
    <ns1:customerName/>
    <ns1:loanAmount/>
    <ns1:carModel/>
    <ns1:carYear/>
    <ns1:creditRating/>
    </loanApplication>

         <loanOffer>
    <providerName>Star Loan</providerName>
    <selected>false</selected>
    <approved>false</approved>
    <APR>47</APR>
    </loanOffer>
    </loan>
    </payload>
    How do you know how exactly to create the copy rules? JDev does not support this, that much was answered before. I would absolutely appreciate if someone could
    1. Tell me something about the namespaces in the copy rules e.g. why is it /auto:loan and not just /loan?
    2. An example on how to create such things.
    One of the two might be sufficient.
    Thank you.
    Hinrich
    Message was edited by:
    punkrock77

  • Accessing Human Task output parameters

    Hi all.
    I have encountered a problem that I find to be
    quite irritating. I have already searched the
    forum, and read through the threads regarding
    this topic, but still haven't been able to solve
    the issue.
    I have a simple type String variable
    ({[http://www.w3org/2001/XMLSchema]}string)
    called "myName".
    First, I'm initializing this variable with the
    String "none":
    {color:#333333}&lt;assign name = "setVariable"&gt;
    &lt;copy&gt;
    &lt;from expression = "string('none')"/&gt;
    &lt;to variable = "myName"/&gt;
    &lt;/copy&gt;
    &lt;/assign&gt;{color}
    Next, I'm passing this variable as an argument
    to a Human Task called "provideName", that has an
    modifiable attribute called "userName":
    {color:#333333}&lt;copy&gt;
    &lt;from variable = "myName"/&gt;
    &lt;to variable = "initateTaskInput" part = "payload" query = "/taskservice:initiateTask/task:task/task:payload/task:userName"/&gt;
    &lt;/copy&gt;{color}
    Finally, right after the Human Tasks receive activity,
    I'm fetching the alleged modified value, and copy it
    back to my variable:
    {color:#333333}&lt;copy&gt;
    &lt;from variable = "provideName_1_globalVariable" part = "payload" query = "/task:task/task:payload/task:userName"/&gt;
    &lt;to variable = "myName"/&gt;
    &lt;/copy&gt;{color}
    After deploying and starting the process, I claim the task
    on the worklist interface, modify the text field next to the
    label "userName" from "none" to "Tim", select "APPROVE" and
    hit the "GO"-button. I get the "your request was processed
    successfully"-notice, and the flow is reported to have
    completed, BUT: looking at the Audit Trail, I find that the
    variable "myName" actually hasn't changed it's value. It's
    still "none".
    What am I doing wrong? I'd be grateful for your help.
    Thanks!
    Tim
    Edited by: Tadhg207 (-&gt; format)

    No, I did not. Frankly, I didn't know you had
    to save the form before you submit it. I literally
    tried everything, but that.
    Thank you for answering both my questions, James,
    I've spent ages trying to resolve these issues.
    I'd promote you to Guru right away, but, alas, I
    only got a mere 20 points at my disposal. Those
    are yours, though.
    Thanks again. :)
    Question answered.

  • 11g Human Task; problem with Auto-Generate Task Form

    Version: WebLogic Server 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638
    Using book: Getting Started with Oracle SOA 11g R1, A Hands-On Tutorial
    Had success through Chapt 7. Now working through 8, Creating Human Tasks -- almost everything checks out.
    Deployed POProcessing success (with 1 warning: assignee not specified)
    Deployed ApproveTaskDetails (from Application menu) success
    -Run the test tool in Enterprise Manager 11g
    -Response looks according to book, using Launch Flow Trace button I see ManualPOApproval is in running state, as expected.
    -Run Oracl BPM Worklist, log in according to book (weblogic)
    -I can see the Approve Order line under the My Tasks tab
    When I select the Approve Order line item, according to book I should see Approve Order Contents in the lower pane.
    But the details never populate the pane and I see "Waiting for..." in Explorer status bar.
    The logs are filling up with the following statement repeated about 2/second (from D:\oracle\Middleware\home_11gR1\user_projects\domains\domain1\servers\soa_server1\logs\access.log) ...
    =====snippet begins======
    0:0:0:0:0:0:0:1 - weblogic [21/Oct/2011:17:38:05 -0500] "GET /integration/worklistapp/faces/login.jspx?_afrLoop=2609043717008&_afrWindowMode=0&_adf.ctrl-state=bcqg1x7gm_9 HTTP/1.1" 200 5486
    0:0:0:0:0:0:0:1 - - [21/Oct/2011:17:38:05 -0500] "GET /workflow/ApproveTaskDetails/faces/adf.task-flow?bpmWorklistTaskId=47d0f109-2de1-4851-a5cf-1c338050f3c2&bpmWorklistContext=b5d5e48b-9c54-4e3d-a707-19c9e99f618e%3B%3B4iKnpxQCfUvYnghbxihMXgZAOsVJ%2BqeiE79gFBzb%2BlKq9vlbpqV2%2FyQ21%2BLHnBcvJA6mBOoc238GDGR9odBPBE%2FZdeDrfVwfIUCOa%2Fsc%2BRRnmEkzS5f1mKd3oWpasvIhZDkCz5conIhVCKJvCxxz0i1NpCk9WWoVBHpUX39ayhF%2B0aI1p%2FGImOsYBEXDIBEDADen3JkeoewYEJwpVcQf6XzOA5rTEojcUHt28znFHboPdkJ8TW7jfvgQnHNRS5XB&bpmWorklistHttpURL=http%3A%2F%2Flocalhost%3A8001%2Fintegration%2Fworklistapp%2Ffaces&bpmWorklistHome=home.jspx&bpmWorklistReassign=reassignTask.jspx&bpmWorklistRoute=routeTask.jspx&bpmWorklistRequestInfo=requestInfo.jspx&bpmWorklistSecurity=signTask.jspx&tz=America%2FChicago&lg=en&cy=US&vr=&dispNameLg=en&dispNameCy=US&dispNameVr=&df=medium&dt=both&tf=short&bpmWorklistSessionTimeoutInterval=1500&bpmBrowserWindowStatus=taskFlowReturn&adf.tfDoc=%2FWEB-INF%2FManualPOApproval_TaskFlow.xml&adf.tfId=ManualPOApproval_TaskFlow&_task-flow-return=http%3A%2F%2Flocalhost%3A8001%2Fintegration%2Fworklistapp%2Ffaces%2Fadf.task-flow-return%3F_adf.ctrl-state%3Dbcqg1x7gm_49&_adf.winId=bcqg1x7gm_40&_afrLoop=4624989043858&_afrWindowMode=0&_afrWindowId=null HTTP/1.1" 200 5478
    =====snippet ends======
    Thanks for any assistance!
    MichaelM

    Resolved by disabling pop-up blocking in IE8.

  • Human Task Bulk API calls from ADF Entity Object

    Dear all,
    Jdev: 11.1.1.7.1
    We have a requirement where in human task APIs need to be invoked on status changes of an ADF Entity (EO). We presently achieve this in the afterCommit() method and all is well.
    But we are looking to leverage the Human Task bulk update APIs and am wondering how to do that.
    The EO does support a batch mode - Is there a batch mode API that we can override to place the bulk update API call?
    Thanks

    in version 11.1.1.6 getInputStream() and getContent() do not work, this is know bug you can find in the oracle support at
    https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=175895926830291&type=DOCUMENT&id=1451100.1&displayIndex=8&_afrWindowMode=0&_adf.ctrl-state=tlzphlagm_69
    there you can find a .zip file with a full example code.
    Actually Oracle does not consider it a bug:
    "This issue was reviewed by Engineering in Bug 13873092 and is not considered a bug. There is a workaround to retrieve task contents through 'WFTaskUpdate' Servlet as described in the attached Sample project."
    but in my opinion it is a very big bug endeed, and it drove me mad for days! :(
    Anyway here is a snippet with the workaroud in case you do not have access to the oracle support site:
    if att is you attachment and wfContext is your workflow context set somewhere
    AttachmentType att;
    IWorkflowContext wfContext;
    instead of doing this
    InputStream inputStream = att.getInputStream();
    do this
    String contextId = wfContext.getToken();
    String attachmentURL = WFUtils.getTaskUpdateURL(att.getTaskId(), contextId, "" + att.getVersion(),att.getName(),
    Constants.WFTASK_QUERY_ATTACHMENT_BUTTON_KEY_NAME);
    if ( attachmentURL == null ) {
    System.out.println("Unable to generate URL to get attachmentcontent");
    try {
    URL url = new URL(attachmentURL);
    URLConnection conn = url.openConnection();
    InputStream inputStream = conn.getInputStream();
    } catch ( Exception e ) {
    e.printStackTrace();
    hope this helps
    Massi

  • Unable to deploy BPM projects with human tasks from BPC

    I’m trying to edit and deploy a BPM process from Business Process Composer (web based tool). To do it, I followed the steps below:
    1.     I created I project in JDeveloper
    2.     I created the Human task from using the “Auto-generate task form” option
    3.     I converted it to a template
    4.     I published it to BPM MDS
    5.     On Business Process Composer I created I new project based on my published template
    6.     And I finally I deployed it with no errors.
    When I ran the BPM it creates I human task but I’m not able to access its form on Business Process Workspace.
    On Business Process Workspace I can see the task created by my BPM process, but when I click on it to access its form I get a 404 message (message below).
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    I think this error occur because my Task form project was not deployed. To fix it I undeployed all the applications and then I deployed the BPM application with all its tasks forms from JDeveloper. It worked fine (I can actually access the task form on Business Process Workspace), but now I’m not able to edit the BPM process on Business Process Composer anymore.
    Then I finally repeated the steps 3 to 6 on top of this post in order to make the BMP process editable on Business Process Workspace but this time I receive the error at the end of this post taken from server log.
    No matters if I publish the project on MDS BMP repository as a template project or as non template project. I always have the same problem.
    So, how can I use a BPM project that contains Human Tasks forms on Business Process Composer?
    I’m using:
    •     JDevelopper: 11.1.1.5
    •     Oracle Soa Suite 11.1.1.5
    Error:
    <Error> <ServletContext-/soa-infra> <AUSDCCMTPRF03> <soa_server1> <[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <daba687c30fc2ae1:5f5821e2:131915bbc92:-8000-000000000001c442> <1312478914395> <BEA-000000> <Error during deployment
    oracle.fabric.common.FabricException: Deployment Failed: Error occurred during deployment of component: AssignVendorETATask to service engine: implementation.workflow, for composite: AlertBPMProject: ORABPEL-30123
    Error while deploying task metadata.
    The task namespace http://xmlns.oracle.com/AlertBPMApplication/AlertBPMProject/AssignVendorETATask is already used as a template namespace.
    Check if the project you are deploying now is a template project. Please avoid deploying template projects. Use a different namespace for the task definition to fix the problem or set the suffixNamespace flag to true.
    : Error while deploying task metadata.
    The task namespace http://xmlns.oracle.com/AlertBPMApplication/AlertBPMProject/AssignVendorETATask is already used as a template namespace.
    Check if the project you are deploying now is a template project. Please avoid deploying template projects. Use a different namespace for the task definition to fix the problem or set the suffixNamespace flag to true.
         at oracle.integration.platform.blocks.deploy.StandaloneCompositeDeploymentCoordinatorImpl.coordinateCompositeDeployment(StandaloneCompositeDeploymentCoordinatorImpl.java:62)
         at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deployNewComposite(BaseDeployProcessor.java:378)
         at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deploySARs(BaseDeployProcessor.java:226)
    Caused By: oracle.fabric.common.FabricException: Error occurred during deployment of component: AssignVendorETATask to service engine: implementation.workflow, for composite: AlertBPMProject: ORABPEL-30123
    Error while deploying task metadata.
    The task namespace http://xmlns.oracle.com/AlertBPMApplication/AlertBPMProject/AssignVendorETATask is already used as a template namespace.
    Check if the project you are deploying now is a template project. Please avoid deploying template projects. Use a different namespace for the task definition to fix the problem or set the suffixNamespace flag to true.
    : Error while deploying task metadata.
    The task namespace http://xmlns.oracle.com/AlertBPMApplication/AlertBPMProject/AssignVendorETATask is already used as a template namespace.
    Check if the project you are deploying now is a template project. Please avoid deploying template projects. Use a different namespace for the task definition to fix the problem or set the suffixNamespace flag to true.
         at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deployComponents(CompositeDeploymentConnection.java:244)
         at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deploy(CompositeDeploymentConnection.java:93)
    Caused By: oracle.fabric.common.FabricDeploymentException: ORABPEL-30123
    Error while deploying task metadata.
    The task namespace http://xmlns.oracle.com/AlertBPMApplication/AlertBPMProject/AssignVendorETATask is already used as a template namespace.
    Check if the project you are deploying now is a template project. Please avoid deploying template projects. Use a different namespace for the task definition to fix the problem or set the suffixNamespace flag to true.
    : Error while deploying task metadata.
    The task namespace http://xmlns.oracle.com/AlertBPMApplication/AlertBPMProject/AssignVendorETATask is already used as a template namespace.
    Check if the project you are deploying now is a template project. Please avoid deploying template projects. Use a different namespace for the task definition to fix the problem or set the suffixNamespace flag to true.
    {rootCauses=[]}
         at oracle.bpel.services.workflow.fabric.WorkflowServiceEngine.deploy(WorkflowServiceEngine.java:908)
         at oracle.bpel.services.workflow.fabric.WorkflowServiceEngine.deploy(WorkflowServiceEngine.java:368)
         at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deployComponents(CompositeDeploymentConnection.java:239)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused By: ORABPEL-30123
    Error while deploying task metadata.
    The task namespace http://xmlns.oracle.com/AlertBPMApplication/AlertBPMProject/AssignVendorETATask is already used as a template namespace.
    Check if the project you are deploying now is a template project. Please avoid deploying template projects. Use a different namespace for the task definition to fix the problem or set the suffixNamespace flag to true.

    I came across the same issue, and now resolved it like this.
    Firstly, you shouldn't deploy QuoteProcessLab with other UILabs like ApproveDealUILab and so on. So, if you already did it, then go to Weblogic EM and undeploy it.
    Secondly, you should deploy each of UILab separately as standalone application. So, deploy EnterQuiteUILab, BUsinessPracticesUILab, and so on each. These will run independently behind and when your project created based on template in the Composer runs, it will link each of these on human task.
    Thirdly, publish you QuoteProcessLab. And follow the book about how to create a project based on template in the Composer.
    Just one thing you should be careful with is, when you do auto-generation for human task, it sometimes doesn't work fully, unfinished halfway through. So, make sure that the icon 'go to existing business form taskflow' in .task file takes you to the human taskflow.
    If it fails, do another auto-generation. Sometimes DataBindings.cpx can get corrupted by JDev, but let's not go too far for now.
    Mostly, it will work.
    Sung

  • Display the status of parallel human tasks in ADF web page (BPM 11g)

    Hi,
    We create a BPMN process (BPM 11g) which splits into parallel branches. Each branch has its own user activity. We want to show the task status of ALL the parallel user activities (running or completed) in the ADF web page implemented for the user activity so the user would have the whole picture of the process.
    In another words, we are able to check the status of the component instances associated with the process instance in the Oracle EM. We want to provide the similar information (in our case, we only want to show the status of the human task components) to the user when they access the human task page.
    I wonder if the only solution is to write Java code with the API to lookup the BPMN process instance. We try to avoid Java coding if possible. Please advise. Also, so far, I have not found any complete instruction/document on how to access the BPMN process instance and check the tasks etc. through the API. Please help if you know where I could get such information.
    Thanks a lot,
    Helen

    sorry!!
    http://www.esnips.com/doc/dca05e99-d5ca-49ce-80c8-5bedfe27a24a/screenshot-2

  • Create entity and human task

    Hello,
    I have a really simple process which includes a create entity activity. It works perfectly fine as data is inserted into the table and i can see everything is completed in the flow trace. Now, when i insert a human task after the create entity activity, things start going wrong. While i don't see any errors in the flow trace and all tasks are completed as planned, the BPEL component's state is showing as running and at the end of the flow i got the message "The transaction was rolled back. The work performed for bpel instance "123456" was rolled back to the previous dehydration point, but the audit trail has been saved...." It seems like it's waiting for something from the human task (even though it was completed successfully). As long as I leave this running, the process would try everyday from 12:00 AM to 4:00 AM every five minutes. That's another issue that i can't figure out. Can someone shed some light on this? Thank you.

    Hi,
    its best to post this question to the SOA forum. The answer on this forum would be to use a  page template, a parametrized bounded task flow and then add the bounded task flow to each page that has the template. However, the task flow in the HT case is generated, which means that you re-build it all the time (meaning you don't work with the same task flow but multiple). If you know how to just use the HT API to access the information to display, you could write a generic bounded task flow for this. Check on the SOA forum if they can come up with a template approach for your use case.
    Frank

  • Human tasks, complex types and variable assignment.

    Hi folks,
    I encountered a problem while working with 10.1.3.1 which I haven't managed to solve yet and would be grateful for assistance. I have defined a complex data type (just a sequence of strings) and want to fill that data type by going through a flow of screens, e.g. through several human tasks. I have defined that type as a variable to the BPEL process and have managed to assign simple expressions to the variable and pass that into a Human Task. In the task I see now a simple input form for all attributes of the type.
    Now the problem. After I fill out the form and complete the human task, I have
    The global variable:
    <outputVariable>
         <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
              <MyProcessResponse xmlns="http://xmlns.oracle.com/VacationRequest">
                   <vorname/>
                   <nachname/>
                   <strasse/>
                   <nummer/>
                   <postleitzahl/>
                   <stadt/>
                   <maximaleDauer/>
                   <minimaleDauer/>
              </MyProcessResponse>
         </part>
    </outputVariable>
    and the return value from the human task:
    <task>
         <title>CaptureData</title>-
              <payload>
                   <MyProcessResponse>
                        <vorname>David</vorname>
                        <nachname>Beckham</nachname>
                        <strasse>HighStreet</strasse>
                        <nummer/>
                        <postleitzahl/>
                        <stadt/>
                        <maximaleDauer/>
                        <minimaleDauer/>
                   </MyProcessResponse>
              </payload>
    </task>
    Now the only thing I would like to do is to replace the original values in the variable with the new values that have been returned from the task, this should be performed in an extra assign step. Sounds simple. JDeveloper wouldn't even let me klick through the return value from the HumanTask, so it seems as if I have to do things manually.
    These are my tries:
    Command 1:
    <copy>
         <from variable="CaptureData_1_globalVariable"
    part="payload" query="/task:task/task:payload" />
    <to variable="outputVariable" part="payload"
    query="/ns1:MyProcessResponse"/>
    </copy>
    Result 1:
    <outputVariable>
         <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
              <ns0:MyProcessResponse xmlns="http://xmlns.oracle.com/bpel/workflow/task"     xmlns:ns0="http://xmlns.oracle.com/VacationRequest">
                   <MyProcessResponse xmlns="http://xmlns.oracle.com/VacationRequest">
                        <vorname>David</vorname>
                        <nachname>Beckham</nachname>
                        <strasse>HighStreet</strasse>
                        <nummer/>
                        <postleitzahl/>
                        <stadt/>
                        <maximaleDauer/>
                        <minimaleDauer/>
                   </MyProcessResponse>
              </ns0:MyProcessResponse>
         </part>
    </outputVariable>
    --> There is one MyProcessResponse element too many
    Command 2:
    <copy>
         <from variable="CaptureData_1_globalVariable"
    part="payload" query="/task:task/task:payload"/>
    <to variable="outputVariable" part="payload"
    query="/ns1:MyProcessResponse/ns1:vorname"/>
    </copy>
    Result 2:
    <outputVariable>
         <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
              <MyProcessResponse xmlns="http://xmlns.oracle.com/VacationRequest">
                   <ns0:vorname xmlns="http://xmlns.oracle.com/bpel/workflow/task"                     xmlns:ns0="http://xmlns.oracle.com/VacationRequest">
                        <MyProcessResponse xmlns="http://xmlns.oracle.com/VacationRequest">
                             <vorname>David</vorname>
                             <nachname>Beckham</nachname>
                             <strasse>HighStreet</strasse>
                             <nummer/>
                             <postleitzahl/>
                             <stadt/>
                             <maximaleDauer/>
                             <minimaleDauer/>
                        </MyProcessResponse>
                   </ns0:vorname>
                   <nachname/>
                   <strasse/>
                   <nummer/>
                   <postleitzahl/>
                   <stadt/>
                   <maximaleDauer/>
                   <minimaleDauer/>
              </MyProcessResponse>
         </part>
    </outputVariable>
    --> This was moreless expected, since I tried to copy the stuff to some wrong place.
    Command 3:
    <copy>
         <from variable="CaptureData_1_globalVariable"
    part="payload" query="/task:task/task:payload/ns0:MyProcessResponse"/>
    <to variable="outputVariable" part="payload"
    query="/ns1:MyProcessResponse"/>
    </copy>
    Result 3:
    --> Task does't return (!!!). In the BPEL Worklist, the task is completed, however in the BPEL console it still apears as "waiting to return from Human task".
    Does anyone have a hint on how to copy the values so that I get exactly the structure that I printed at the very top?
    Thanks for help. Rock On !

    Hello everyone,
    It seems that we are talking about different things, I am afraid. Let me describe the scenario once again:
    - I want to have a BPEL process with more than one role involved
    - This process should be used to gather some complex data.
    - All data gathering should be done through HumanTasks.
    So I defined an xsd complex type, that contains a sequence of fields. This complex type should be part of the process payload.
    Now before HumanTask 1 is called, I copy the contents of this variable into the input for tasks1. This works fine and I see the appropriate values, when opening the Human Task in the BPEL worklist application.
    Now after HumanTask1 is completed, the values I entered inside that tasks are returned as a variable from the HumanTask. My problem is, that I cannot copy the contents of the task back into the main process. With simpleTypes this is relatively ok, since Jdev supports the assembling of the copy operation, however for complex tasks it fails.
    A typical scenario for this would be where e.g. a customer fills a shipping address and afterwards a store staff fills product details in the same order. In Java this could be solved via "pass by reference". Who can provide an example?

Maybe you are looking for

  • Printing PDF document with today's date

    I am looking for a way to print the current date on the PDF document. Perhaps, a field/variable/marker on the PDF document where it will be converted to the today's date at the time the document is being printed.

  • It wont work with itunes

    Alright i got a new iphone sent to me from apple because my other one was messing up. So i opened it up and it was telling me to hook it up to itunes to get it working. But on itunes it is saying I don't have a sim card in it, when there is one in th

  • 1Z0-238 and 11i Install, patch and maintain.....

    hi, I took the "11i Install, patch and maintain Oracle Applicaiton" course from oracle university about couple of years ago and now we are already on release 12.0.6. I want to attempt 1Z0-238 which is actually a R12 certificaftion exam. Question is;

  • EJBs in WebApp

    Hello, I'm deploying a Servlet that calls a generic utility class which returns the LocalHome interface of a Session EJB. The utility class and sesion interface classes are in .jar files within the WebApp. The Servlet is declared in web.xml, but coul

  • Input Plug Dimensions HP Folio 13-1016TU

    Can anyone tell me the dimensions of the power input plug for the HP Ultrabook Folio 13-1016TU please? I am visiting an area in Africa with a dodgy power supply, so have ourchased an external battery - that way I don't have to connect the laptop to t