When programming in any language you often use properties to set particular variables. You use this to reduce "hard-coded" settings and to be independent of different environments. For Oracle BPEL thare are many solutions to use a property mechanism.
Within a BPEL process you can define variables and assign expressions to it. These variables you can use this in your BPEL process. While these variables are used along the BPEL proces, you define tprhese as global variables.
In the BPEL process an assign must be cartied out to set the variable:
It is possible to define propertie settings within the BPEL process. The properties are set globally and outside the BPEL process. The properties can be accessed via a internal function.
In the bpel.xml file add the following lines, just before the end-of :
The properties are accessed in the BPEL process (.BPEL file) via the ora:getPreference() function:
In a next article, we discuss how to use properties from the database an call this via a single BPEL process.