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

Home > Send request to BP on production start

Question
Eduard Lebedyuk · May 29, 2019

Send request to BP on production start

How do I send request on production start?

Here's what I got so far in my production class:

ClassMethod OnStart(pTimeStarted As %String) As %Status
{
    job ..InitialTraining()
    quit 1
}

lassMethod InitialTraining() As %Status
{
    hang 5
    set sc = ##class(EnsLib.Testing.Service).SendTestRequest(...)
    quit sc
}

Is there a better way without hang, etc?

#Business Process (BPL) #Ensemble

Source URL:https://community.intersystems.com/post/send-request-bp-production-start