The problem |
Top |
A Solution |
Top |
| Name | Description | Example |
|---|---|---|
| processName | Name of the BPEL process to start | "BPELSayHiAndWait" |
| domainName | Domain of the Process | "default" |
| pswd | Password of the domain | "welcome1" |
| methodToExecute | Name of the method to start the process with | "initiate" |
| contextFileName | Context file, containing all the conncetion properties | "context.properties" |
| pollingLoopTime | Time between th eloops of the watchdog, in milliseconds | 100L |
| outputVariable | Name of the variable containing the response of the asynchronous process | "outputVariable" |
| payload | Payload to start the process with, as a String |
<?xml version='1.0' encoding='windows-1252'?> <BPELSayHiAndWaitProcessRequest xmlns="http://xmlns.oracle.com/BPELSayHiAndWait"> <input>Async Test</input> </BPELSayHiAndWaitProcessRequest> |
| parentId | Id of the instance of the calling process, to preserve the TreeFinder structure. | 60091, obtained from the BPEL parent, using the ora:getInstanceId() XPath function |
| rootId | Id of the root instance, to preserve the TreeFinder structure. | 60090. obtained from the BPEL parent, using getRootId() (to expose) |
| timeout | Timeout, in milliseconds. If this value is set to -1, there is no timeout. In that case, the interest of the watchdog is to get the response from the dehydration store. This method would also be a way to make a synchronous call to an asynchronous process. | 20000L |
| returns | The xml response, as a String. |
<BPELSayHiAndWaitProcessResponse xmlns="http://xmlns.oracle.com/BPELSayHiAndWait"> <result>Hello Async Test!</result> </BPELSayHiAndWaitProcessResponse> |
| Throws | TimeoutException, if the timeout has expired |
Download |
Top |
Patch |
Top |
Discussion |
Top |
As you can see above, the inbound and outbound payloads are represented as Strings, in order to be as generic as possible. This means that as long as you have the schema associated with the asynchronous service to take care of, you can use the following XPath functions:
In 10.1.3.3, there is a new configuration property set as the process level, keepGlobalVariables, that must be set to true, its default value is false. Otherwise, the variable (outputVariable) will not be written into the dehydration store.