DocumentReviewWorkflow

I tried to add DocumentReviewWorkflow to my bpel workflows. But i get error .
This is copy from bpel console :
2006/08/18 14:50:35]
Error in evaluate <from> expression at line "54". The result is empty for the XPath expression : "/ns5:IFSQUEUEMESSAGE/PARAMETERLIST/PARAMETERLIST_ITEM[NAME='CONNECTASUSER']/VALUE".
<IFSQUEUEMESSAGE>
<MESSAGETYPE/>
<PARAMETERLIST>
<PARAMETERLIST_ITEM>
<NAME/>
<VALUE/>
<DATATYPE/>
</PARAMETERLIST_ITEM>
</PARAMETERLIST>
</IFSQUEUEMESSAGE>
Any ideas please?

The BPEL worklist can be very picky with regards to case sensitivity of the username that the task is assigned to. You may want to check if this is the cause of the error.
If the task was assigned to "BOB" in uppercase, then the user must authenticate to the worklist with username "BOB" and not "bob".
If you are running Content DB, I would suggest using the CDB devkit and simpleapproval workflow based on BPEL 10.1.3. The code is much more production grade.
thanks
-Matt.

Similar Messages

  • BPEL Custom Workflow (DocumentReviewWorkflow) with Content Services

    Hi All,
    Anybody working on BPEL Custom Workflows got Success in using the DocumentReviewWorkflow with the Content Services Development Kit 10.1.2.3.0
    Please update..
    Many Thanks in advance..!!!
    Prasant

    The DocumentReviewWorkflow that ships with the Content Services web services places the documents in the comments field.
    There are examples in the sample code - DocumentReviewWorkflowAction.java file demonstrates how to get the URLs from Oracle Content Services
    // Initialize the various Web Service Manager classes.
    StringBuffer sb = new StringBuffer(100);
    String endpoint = session.getServiceEndPoint();
    setUpManagers(session);
    try
    // Obtain the new/updated document items.
    Item[] documents = WorkflowUtils.getTargetDocuments(session,
    m_WorkflowId);
    int len = (documents == null) ? 0 : documents.length;
    for (int i = 0; i < len; i++)
    AttributeRequest[] pathar = WsUtil.newAttributeRequestArray(
    Attributes.URL);
    Item tmp =
    (Item) m_CommonManager.getItem(documents.getId(), pathar);
    String filepath = (String) WsUtil.getAttributesMap(
    tmp)
    .get(Attributes.URL);
    // Convert the String list to a single string for convenience.
    sb.append(filepath);
    sb.append("\n");
    finally
    session.logout();
    You can then add the document links as attachments by creating a list of attachments and then inserting the URLs for the documents in the URI - I've done it using a combination of Java and BPEL. Here is an excerpt
    <bpelx:exec name="countAttachments" language="Java" version="1.4"><![CDATA[/*Write your java code below e.g.
                   System.out.println("Hello, World");
              // Note that the documents come back as a list of
              // documents with a line break between them
              String filename = (String) getVariableData("filename");      
              String[] docnames = filename.split("\n");
    setVariableData("numberofdocuments", new Integer(docnames.length));
    ]]>
    </bpelx:exec>
    <assign name="initCounter">
    <copy>
    <from expression="0"/>
    <to variable="counter"/>
    </copy>
    <copy>
    <from>
    <attachment xmlns="http://xmlns.oracle.com/pcbpel/taskservice/task">
    <name/>
    <URI/>
    <content/>
    </attachment>
    </from>
    <to variable="ParallelVar1" query="/task:task/task:attachment"/>
    </copy>
    </assign>
    <while name="While_1" condition="bpws:getVariableData('counter') &lt; (bpws:getVariableData('numberofdocuments') - 1)">
    <assign name="createAttachmentList">
    <bpelx:append>
    <bpelx:from>
    <attachment xmlns="http://xmlns.oracle.com/pcbpel/taskservice/task">
    <name/>
    <URI/>
    <content/>
    </attachment>
    </bpelx:from>
    <bpelx:to variable="ParallelVar1" query="/task:task"/>
    </bpelx:append>
    <copy>
    <from expression="bpws:getVariableData('counter') + 1"/>
    <to variable="counter"/>
    </copy>
    </assign>
    </while>
    <bpelx:exec name="AddAttachmentsToList" language="Java" version="1.4"><![CDATA[/*Write your java code below e.g.
                   System.out.println("Hello, World");
              String filename = (String) getVariableData("filename");
              checkpoint();
              String[] docnames = filename.split("\n");
    for (int i = 0; i < docnames.length; i++) {
    int strlen = docnames[i].length();
    int slash = docnames[i].lastIndexOf('/');
    String filenameonly = docnames[i].substring(slash + 1, strlen);
    int item = i + 1;
    String varname = "/task:task/task:attachment[" + item + "]/task:name";
    String varuri = "/task:task/task:attachment[" + item + "]/task:URI";
    setVariableData("ParallelVar1", varname, filenameonly);
    setVariableData("ParallelVar1", varuri, docnames[i]);
    ]]>
    </bpelx:exec>
    This uses the fact that the document URLs are returned as a \n delimited string.

  • Invoking Custom BPEL Workflow from ContentDB DocumentReviewWorkflow

    Hi,
    I am trying to invoke Custom BPEL Workflow from Contentdb.
    I can see TaskActionHandler and DocumentReviewWorkflow instance created in BPEL using BPELConsole. This workflow is waiting for approval.
    When I am login to worklist application I can not see task assign to me.
    Also I can see from database that Messages not read by BPEL Process Manager.i.e I can see rows in IFS_BPEL_OUT_TABLE
    After restarting BPEL P.M those data is still there.
    How to resolve this?
    Thanks,
    Jigar

    Jigar
    This sounds like two separate issues with the 10.1.2.0.2 BPEL PM.
    First, I had a problem with the BPEL process manager not consuming the AQ messages sitting in the IFSQUEUE. In order to consume the messages, I had to redeploy the BPEL process. This sounds like your first issue.
    The second issue is the case sensitivity within the worklist application. There is a patch for this #4962149. The patch did not work entirely for our environment and I opened up a separate bug but there was never a fix supplied by the development group.
    Good luck.
    Nick

Maybe you are looking for

  • 2012 Mini crashes when going to sleep on Windows 8.1 x64 with 5621 drivers

    When putting my 2012 Mac Mini to sleep on Windows 8.1, sometimes it will be unresponsive when I attempt to wake it with the keyboard/mouse. At this point the Mac Mini is off (no pulsing light) and when I press the power button it will cold boot (with

  • Irritating problem with Fluxbox and pressing Ctrl + F3

    I've used the Ctrl + F1, F2, F3 or F4 keys to switch between workspaces in Fluxbox but occasionally I'll press Ctrl + F3 and it will just log me out. This is highly annoying. Is there some way I can disable this functionality at all? I switch between

  • I don't understand how to update my OS software!

    T-Mobile finally released the 4.5 version of the BlackBerry software but I don't understand how to update my phone's OS.  Their instructions are extremely confusing (leaving out information) and I'm just not sure how to do this.  All I want to do is

  • Can't drag the divider of HDividedBox

    hello everyone, this is my code: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"       xmlns:s="library://ns.adobe.com/flex/spark"       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight

  • Updating a database view

    Hi, can you please tell me how can i update database 'z' view. can we update as the same ways as we fill the data in database table by insert update command.. if there is any way to fill data in data base view please describe the process if any code