You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Import the ObjectScript classes, open an embedded python shell and run :
163
163
164
164
```python
165
-
fromgrongier.peximport Utils
165
+
fromiopimport Utils
166
166
Utils.setup()
167
167
```
168
168
@@ -307,7 +307,7 @@ This file will allow us to create the classes to import in the code.<br>
307
307
It gets from the multiple files seen earlier the classes and make them into callable classes.
308
308
That way, when you wish to create a business operation, for example, you can just do:
309
309
```python
310
-
fromgrongier.peximport BusinessOperation
310
+
fromiopimport BusinessOperation
311
311
```
312
312
313
313
## 6.2. The `common` class
@@ -366,7 +366,7 @@ TypeError: if request is not of type Message or IRISObject.
366
366
367
367
368
368
## 6.4. The `inbound_adapter` class
369
-
Inbound Adapter in Python are subclass from grongier.pex.InboundAdapter in Python, that inherit from all the functions of the [common class](#72-the-common-class).<br>
369
+
Inbound Adapter in Python are subclass from iop.InboundAdapter in Python, that inherit from all the functions of the [common class](#72-the-common-class).<br>
370
370
This class is responsible for receiving the data from the external system, validating the data, and sending it to the business service by calling the BusinessHost process_input method.
371
371
This class defines:
372
372
@@ -375,7 +375,7 @@ The message can have any structure agreed upon by the inbound adapter and the bu
375
375
376
376
Example of an inbound adapter ( situated in the src/python/demo/reddit/adapter.py file ):
377
377
```python
378
-
fromgrongier.peximport InboundAdapter
378
+
fromiopimport InboundAdapter
379
379
import requests
380
380
import iris
381
381
import json
@@ -437,7 +437,7 @@ class RedditInboundAdapter(InboundAdapter):
437
437
```
438
438
439
439
## 6.5. The `outbound_adapter` class
440
-
Outbound Adapter in Python are subclass from grongier.pex.OutboundAdapter in Python, that inherit from all the functions of the [common class](#72-the-common-class).<br>
440
+
Outbound Adapter in Python are subclass from iop.OutboundAdapter in Python, that inherit from all the functions of the [common class](#72-the-common-class).<br>
441
441
This class is responsible for sending the data to the external system.
442
442
443
443
The Outbound Adapter gives the Operation the possibility to have a heartbeat notion.
@@ -470,7 +470,7 @@ There are three ways of implementing a business service:<br>
470
470
- Nonpolling business service - The production framework does not initiate the business service. Instead custom code in either a long-running process
471
471
or one that is started at regular intervals initiates the business service by calling the Director.CreateBusinessService() method.
472
472
473
-
Business service in Python are subclass from grongier.pex.BusinessService in Python, that inherit from all the functions of the [business host](#73-the-business_host-class).<br>
473
+
Business service in Python are subclass from iop.BusinessService in Python, that inherit from all the functions of the [business host](#73-the-business_host-class).<br>
474
474
This class defines:
475
475
476
476
`on_process_input`: Receives the message from the inbond adapter via the PRocessInput method and is responsible for forwarding it to target business processes or operations.<br>
@@ -483,7 +483,7 @@ The message can have any structure agreed upon by the inbound adapter and the bu
483
483
484
484
Example of a business service ( situated in the src/python/demo/reddit/bs.py file ):
485
485
```python
486
-
fromgrongier.peximport BusinessService
486
+
fromiopimport BusinessService
487
487
488
488
import iris
489
489
@@ -520,7 +520,7 @@ Typically contains most of the logic in a production.<br>
520
520
A business process can receive messages from a business service, another business process, or a business operation.<br>
521
521
It can modify the message, convert it to a different format, or route it based on the message contents.<br>
522
522
The business process can route a message to a business operation or another business process.<br>
523
-
Business processes in Python are subclass from grongier.pex.BusinessProcess in Python, that inherit from all the functions of the [business host](#73-the-business_host-class).<br>
523
+
Business processes in Python are subclass from iop.BusinessProcess in Python, that inherit from all the functions of the [business host](#73-the-business_host-class).<br>
524
524
This class defines:
525
525
526
526
`on_request`: Handles requests sent to the business process. A production calls this method whenever an initial request for a specific business process arrives on the appropriate queue and is assigned a job in which to execute.<br>
@@ -561,7 +561,7 @@ An instance of IRISObject or subclass of Message that contains the response mess
561
561
562
562
Example of a business process ( situated in the src/python/demo/reddit/bp.py file ):
563
563
```python
564
-
fromgrongier.peximport BusinessProcess
564
+
fromiopimport BusinessProcess
565
565
566
566
from message import PostMessage
567
567
from obj import PostClass
@@ -600,7 +600,7 @@ This class is responsible for sending the data to an external system or a local
600
600
The business operation can optionally use an adapter to handle the outgoing message which is specified overriding the get_adapter_type method.<br>
601
601
If the business operation has an adapter, it uses the adapter to send the message to the external system.<br>
602
602
The adapter can either be a PEX adapter, an ObjectScript adapter or a [python adapter](#75-the-outbound_adapter-class).<br>
603
-
Business operation in Python are subclass from grongier.pex.BusinessOperation in Python, that inherit from all the functions of the [business host](#73-the-business_host-class).<br>
603
+
Business operation in Python are subclass from iop.BusinessOperation in Python, that inherit from all the functions of the [business host](#73-the-business_host-class).<br>
604
604
605
605
### 6.8.1. The dispacth system
606
606
In a business operation it is possbile to create any number of function [similar to the on_message method](#782-the-methods) that will take as argument a [typed request](#711-the-messages) like this `my_special_message_method(self,request: MySpecialMessage)`.
@@ -622,7 +622,7 @@ The response object
622
622
623
623
Example of a business operation ( situated in the src/python/demo/reddit/bo.py file ):
624
624
```python
625
-
fromgrongier.peximport BusinessOperation
625
+
fromiopimport BusinessOperation
626
626
627
627
from message import MyRequest,MyMessage
628
628
@@ -721,13 +721,13 @@ class PostClass:
721
721
722
722
## 6.11. The `messages`
723
723
The messages will contain one or more [objects](#710-the-objects), located in the `obj.py` file.<br>
724
-
Messages, requests and responses all inherit from the `grongier.pex.Message` class.
724
+
Messages, requests and responses all inherit from the `iop.Message` class.
725
725
726
726
These messages will allow us to transfer information between any business service/process/operation.
727
727
728
728
Example of a message ( situated in the src/python/demo/reddit/message.py file ):
729
729
```python
730
-
fromgrongier.peximport Message
730
+
fromiopimport Message
731
731
732
732
from dataclasses import dataclass
733
733
@@ -760,13 +760,13 @@ Start an embedded python shell :
760
760
Then use this class method to add a new py file to the component list for interoperability.
@@ -823,7 +823,7 @@ Start an embedded python shell :
823
823
Then use this static method to migrate the settings file to the iris framework.
824
824
825
825
```python
826
-
fromgrongier.peximport Utils
826
+
fromiopimport Utils
827
827
Utils.migrate()
828
828
```
829
829
@@ -1050,9 +1050,9 @@ PRODUCTIONS = [
1050
1050
]
1051
1051
```
1052
1052
1053
-
## 6.13. Direct use of Grongier.PEX
1053
+
## 6.13. Direct use of IOP
1054
1054
1055
-
If you don't want to use the register_component util. You can add a Grongier.PEX.BusinessService component directly into the management portal and configure the properties :
1055
+
If you don't want to use the register_component util. You can add a IOP.BusinessService component directly into the management portal and configure the properties :
0 commit comments