Yes, You're right. Sorry for the confusion. By saying Python adapter, I meant EnsLib.PEX.BusinessOperation and also you're perfectly correct about the declaration too. irisnative is unnecessary for local interactions. I'm just trying things on iris so don't take me for an expert😄.
Your code is correct and I would like to add that - 'from EnsLib.PEX import BusinessOperation' would be the best.
Thanks! Yes I can tell you that. For registering a class into a production,
- Navigate to Interoperability > Productions.
- Open or create a new production.
- Add a new Business Operation.
- Select the Python Adapter.
- In the Settings, specify your Python class name
- The adapter will invoke the method of the Python class whenever the operation receives input.
And the difference between them is- Embedded Python runs natively within InterSystems IRIS, allowing you to build and integrate IRIS components like services or operations directly using Python. In contrast, irisnative is an external Python library for connecting to and interacting with an IRIS database from outside the IRIS environment, such as standalone scripts or external applications.
Congratulations! @Alberto Fuentes