By Phil Coulthard

Avoid large server-side JavaScript blocks within BPDs and services, because JavaScript is interpreted and therefore is slower to process than other compiled mechanisms, such as Java™ code.

Furthermore, large JavaScript scripts often indicate that too much integration logic is being placed in the business process layer instead of having that logic encapsulated in Java code, or in an Advanced Integration service if you are using IBM™ Business Process Manager Advanced, or externally in an Enterprise Service Bus.

Beyond performance concerns, complex JavaScript runs the risk of infinite loops and other coding errors that are hard to triage and recover from.

Applicable editions: Express, Standard, Advanced.

Applicable releases: All

Source: IBM Business Process Manager V8.5 Performance Tuning and Best Practices Redpaper

1 comment on"Good practice – Avoid excessive use of server-side JavaScript"

  1. spartanhetfield May 22, 2015

    sometimes i need to use a lot of javascript cause i must test the process can i do something different to test the process?
    Greetings from México

Join The Discussion

Your email address will not be published.