In BPM 11g, I'm using a Service to select a row from an external database passing a parameter using a Database Adapter. Works fine when a row is returned. But if no row is returned (which can happen because no match is found on the Select based on the parameter value), I'm getting an error on the composite because the Output Data Association has the return values, including integers, mapped to a Data Object I defined in the process. Well if no row is found, the integer value is empty, and errors out trying to save it.
How do I handle this situation?
The specific message is this:
The expression bpmn:getDataOutput('wm91AInterfaceMainCollection')/ns:Wm91AInterfaceMain/ns:board is empty. An attempt to read or copy data referenced or computed by the XPath expression either had invalid data, according to the XML schema, or did not contain certain optional data. Ensure that the variable or expression result named in the error message is not empty. Enable XML schema validation of related data elements to ensure the run-time data is valid.
I must be missing something obvious here, but cannot find a way to handle this. Thanks in advance!
Dan - Never mind about my request for an example. I figured it out. My problem was that the destination variable was a primitive process variable of type Integer, thus not allowing the creation of an XSLT. Once I created a Complex process data object containing that Integer, I could create an XSLT with an If statement. Thanks again.