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
@@ -296,7 +296,7 @@ This file will allow us to create the classes to import in the code.<br>
296
296
It gets from the multiple files seen earlier the classes and make them into callable classes.
297
297
That way, when you wish to create a business operation, for example, you can just do:
298
298
```python
299
-
fromgrongier.peximport BusinessOperation
299
+
fromiopimport BusinessOperation
300
300
```
301
301
302
302
## 7.2. The `common` class
@@ -355,7 +355,7 @@ TypeError: if request is not of type Message or IRISObject.
355
355
356
356
357
357
## 7.4. The `inbound_adapter` class
358
-
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>
358
+
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>
359
359
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.
360
360
This class defines:
361
361
@@ -364,7 +364,7 @@ The message can have any structure agreed upon by the inbound adapter and the bu
364
364
365
365
Example of an inbound adapter ( situated in the src/python/demo/reddit/adapter.py file ):
366
366
```python
367
-
fromgrongier.peximport InboundAdapter
367
+
fromiopimport InboundAdapter
368
368
import requests
369
369
import iris
370
370
import json
@@ -426,7 +426,7 @@ class RedditInboundAdapter(InboundAdapter):
426
426
```
427
427
428
428
## 7.5. The `outbound_adapter` class
429
-
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>
429
+
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>
430
430
This class is responsible for sending the data to the external system.
431
431
432
432
The Outbound Adapter gives the Operation the possibility to have a heartbeat notion.
@@ -459,7 +459,7 @@ There are three ways of implementing a business service:<br>
459
459
- Nonpolling business service - The production framework does not initiate the business service. Instead custom code in either a long-running process
460
460
or one that is started at regular intervals initiates the business service by calling the Director.CreateBusinessService() method.
461
461
462
-
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>
462
+
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>
463
463
This class defines:
464
464
465
465
`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>
@@ -472,7 +472,7 @@ The message can have any structure agreed upon by the inbound adapter and the bu
472
472
473
473
Example of a business service ( situated in the src/python/demo/reddit/bs.py file ):
474
474
```python
475
-
fromgrongier.peximport BusinessService
475
+
fromiopimport BusinessService
476
476
477
477
import iris
478
478
@@ -509,7 +509,7 @@ Typically contains most of the logic in a production.<br>
509
509
A business process can receive messages from a business service, another business process, or a business operation.<br>
510
510
It can modify the message, convert it to a different format, or route it based on the message contents.<br>
511
511
The business process can route a message to a business operation or another business process.<br>
512
-
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>
512
+
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>
513
513
This class defines:
514
514
515
515
`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>
@@ -550,7 +550,7 @@ An instance of IRISObject or subclass of Message that contains the response mess
550
550
551
551
Example of a business process ( situated in the src/python/demo/reddit/bp.py file ):
552
552
```python
553
-
fromgrongier.peximport BusinessProcess
553
+
fromiopimport BusinessProcess
554
554
555
555
from message import PostMessage
556
556
from obj import PostClass
@@ -589,7 +589,7 @@ This class is responsible for sending the data to an external system or a local
589
589
The business operation can optionally use an adapter to handle the outgoing message which is specified overriding the get_adapter_type method.<br>
590
590
If the business operation has an adapter, it uses the adapter to send the message to the external system.<br>
591
591
The adapter can either be a PEX adapter, an ObjectScript adapter or a [python adapter](#75-the-outbound_adapter-class).<br>
592
-
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>
592
+
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>
593
593
594
594
### 7.8.1. The dispacth system
595
595
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)`.
@@ -611,7 +611,7 @@ The response object
611
611
612
612
Example of a business operation ( situated in the src/python/demo/reddit/bo.py file ):
613
613
```python
614
-
fromgrongier.peximport BusinessOperation
614
+
fromiopimport BusinessOperation
615
615
616
616
from message import MyRequest,MyMessage
617
617
@@ -698,13 +698,13 @@ class PostClass:
698
698
699
699
## 7.11. The `messages`
700
700
The messages will contain one or more [objects](#710-the-objects), located in the `obj.py` file.<br>
701
-
Messages, requests and responses all inherit from the `grongier.pex.Message` class.
701
+
Messages, requests and responses all inherit from the `iop.Message` class.
702
702
703
703
These messages will allow us to transfer information between any business service/process/operation.
704
704
705
705
Example of a message ( situated in the src/python/demo/reddit/message.py file ):
706
706
```python
707
-
fromgrongier.peximport Message
707
+
fromiopimport Message
708
708
709
709
from dataclasses import dataclass
710
710
@@ -737,13 +737,13 @@ Start an embedded python shell :
737
737
Then use this class method to add a new py file to the component list for interoperability.
0 commit comments