Example:
<bpelx:exec name="Assign_Title" language="java" version="1.3"> <![CDATA[java.lang.String titleValue=null; oracle.xml.parser.v2.XMLElement titleValueElement= (oracle.xml.parser.v2.XMLElement)getVariableData("inputVariable", "payload" , "/client:TesterProcessRequest/client:input"); titleValue=titleValueElement.getText(); setTitle("Employee " + titleValue); addAuditTrailEntry("Employee " + titleValue);]]> </bpelx:exec>
This code will result in a title starting with the text Employee followed by (concatenate) the value from the inputVariable, element input. In my case this will be the employee id.
Modifying the setTitle will improve tracebility. By doing a search on the text Employee and the id of the employee you want to find the performed data updates for, will result in a list of all instances with that title. A very useful change that I would advise to include in all BPEL processes as a Best Practice.
Geen opmerkingen:
Een reactie posten