Skip to content

Instantly share code, notes, and snippets.

@hasokeric
Created August 31, 2016 15:27
Show Gist options
  • Save hasokeric/7df64850b6805cf99dcf5838bb62f568 to your computer and use it in GitHub Desktop.
Save hasokeric/7df64850b6805cf99dcf5838bb62f568 to your computer and use it in GitHub Desktop.
Get Current Instance of Running BO within a BPM
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
// 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment