08.06.2014 Views

Download PDF (1.3 MB) - IBM Redbooks

Download PDF (1.3 MB) - IBM Redbooks

Download PDF (1.3 MB) - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.1 Process Designer development best practices<br />

The following best practices pertain to the development of high-performance business<br />

processes using the Process Designer.<br />

3.1.1 Clear variables in exposed human services that are not intended to end<br />

Data from a taskless human service is not garbage-collected until the service reaches the<br />

endpoint. If a human service is developed that is not intended to reach an endpoint, such as a<br />

single page or redirect, then memory is not garbage-collected until the Enterprise JavaBeans<br />

(EJB) timeout occurs (two hours by default). To reduce memory use for these human<br />

services, set variables in the coach to null in a custom HTML block.<br />

3.1.2 Do not use multi-instance loops in the system lane or for batch activities<br />

Where possible, avoid using sub-BPDs as the activity of a multi-instance loop (MIL). This step<br />

is not an issue if the first activity is a user task instead of a system lane task. However, do not<br />

use MILs for batch or system lane activities. This pattern can generate an excessive number<br />

of tokens for the BPD to process. Also, activities in MILs in the system lane are run on a<br />

single thread, which is clearly not optimal on multiprocessor core servers.<br />

Figure 3-1 shows an example of a poor BPD design pattern.<br />

Figure 3-1 Poor BPD design pattern<br />

24 <strong>IBM</strong> Business Process Manager V8.0 Performance Tuning and Best Practices

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!