Reducing the completion persist level
In this recipe, we'll change conditions that can govern when dehydration is performed by the BPEL engine upon process completion.
Getting ready
You'll also need a composite loaded into JDeveloper for this recipe. We have provided one with this chapter's source code, available from the book's website.
You'll also need to have set the in inMemoryOptimization
flag; see the Changing a BPEL process to be transient recipe for instructions on doing this.
How to do it...
Follow these steps to reduce the BPEL completion persist level:
Load the composite into JDeveloper and open the
composite.xml
file.Locate the
<component>
section, and add aproperty
element, as follows:<property name="bpel.config.completionPersistPolicy">faulted</property>
The file should look similar to the following output:
How it works...
When we mark a process as being transient (executed totally in-memory), we can control when the completed process data is persisted to the database...