Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Run code on Business Process start

Question
Eduard Lebedyuk · Aug 28, 2019

Run code on Business Process start

I want to execute initialization code on the start of my business process.

I thought OnInit is a way to go, but apparently not - ^dbg global remains empty:

Class Test.BP Extends Ens.BusinessProcess
{
Method OnInit() As %Status
{
    Set ^dbg = 1
    Quit $$$OK
}
}

Ideas?

#Business Process (BPL) #Ensemble

Source URL:https://community.intersystems.com/post/run-code-business-process-start