ContentDB 10.2, BPEL P.M. 10.1.3.1.0 Custom Workflow issue

Hi,
I have registered and invoked Sample BPEL Workflow provided by ContentDB development kit. I can see message getting created in IFS_BPEL_OUT_TABLE and feching out. But I can not able to see any process getting generated in BPEL Console.
Have any one tried this or success apart from Matt.
Not sure what is wrong. I am following everything what Matt told to do in the Development Kit.
I will appreciate your help.
Regards,
Jigar

Did you resolve the deployment issue?
Also, have you seen the viewlet?
You could try creating a basic process from scratch based on the viewlet to ensure that the process gets correctly invoked from a Content DB queue message
http://www.oracle.com/technology/products/contentdb/dev/viewlet/index.html
The other thing to do is check the logs thorougly
tail_bpel_defaultdomain_log='cd $ORACLE_HOME/bpel/domains/default/logs; tail -f domain.log'
tail_bpel_hw_log='cd $ORACLE_HOME/j2ee/oc4j_soa/application-deployments/hw_services/oc4j_soa_default_group_1; tail -f application.log'
tail_bpel_oc4j_log='cd $ORACLE_HOME/j2ee/oc4j_soa/application-deployments/orabpel/oc4j_soa_default_group_1; tail -f application.log'
tail_bpel_system_log='cd $ORACLE_HOME/bpel/system/logs; tail -f orabpel.log'
tail_soa_opmn_log='cd $ORACLE_HOME/opmn/logs; tail -f oc4j_soa.log'
-Matt.

Similar Messages

  • Custom Workflows in ContentDB (OCS 10.1.2.3.0)

    Hi,
    One of our clients is doing couple of enhancements to their ContentDB system. As part of this enhancement, I'm looking for a better understanding about how Parallel-Vote works internally and would really appreciate if you could direct me to some pointers for the same. Please find below details on the Scenario/Requirement that I'm implementing.
    Scenario
    Before a document can be moved into Folder-X in ContentDB, it goes through a parallel-vote approval process. For this, we have defined a Parallel-Vote-Custom-Workflow on Folder-X (this gets triggered off on the "Move" event on Folder-X).
    As a result of this, whenever a document is moved into Folder-X, an approval request is raised - and an authorized person needs to approve it.
    Requirement
    1. When this document is approved to be placed into Folder-X, they want the same document to be copied into another folder "Folder-Y" as well.
    2. The approval request title has the format "Move Request for Document-A". The request-title needs to be tweaked to just say "Document-A" without the rest of the message. (Its a nice-to-have feature)
    To implement these, I'm trying to understand how Parallel-Vote is internally implemented in ContentDB. Is this internally implemented using a BPEL process? I checked the Custom Workflows defined in OEM and could not find Parallel/Serial Vote listed among them. So am just trying to find out, is there a way I can get a hook to the approval process happening internally so that I can implement the above requirements.
    Thanks
    Antony

    We've done it on a seperate AS 10.1.2.0.2, it works and i'ts normally a supported configuraiton. Of course you will also need an OCS database to store ocs data.

  • Custom Workflow using Oracle Workflow in ContentDB

    Hi,
    Could we use custom workflow which is made using Oracle Workflow instead of BPEL.
    Regards,
    Yulisar

    Having registered custom workflows for Content DB via Enterprise Manager, potentially you can use any tool capable of dequeuing/enqueing messages from the IFS_BPEL_OUT/IFS_BPEL_IN advanced queues as part of a custom workflow process.
    By default, we assume you are using Oracle BPEL PM with its Advanced Queue adapater to process the queue messages. However, there is nothing stopping using Oracle Workflow or any tool for that matter.
    HOWEVER!!! Warning!!! There is a high probability that Content DB will drop the bundled Oracle Worflow installation in the near future. What this means, is that you should consider installing/configure/patching your own separate Oracle Workflow installation and not rely on the bundled Content DB solution which is used internally for Serial and Parallel Approval workflows.
    thanks,
    Matt.

  • Custom Workflow - BPEL - delete registered policies

    Hi all,
    I am trying to set up a custom workflow with the Oracle Beehive Custom Workflow Tutorial.
    After some difficulties I finally succeeded in deploying the BPEL-process. Only the integration with beehive does not (yet ;-)) work correctly.
    I need to redeploy the policy, since I would like to change the triggering eventtype. My first trial was to just add the policy once again - but it failed with 'A policy with the same name already exists.' Now I was trying to delete the policy - but that failed with 'No entity found the the given bodn'. 'Beectl list_policies' does not show my policy.
    How can I ever delete or lookup my registered policies?
    Thanks for any help.
    Regards,
    Bettina

    Hi Nickw..,
    Sorry for the multiple repeated updates... it happened because of the slow internet connection
    I am able to get the Worklist task now, but only for the CAPS lettered Users..!!
    The Audit section in the BPEL Console for this process looks like:
    <NAME>IFS_MESSAGE_SUBJECT</NAME>
    <VALUE>Checkout Request 88731 submitted in Content Services</VALUE>
    <DATATYPE>STRING</DATATYPE>
    </PARAMETERLIST_ITEM>
    <PARAMETERLIST_ITEM>
    <NAME>IFS_REJECT_MSG</NAME>
    <VALUE>Choose <B>No</B> to Reject the request.</VALUE>
    <DATATYPE>STRING</DATATYPE>
    </PARAMETERLIST_ITEM>
    <PARAMETERLIST_ITEM>
    <NAME>IFS_ECM_WORKFLOW_OWNER</NAME>
    <VALUE>ORCLADMIN</VALUE>
    <DATATYPE>STRING</DATATYPE>
    </PARAMETERLIST_ITEM>
    <PARAMETERLIST_ITEM>
    <NAME>IFS_MESSAGE_HEADER</NAME>
    <VALUE>A Checkout Request has been submitted in Content Services. You are listed as a responder for this request. Your response is requested. <BR><BR>Request Details:<BR><BR><B> Requester </B> : ORCLADMIN<BR><B> Responders </B> : PRASANT PRASANT1 <BR><BR> For complete request details click here</VALUE>
    <DATATYPE>STRING</DATATYPE>
    </PARAMETERLIST_ITEM>
    <PARAMETERLIST_ITEM>
    1. I am able to get the heading the IFS_MESSAGE_SUBJECT as Checkout Request 88731 submitted in Content Services
    2. But nowhere i can find the IFS_MESSAGE_HEADER in the Worklist screen
    the following:
    For complete request details click here</VALUE>
    Where will be the issue..?
    Thanks in advance....
    and best regards,
    Prasant

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

  • Problem getting custom workflow to work with BPEL Worklist

    I am currently working through the DocumentReviewWorklow custom workflow example in the Oracle Content Services 10g Custom Workflows document and cannot get the workflow to prompt approvers through the BPEL Worklist application that an action must be taken.
    When I run the workflow, the process gets to the point of calling the TaskActionHandler and the approver is told that a process is pending their approval in the Content Services Console.
    The following appears in the BPEL Process Manager when I Audit the workflow:
    onMessage (137) - pending
    [2006/03/20 08:57:42] Waiting for message from "TaskManagerService", operation is "onTaskSuspended".
    onMessage (126) - pending
    [2006/03/20 08:57:42] Waiting for message from "TaskManagerService", operation is "onTaskUpdated".
    onMessage (118) - pending
    [2006/03/20 08:57:42] Waiting for message from "TaskManagerService", operation is "onTaskErrored".
    onMessage (110) - pending
    [2006/03/20 08:57:42] Waiting for message from "TaskManagerService", operation is "onTaskWithdrawn".
    onMessage (102) - pending
    [2006/03/20 08:57:42] Waiting for message from "TaskManagerService", operation is "onTaskCompleted".
    onAlarm (161) - pending
    [2006/03/20 08:57:42] Alarm started. Alarm will go off at time "2006/03/22 08:57:42".
    onAlarm (156) - pending
    [2006/03/20 08:57:42] Alarm started. Alarm will go off at time "never".
    onAlarm (151) - pending
    [2006/03/20 08:57:42] Alarm started. Alarm will go off at time "never".
    After a period of time, the workflow eventually times-out because it is neither approved or disapproved. I have got the other non-blocking custom workflow examples to work without any problems.

    Thanks bnainani, you solved my problem!
    Despite the fact that the approver's username is in the Oracle Collabortion Suite OID as all lower case letters (and you can still login to worklist with lower case letters), you were right in saying that you have to use all upper case letters when logging into the worklist application in order to see the pending tasks.
    Just out of curiousity, do you have any idea why worklist requires upper case letters for the username?
    Message was edited by:
    middaymag
    Message was edited by:
    middaymag

  • BPEL process failing in many instances due to JMS performance issue...

    Hi All,
    We are using a JMS adapter as partner link in a BPEL process to produce messages to JMS Queue.
    We are getting an error while producing a message to a JMS Queue.
    The error comes for 1 or 2 instances among 5 to10 intsances. (all these instances ran with in 1 or 2 seconds).
    We are using Oracle 10G SOA suite.
    This error is getting in the Production environment.
    The error is as follows (took error from server log).
    Failed to handle dispatch message ... exception ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: faultName: {{http://schemas.oracle.com/bpel/extension}bindingFault}
    messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    parts: {{summary=file:/sw/appaia/product/SOA/bpel/domains/default/tmp/.bpel_CurrencyExchangeListEbizJMSProducer_1.0_4ec528ec93a8a6ff0278fab9701dcc71.tmp/CurrencyExchangeListEbizJMSProducerV1.wsdl [ Produce_Message_ptt::Produce_Message(OutputParameters) ] - WSIF JCA Execute of operation 'Produce_Message' failed due to: Adapter Framework unable to create outbound JCA connection.
    file:/sw/appaia/product/SOA/bpel/domains/default/tmp/.bpel_CurrencyExchangeListEbizJMSProducer_1.0_4ec528ec93a8a6ff0278fab9701dcc71.tmp/CurrencyExchangeListEbizJMSProducerV1.wsdl [ Produce_Message_ptt::Produce_Message(OutputParameters) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: oracle.j2ee.connector.proxy.ProxyInterceptException: javax.resource.ResourceException: RollbackException: Transaction has been marked for rollback: null [Caused by: RollbackException: Transaction has been marked for rollback: null]
    ; nested exception is:
    ORABPEL-12511
    Adapter Framework unable to create outbound JCA connection.
    I tried the below JMS tunings with differnt combination, but no improvem
    Please let me know if any other logs or any other information is required.
    Thanks,
    Pershad

    One of the values in the oc4j-ra.xml has the below values:
    <connector-factory location="OracleASjms/MyXAQCF" connector-name="OracleASjms">
              <config-property name="jndiLocation" value="jms/XAQueueConnectionFactory"/>
              <config-property name="autoCloseSession" value="false"/>
              <connection-pooling use="private">
                   <property name="waitTimeout" value="300" />
                   <property name="scheme" value="fixed_wait" />
                   <property name="maxConnections" value="50" />
                   <property name="minConnections" value="0" />
              </connection-pooling>
              <security-config use="principal-mapping-entries">
                   <principal-mapping-entries>
                        <principal-mapping-entry>
                             <initiating-user>servletuser</initiating-user>
                             <res-user>jmsuser</res-user>
                             <res-password>-&gt;jmsuser</res-password>
                        </principal-mapping-entry>
                   </principal-mapping-entries>
              </security-config>
              <connectionfactory-interface>javax.jms.XAQueueConnectionFactory</connectionfactory-interface>
         </connector-factory>
    Where do we need to change ?
    Please suggest .
    Thanks

  • Bpel Server Does Not Catch Exceptions Thrown By Custom Xpath Functions

    Hi.
    I am using some custom xpath functions in a bpel process and whenever they fail I get an XPathExecutionError with summary:
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "<my function>", the reason is FOTY0001: type error.
    Please verify the xpath query.
    I am forcing my function to fail by giving a wrong input, which should result in an XPathFunctionException("Input does not respect format").
    There is a note on Metalink with ID 458434.1 on this subject which says that patch 5926809 should fix my problem.
    Patch 5926809 fixes Bug 5926809 - ORA:PARSEESCAPEDXML XPATH EXPRESSION FAILED TO EXECUTE FOTY0001: TYPE ERROR.
    I am using it, but it does not work :(
    I am using version 10.1.3.3.0 of App Server with various patch sets, including fix for bug 5926809.
    Has anyone suggestions on how to overcome this problem?
    Thanks

    Hello,
    I am trying to add a custom xpath function to the BPEL server, and I see that you made it work. I am using Oracle SOA Suite 10.1.3.3 and jDeveloper 10.1.3.4. I am using this function inside an xsl mapping file, although I am able to compile and deploy the Bpel Process to the server, it stops mapping where I placed the function and I have not seen any meaningful message from the domain/log/ files.
    Can you tell me how you did it?
    I think you will tell me faster than Oracle support, I already placed an SR but they just give me superficial advice.
    I appretiate your time and advice,
    Guillermo

  • Copying Variables in BPEL using XPath Query

    Hi,
    I am new to BPEL and i want to know if it is possible to copy data from one variable to another using XPath Query in the <from> <to> tags, when the two variables are of different message types.
    I am trying to create a sample BPEL that would receive a String through the receive tag tied to one partner link (WSDl) and then invoke a different webservice using the <invoke> tag tied to another partner link (WSDL) by passing the received variable.
    I have pasted the BPEL File and the two WSDl files involved.
    My Issue is that when I send a soap request to the BPEL, it is passed as null to the webservice invoked.
    Probably because the copy tags don't work.
    Please help.
    BPEL File
    <!--
    ~ Licensed to the Apache Software Foundation (ASF) under one
    ~ or more contributor license agreements. See the NOTICE file
    ~ distributed with this work for additional information
    ~ regarding copyright ownership. The ASF licenses this file
    ~ to you under the Apache License, Version 2.0 (the
    ~ "License"); you may not use this file except in compliance
    ~ with the License. You may obtain a copy of the License at
    ~
    ~ http://www.apache.org/licenses/LICENSE-2.0
    ~
    ~ Unless required by applicable law or agreed to in writing,
    ~ software distributed under the License is distributed on an
    ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    ~ KIND, either express or implied. See the License for the
    ~ specific language governing permissions and limitations
    ~ under the License.
    -->
    <process name="HelloWorld2"
    targetNamespace="http://ode/bpel/unit-test"
    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:tns="http://ode/bpel/unit-test"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:test="http://ode/bpel/unit-test.wsdl"
    xmlns:ns0="http://poc.com"
    queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
    expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
    <import location="HelloWorld2.wsdl"
    namespace="http://ode/bpel/unit-test.wsdl"
    importType="http://schemas.xmlsoap.org/wsdl/" />
    <import location="sayHello.wsdl"
    namespace="http://poc.com"
    importType="http://schemas.xmlsoap.org/wsdl/" />
    <partnerLinks>
    <partnerLink name="helloPartnerLink"
    partnerLinkType="test:HelloPartnerLinkType"
    myRole="me" />
    <partnerLink name="sayHelloBPELPL"
    partnerLinkType="ns0:sayHelloPLT"
    partnerRole="you" initializePartnerRole="yes" />
    </partnerLinks>
    <variables>
    <variable name="myVar" messageType="test:HelloMessage"/>
    <variable name="tmpVar" messageType="test:HelloMessage"/>
    <variable name="inVar" messageType="ns0:sayHelloRequest"/>
    <variable name="outVar" messageType="ns0:sayHelloResponse"/>
    </variables>
    <sequence>
    <receive
    name="start"
    partnerLink="helloPartnerLink"
    portType="test:HelloPortType"
    operation="hello"
    variable="myVar"
    createInstance="yes"/>
    <assign name="ass1">
    <copy>
    <from variable = "myVar" part = "TestPart"/>
    <to variable = "inVar"
    part = "parameters"
    query= "/sayHello/ns0:param0" />
    </copy>
    </assign>
    <invoke partnerLink = "sayHelloBPELPL"
    portType = "ns0:sayHelloPortType"
    inputVariable = "inVar"
    operation = "sayHello"
    outputVariable = "outVar">
    </invoke>
    <assign name="ass2">
    <copy>
    <from variable = "outVar"
    part = "parameters"
    query= "/sayHelloResponse/ns0:return" />
    <to variable = "tmpVar" part="TestPart"/>
    </copy>
    </assign>
    <reply name="end"
    partnerLink="helloPartnerLink"
    portType="test:HelloPortType"
    operation="hello"
    variable="tmpVar"/>
    </sequence>
    </process>
    WSDL File1
    <?xml version="1.0" encoding="utf-8" ?>
    <!--
    ~ Licensed to the Apache Software Foundation (ASF) under one
    ~ or more contributor license agreements. See the NOTICE file
    ~ distributed with this work for additional information
    ~ regarding copyright ownership. The ASF licenses this file
    ~ to you under the Apache License, Version 2.0 (the
    ~ "License"); you may not use this file except in compliance
    ~ with the License. You may obtain a copy of the License at
    ~
    ~ http://www.apache.org/licenses/LICENSE-2.0
    ~
    ~ Unless required by applicable law or agreed to in writing,
    ~ software distributed under the License is distributed on an
    ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    ~ KIND, either express or implied. See the License for the
    ~ specific language governing permissions and limitations
    ~ under the License.
    -->
    <wsdl:definitions
    targetNamespace="http://ode/bpel/unit-test.wsdl"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://ode/bpel/unit-test.wsdl"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
    xmlns:ns0="http://poc.com">
    <wsdl:message name="HelloMessage">
    <wsdl:part name="TestPart" type="xsd:string"/>
    </wsdl:message>
    <wsdl:portType name="HelloPortType">
    <wsdl:operation name="hello">
    <wsdl:input message="tns:HelloMessage" name="TestIn"/>
    <wsdl:output message="tns:HelloMessage" name="TestOut"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="HelloSoapBinding" type="tns:HelloPortType">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="hello">
    <soap:operation soapAction="" style="rpc"/>
    <wsdl:input>
    <soap:body
    namespace="http://ode/bpel/unit-test.wsdl"
    use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body
    namespace="http://ode/bpel/unit-test.wsdl"
    use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="HelloService">
    <wsdl:port name="HelloPort" binding="tns:HelloSoapBinding">
    <soap:address location="http://localhost:8082/ode/processes/helloWorld"/>
    </wsdl:port>
    </wsdl:service>
    <plnk:partnerLinkType name="HelloPartnerLinkType">
    <plnk:role name="me" portType="tns:HelloPortType"/>
    <plnk:role name="you" portType="tns:HelloPortType"/>
    </plnk:partnerLinkType>
    </wsdl:definitions>
    WSDL File 2
    <?xml version="1.0" encoding="UTF-8" ?>
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:ns0="http://poc.com"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:ns1="http://org.apache.axis2/xsd"
    xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
    targetNamespace="http://poc.com">
    <wsdl:types>
    <xs:schema xmlns:ns="http://poc.com" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://poc.com">
    <xs:element name="sayHello">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="param0" nillable="true" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="sayHelloResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="return" nillable="true" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    </wsdl:types>
    <wsdl:message name="sayHelloRequest">
    <wsdl:part name="parameters" element="ns0:sayHello" />
    </wsdl:message>
    <wsdl:message name="sayHelloResponse">
    <wsdl:part name="parameters" element="ns0:sayHelloResponse" />
    </wsdl:message>
    <wsdl:portType name="sayHelloPortType">
    <wsdl:operation name="sayHello">
    <wsdl:input message="ns0:sayHelloRequest" wsaw:Action="urn:sayHello" />
    <wsdl:output message="ns0:sayHelloResponse" wsaw:Action="urn:sayHelloResponse" />
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="sayHelloSOAP11Binding" type="ns0:sayHelloPortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="sayHello">
    <soap:operation soapAction="urn:sayHello" style="document"/>
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="sayHello">
    <wsdl:port name="sayHelloPort" binding="ns0:sayHelloSOAP11Binding">
    <soap:address location="http://localhost:8082/ode/processes/sayHello" />
    </wsdl:port>
    </wsdl:service>
    <plnk:partnerLinkType name="sayHelloPLT">
    <plnk:role name="me" portType="ns0:sayHelloPortType"/>
    <plnk:role name="you" portType="ns0:sayHelloPortType"/>
    </plnk:partnerLinkType>
    </wsdl:definitions>

    Hi,
    Yes, it very much is possible.
    Xpath query provides a lot many data type conversion functions(string to int, string to date etc), which can be used in copying variables.
    thanks
    Saurabh

  • Error Handling in BPEL & ESB - Rejection Handlers

    Hi guys
    I have been trying to evaluate various ways for handling errors/exceptions in BPEL and ESB in Oracle SOA Suite 10.1.3.4 (Basic installation).
    What i have found is that in ESB, errors can be handled at two levels: ESB routing service errors using ERROR_TOPIC and Adapter errors using RejectionHandlers. AND
    in BPEL errors can be handled using in built try/catch (calling error hospital from the catch) and adapter erros using RejectionHandlers.
    I tried using Rejection handlers (bpel, wsif, file) in BPEL and ESB. In BPEL they all are working fine when registered in bpel.xml.
    But in ESB only the file handler is working. What i did in ESB is:
    I set up an ESB which is polling a file adapter and simply putting the data into a table in database.
    Then i created a BPEL (or a Webservice) which is based on http://localhost:8888/orabpel/xmllib/jca/RejectionMessage.wsdl file, taking
    {http://xmlns.oracle.com/pcbpel/errorHandling}RejectedMessage as input.
    Then I registered Rejection Handler in ESB's file adapter's .esbsvc (or Enpoint property- rejectedMessageHandlers):
    "wsif://http//localhost8888/Error_Service/RejectionHandlerPort?wsdl|handleRejection|message"OR "bpel://default:welcome1|BPEL_Error_Handler|handleRejection|message"
    I generated error in ESB by changing a column name of the table
    For bpel rejection handler:
    i was getting error: "<ERROR> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Rejection handler failed
    Error while trying to hand off bad message to Rejection handler bpel://default|BPELProcess2|handleRejection|message due to: java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found
    at com.evermind.server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)
    at com.evermind.server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:256)
    at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:196)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)"
    It was solved by adding in server.xml - <application-server ... global-jndi-lookup-enabled="true">. But now i am getting
    "Error while trying to hand off bad message to Rejection handler bpel://default:welcome1|BPEL_Error_Handler|handleRejection|message due to: java.lang.LinkageError: duplicate class definition: com/oracle/bpel/client/ejb/interfaces/IDeliveryBeanHome. Please address the underlying issue or correct/redeploy the process."
    *For wsif rejection handler*:
    getting error: "Error while trying to hand off bad message to Rejection handler wsif://http//localhost8888/Error_webservices/RejectionHandlerPort?WSDL|handleRejection|message due to: exception on JaxRpc invoke: serialization error: java.lang.IllegalArgumentException: getSerializer requires a Java type and/or an XML type
    Please address the underlying issue or correct/redeploy the process."
    I followed: Link:[http://www.oracle.com/technology/products/integration/adapters/pdf/Adapter_TN_004_Adapter_ErrorManagement.pdf]
    Same bpel/wsif handlers pointing to same BPEL/J2EE services, if configured for BPEL adapters, works absolutly fine and gives proble in ESB.
    Am i missing something in ESB or is there any patch need to be applied? Please help me there.
    Thanks in advance.
    Inder

    Hi
    I even installed SOA Suite 10.1.3.4 MLR#5 Advanced installation with Oracle Express dehyderation store.
    I was able to use WSIF rejection handler with this upgrade... but bpel rejection handler was still a failure.
    So basically i re-visited ESB documentation. it says that ESB will not support bpel rejection handler.
    At least not upto now.
    So Summary:
    For BPEL we can use - file, wsif, bpel & aq rejection and fatal message handler.
    For ESB we can use file, WSIF (10.1.3.4 with MLR#5) & aq rejection and fatal message handler.
    Thanks
    Inder
    Keep going...

  • Could not cast to second level extensions in schema in BPEL

    Hi,
    I use jdeveloper 11g, for calling an external Web service from BPEL process.
    The schema given has multiple extensions defined for its elements. For instance, Customer class is extension to FCO, which in turn is extension to ExtensibleObject class.
    The problem is that an element type ExtensibleObject cannot be casted to Customer class, but only to FCO class.
    I was using Substitute element or type in a Transformation component in BPEL designer. There, in the transformation_xsl view, Customer class is not visible at all, only the FCO appears when applying substitute command.
    Here are excepts from schema file of the Web Service:
    <xs:complexType name="*Customer*">
    <xs:complexContent>
    *<xs:extension base="spml:FCO">*
    <xs:sequence>
    <xs:element name="auc" type="subscriber:AUC" minOccurs="0"
    maxOccurs="unbounded"/>
    <xs:element name="hlr" type="subscriber:HLR" minOccurs="0"/>
    </xs:sequence>
    </xs:extension>
    </xs:complexContent>
    <xsd:complexType name="*FCO*">
    <xsd:complexContent>
    *<xsd:extension base="spml:ExtensibleObject">*
    <xsd:sequence>
    <xsd:element name="identifier" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    </xsd:extension>
    </xsd:complexContent>
    </xsd:complexType>
    </xs:complexType>
    *<xsd:complexType name="ExtensibleObject">*
    <xsd:annotation>
    <xsd:documentation>Abstract base class for all object classes (FCO/SCO)</xsd:documentation>
    </xsd:annotation>
    </xsd:complexType>
    So Customer class extends FCO class, which extends ExtensibleObject class. The question is how to cast an element type ExtensibleObject to Customer?
    Does anyone know if multiple extensions are supported in BPEL of Jdeveloper?
    Also, I was using bpelx:rename and XSD type casting, were I was able to rename the element to 'Customer' part and its respective name space URI was right, but then I didn't know how to continue from there.
    Any help is much appreciated,
    With best regards,
    Lucia
    Edited by: Lucia on Dec 9, 2010 12:35 AM

    Hi,
    Could any one help regarding this
    With Regards,
    Lakshmanan.
    Edited by: Laksh on Aug 22, 2008 12:47 PM
    Edited by: Laksh on Aug 22, 2008 1:41 PM

  • Using BPEL console testing with XML attributes

    I'm having trouble with using an XML attribute in my BPEL process. When I put an attribute on my input element, the BPEL Console test page no longer works. Here's what I'm doing:
    I create a synchronous new BPEL project in JDeveloper using the default input and output XSDs, and add a simple assign to assign the input to the output. When I deploy this and look at it in BPEL console, I can see the input field and enter my value to test.
    Now I go back into JDeveloper and add an attribute to the input element, and then redeploy my process. Now when I go into BPEL console, the Initiate tab no longer has any field for me to enter my value. Clicking the XML Source radio button doesn't help either. (I also tried invoking the BPEL process web service through the app server control - same issue.)
    I'm using JDeveloper 10.1.3.3 with App Server 10.1.3.3.0. Does anyone know how to make the BPEL Console testing work with XSDs that contain attributes?
    Thanks,
    Skip

    A bit more info on this. It doesn't appear that the problem is limited to the console tester. I created another BPEL process which calls my original process, and attempted to set the attribute on the input using the Assign activity. JDeveloper generated this:
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:TestAttributes2ProcessRequest/client:input"/>
    <to variable="Invoke_1_process_InputVariable" part="payload"
    query="/ns1:TestAttributesProcessRequest/ns1:input"/>
    </copy>
    <copy>
    <from expression="'bob'"/>
    <to variable="Invoke_1_process_InputVariable" part="payload"
    query="/ns1:TestAttributesProcessRequest/ns1:input/@attribute1"/>
    </copy>
    </assign>
    As you can see this is mapping a variable into the /TestAttributesProcessRequest/input element and then attempting to set the attribute of that element to the value 'bob'. This compiles just fine but when this code is executed, this error occurs:
    Error in <assign> expression: <to> value is empty at line "87". The XPath expression : "" returns zero node, when applied to document shown below:
    oracle.xml.parser.v2.XMLElement@7efe7efe
    (Line 87 is query="/ns1:TestAttributesProcessRequest/ns1:input/@attribute1"/>)
    Is there something wrong with this generated code? Do I need to do some kind of custom code to set attributes, instead of using the graphical tools in JDeveloper?

  • BPEL processes not available on BPEL console when deployed from JDeveloper

    Installation: SOA Suite 10.1.3.4 (Upgraded through patch) (Standalone OC4J)
    When I deploy the BPEL processes through JDeveloper, they do not show up in the BPEL console. JDeveloper does not display any error message but in fact displays successful deploy. I am able to manually deploy processes from the BPEL console itself or by dropping in the BPEL suitcase in the deploy directory.
    I noticed this issue when I tried installing AIA foundation pack 2.4. The installation showed the message below -
    Failed to read wsdl at "http://AMVAIDYA-US:8888/orabpel/default/AIAErrorTaskAdministrationProcess/AIAErrorTaskAdministrationProcess?wsdl", because "Failed to read WSDL from http://AMVAIDYA-US:8888/orabpel/default/AIAErrorTaskAdministrationProcess/AIAErrorTaskAdministrationProcess?wsdl:WSDL not found".
    Make sure wsdl is valid. You may need to start the OraBPEL server, or make sure the related bpel process is deployed correctly.
    [Potential fix]: If your site has a proxy server, then you may need to configure your BPEL Server, designer and browser with your proxy server configuration settings (see tech note on http://otn.oracle.com/bpel for instructions).
    I noticed that issue is independent of AIA since I cannot deploy any BPEL process through JDeveloper (or even through using the ant deploy in JDev)
    Please help!
    Thanks
    Amol

    I did try the verbose=true option but there are no errors there. The ant deploy task shows up as successful just like it shows from the right click -> Deploy to domain on the BPEL project. I created a sample async BPEL for this - it has just one assign activity with some dummy values for output. It builds fine. If I deploy the jar file created from this manually in the console it works. But it doesnt work from JDev or Ant. Is there anything I missed during the upgrade patch from 10.1.3.1 to 10.1.3.4? I did execute all the post and pre install tasks (including the orabpel, oraesb schema updates etc)
    FYI, I can register an ESB from JDeveloper and it shows up in the ESB console.

  • Creating a Web Service to handle flow between BPEL process and XML Gateway

    I am new to Web Services. I have never created one, yet I have the task of designing the following for a project.
    Any help as to what steps I need to take would be very very helpful. There is a lot of information on XML, SOA and WSDL out there that it can get very confusing, and sometimes you just need someone to point the way
    What I need to do is create a Custom Send and a Custom Receive Program (both web services) handle the message flow between an Enterprise BPEL processes and a Deployed XML Gateway.
    BPEL compresses this XML business object document (for faster transmission), and sends remotely to this Custom Receive web service, which in turn calls a decompress java program and then send the document to the XML gateway inbound web service.
    The Custom Send web service does just the opposite. It needs to take the business object document from XML gateway, call the compress java program and then send to the Enterprise BPEL.
    In a nutshell...these Custom Send/Receive Web services handle the message flow between the Enterprise BPEL process and the Deployed XML Gateway.
    What I need help on...
    -Creating this in JDeveloper- where do I get started?
    -How does a web service receive a compressed file sent to me via BPEL? Does it just sit there waiting for it?
    -Is this a synchronous or asynchronous design?
    -Will this be 2 web services (Send and Receive) or do I make 1 with 2 functionalities
    -How do I call the java compress/decompress program within the web service? (this java function is already created and ready to be called)
    -Is this decompressed business object file an XML schema and an XML message? Or just a message?
    -I need to send this to the XML Gateway Web Service to load. How does that work?
    -I have a Generic XML Gateway WSDL file...I assume I need to take all the info I get and map it to this template? Is this true? How do I do that?
    Like I said, any help would be appreciated. Links answers to my many questions would be fabulous.
    -Jason

    If you are talking about simple XML transformation of the SOAP payload between the client calling your service and the final destination of the message you are routing, the ESB approach may be a better fit.
    If you have more complex transformation in mind, with major processing and rework of the message in the intermediary, you may be better of with using the POJO approach. Write your service and embed a callout to the other service in your implementation. If the two services share the same Java Model, you may even be able to re-use the same Java Bean.
    To get SOAP Element instead of Java bean, you just need to use the noDataBinding option with either genProxy and topDownAssemble (or assemble). See the WS-Guide [1] for details. Chapter 18 will give you all the details about the different WSA command line parameters.
    Hope this helps,
    -Eric
    [1] http://download-west.oracle.com/docs/cd/B31017_01/web.1013/b28974/toc.htm

  • BPEL Component not spawning SOA processes

    I am trying to get a workflow running that passes a payload consisting of several ucm document metadata elements, a few custom elements, and the DocURL and idcReference to a SOA Composite with a BPEL Process on it.
    I have created the Composite in JDeveloper with the SOA plugin, and I have added <binding.adf registryName="" serviceName="soa"> to the service entry in the composite.xml just as the BPEL Component guide tell you to do.
    The BPEL Process wizard creates by default a <process_name>.xsd which is used as the payload for the process. It has 1 input field of type string. I replace that 1 field with dID, dDocName, dDocType, xFormType, xNotificationType, xPackageId, xSubmissionId, xBatchId, xBatchDate, docURL, and idcRef, all of type string.
    I have deployed it to soa-infra and created a Connection Configuration (tested, works) and Process Configuration with a Configuration ID of "soa" and an action pointing to my BPEL composite and process. I have created Mappings to the BPEL payload tying all of the pertinent UCM fields to their appropriate BPEL payload fields.
    I have created a criteria workflow with a step named SendToSOA which has scripts in it exactly like the example given in the BPEL Component Guide, except with "soa" where the Configuration ID should go instead of "process_3". I add another step afterward with review for the "weblogic" user so that I can look at the workflow before it finishes.
    I check in content of the appropriate type , and the workflow is engaged, and says that it passes the SendToSOA step, but when I go to soa-infra in EM and look to see if any new processes are spawned, I see no change. No errors or log messages are produced in any of the logs on the UCM or SOA Managed servers.
    I have rebuilt this process from the ground up about a hundred times. Once in a while, a deployment will start kicking off processes, with no consistent rhyme or reason. Sometimes, (maybe 1 time in 10) when I have built the BPEL component without changing the payload (meaning I can only pass one piece of data to my BPEL process....), the workflow will start spawning processes.
    Once, it started working randomly with a full payload, and it worked fine as a vehicle for 3 separate workflows for an entire day, spawning processes on SOA like a champ, but then because of a design change, I had to change the payload, and add 2 new fields. I deployed the changed BPEL process to SOA with the new payload, and when I went to the update the mappings on the Process Configuration, the Process configuration page made no effort to notice the new payload settings, and the Component Provides no way to tell the Process Configuration to update itself. At first I tried to update the payload in the <processconfiguration>.hda file under <domain>/ucm/cs/data/orabpel/process/, but when I did, the workflow stopped creating bpel processes on the SOA server. Then I tried deleting the configuration and rebuilding it, which did allow me to add the new payload fields in, but still, the workflow would not spawn SOA processes ever again.
    I have tried rebooting the UCM and/or SOA managed servers, I have tried rebooting them both, even between each configuration step. I have rebuilt everything from the ground up literally over a hundred times. I have tried it with changing the names of each of the components, from the composite to the bpel process to the adf binding service name to workflow. I have tried disabling and enabling the workflows, I have tries making the adf binding service name entirely unique, or matching the bpel wsdl client name, or matching the bpel process name, or matching the ucm process configuration id. I have tried many different ucm process configuration ids. I have tried simplifying the workflow script down to just <$obInvokeProcess("soa")$> or <$obConfigID="soa"$><$obInvokeProcess(obConfigID)$>. I have tried this whole process both on my development system and on a VM running UCM and SOA, both in linux and windows installations, the behavior is the same on both systems. I have tried it with Asynchronous, Synchronous and One-way BPEL processes.
    So far, there has been 5 instances of the workflow suddenly working without any explanation. twice with just the default single input payload created by the BPEL wizard in JDeveloper. Once when I had added one extra input field named input2 (string), but this was on the VM on my laptop, so not useful to my developement effert. I tried re-creating the exact same deployment on dev with the EXACT SAME steps, but on dev the workflow would not spawn SOA processes. Once, the process started working with only the script <$obConfigID="soa"$><$obInvokeProcess(obConfigID)$> in the Entry Eventof the workflow, and once with just <$obInvokeProcess("soa")$>, but trying to re-create this with full payloads failed.
    I am at wits end. there is little information on the internet or on otn or on Oracle Support or on intradoc_users yahoo group about the BPEL Component.
    Please help?

    Sorry for the confusion Vlad.
    With "And instance state is being shown as Running" i meant to say was : The instance state that we see in EM whenever we open our composite along with all other details like InstanceID,Name,ConversationIS etc.
    "BPEL component instance is not generated.": i meant to say was that whenevr we click on particular instanceid flow trace window pops up where we see the complete trace. I am here not able to see BPEL process .It didnt get invoke overall.
    Flow of BPEL as mentioned in my first post:
    1. DB is polled using DB adapter(logical delete)
    2. response from DB is passed to BPEL process for furthur processing.
    3. BPEL after some transformation publishes message in jms queue using JMS adapter.
    Hope it helps.
    Regards,
    Karan

Maybe you are looking for

  • How do I get my external microphone to go through my speaker system for on-line karaoke?

    How do I get my external microphone to go through my speaker system for on-line karaoke?

  • Clicking mouse

    hi, recently my mouse button on my macbook has been making a wierd clicking noise, which is quite offputting as i have only had it since november! sounds like it is loose, it does it when i just rest my finger on it.

  • Communication with motor control using RS-232

    I need to use labview to communication with a stepper motor drive using the serial port RS-232. Could someone please get me started I'm not sure if a should use VISA or instrument I/O. And if I use one of those, how would I set it up?

  • Firefox cannot load any of the websites

    whenever a site is clicked it says encoding error and problem loading page

  • IWeb opening problems

    When I open iWeb I get all the folders for my site, but I do not get the actual site itself (where I can make changes).  When I search my Mac for my site I get the same results, the folders for the site but not the site itself.  Any ideas?  Thanks ve