hasokeric
8/31/2016 - 3:27 PM

Get Current Instance of Running BO within a BPM

Get Current Instance of Running BO within a BPM

// It looks like in E10.1 the defaultImpl is set to private and 
// they created a getter called DefaultImpl
this.DefaultImpl 
//This will give you access to the current instance of the BO within BPM. 
//For example on Order Update BPM you need to run a GetByID You woudl do as follows

SalesOrderTableset sots = this.DefaultImpl.GetByID(5555);
//No need to instanciate another Sales Order BO
this.defaultImpl 
//This will give you access to the current instance of the BO within BPM. 
//For example on Order Update BPM you need to run a GetByID You woudl do as follows

SalesOrderTableset sots = this.defaultImpl.GetByID(5555);
//No need to instanciate another Sales Order BO