Run a BP from a map

Mirjana's picture

This is just an info of how to run a BP from the map.

Example 1:

object BPLauncher;
integer i;

BPLauncher = new("com.sterlingcommerce.woodstock.dmi.routing.BPLauncher","BPname");

i = BPLauncher.run();

Note: Of course it is better to control if a BP is run or invoke by the service in a BP!!!

Example 2:

(pass the value - #KEY, to a Process Data)

object BPLauncher;
integer i;

BPLauncher = new("com.sterlingcommerce.woodstock.dmi.routing.BPLauncher","VC_om_autoReplay_runPerMsg");
BPLauncher.addContentElement("KEY",#KEY);
i = BPLauncher.run();