Written by

Project Manager & Head of Interoperability at Salutic Soluciones, S.L.
Question Kurro Lopez · Oct 3, 2024

How to call BO to other BO

Hi all,

I'm wondering if it is possible to call a Business Operation from other Business Operation.

I have a BO that writes logs into a database, using a personal message. I can create a set obj=##class(MyLogs).%New() but the BO has all parameters about connection.

Is it possible?

Best regards.

Product version: IRIS 2021.1
$ZV: IRIS for Windows (x86-64) 2021.1.3 (Build 389U) Wed Feb 15 2023 14:50:06 EST

Comments

Enrico Parisi · Oct 3, 2024

I (and not only me) don't consider it "best practice" but sometime is necessary and I admit I have done it a few times.

You can definitely call another BO from a BO, the only limitation is that you can only make a sync call.

Just use ..SendRequestSync() method, same as you would do in a BP.

0
Enrico Parisi  Oct 4, 2024 to Luis Angel Pérez Ramos

True, only if you don't need/want a response from the called BO.

0