File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 11from typing import Any
22from iop import BusinessProcess
33
4- from msg import MyGenerator , MyGeneratorResponse
4+ from msg import MyGenerator
55
66class MyGeneratorProcess (BusinessProcess ):
77
88 def on_request (self , request : Any ) -> Any :
9- rsp = self .send_request_sync (
10- target = "User.MyGeneratorOperation" ,
11- request = MyGeneratorResponse (my_other_string = "Hello, World!" ),
12- timeout = 10 ,
13- description = "My generator request" )
149 gen = self .send_generator_request (
1510 target = "User.MyGeneratorOperation" ,
1611 request = MyGenerator (my_string = "Hello, World!" ),
1712 timeout = 10 ,
1813 description = "My generator request" )
14+
1915 for response in gen :
2016 self .log_info (f"Received response: { response } " )
Original file line number Diff line number Diff line change 1212 - API documentation :
1313 - Command Line Interface : command-line.md
1414 - Python API : python-api.md
15+ - Component Interaction : component-interaction.md
1516 - DTL Support : dtl.md
1617 - Logging : logging.md
1718 - Debugging : debug.md
You can’t perform that action at this time.
0 commit comments