iris-pex-embedded-python 3.0.1b8__py3-none-any.whl → 3.0.1b9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of iris-pex-embedded-python might be problematic. Click here for more details.
- iop/_business_host.py +33 -0
- iop/cls/IOP/Common.cls +23 -0
- {iris_pex_embedded_python-3.0.1b8.dist-info → iris_pex_embedded_python-3.0.1b9.dist-info}/METADATA +1 -1
- {iris_pex_embedded_python-3.0.1b8.dist-info → iris_pex_embedded_python-3.0.1b9.dist-info}/RECORD +8 -8
- {iris_pex_embedded_python-3.0.1b8.dist-info → iris_pex_embedded_python-3.0.1b9.dist-info}/LICENSE +0 -0
- {iris_pex_embedded_python-3.0.1b8.dist-info → iris_pex_embedded_python-3.0.1b9.dist-info}/WHEEL +0 -0
- {iris_pex_embedded_python-3.0.1b8.dist-info → iris_pex_embedded_python-3.0.1b9.dist-info}/entry_points.txt +0 -0
- {iris_pex_embedded_python-3.0.1b8.dist-info → iris_pex_embedded_python-3.0.1b9.dist-info}/top_level.txt +0 -0
iop/_business_host.py
CHANGED
|
@@ -152,6 +152,39 @@ class _BusinessHost(_Common):
|
|
|
152
152
|
|
|
153
153
|
return self.iris_handle.dispatchSendRequestAsync(target,request,description)
|
|
154
154
|
|
|
155
|
+
def send_multi_request_sync(self, target_request:list, timeout=-1, description=None)->list:
|
|
156
|
+
""" Send the specified list of tuple (target,request) to business process or business operation synchronously.
|
|
157
|
+
|
|
158
|
+
Parameters:
|
|
159
|
+
target_request: a list of tuple (target,request) that specifies the name of the business process or operation to receive the request.
|
|
160
|
+
The target is the name of the component as specified in the Item Name property in the production definition, not the class name of the component.
|
|
161
|
+
The request is either an instance of a class that is a subclass of Message class or of IRISObject class.
|
|
162
|
+
timeout: an optional integer that specifies the number of seconds to wait before treating the send request as a failure. The default value is -1, which means wait forever.
|
|
163
|
+
description: an optional string parameter that sets a description property in the message header. The default is None.
|
|
164
|
+
Returns:
|
|
165
|
+
the list of tuple (target,request,response,status).
|
|
166
|
+
"""
|
|
167
|
+
# create a list of iris.Ens.CallStructure for each target_request
|
|
168
|
+
call_list = []
|
|
169
|
+
for target,request in target_request:
|
|
170
|
+
call = iris.cls("Ens.CallStructure")._New()
|
|
171
|
+
call.TargetDispatchName = target
|
|
172
|
+
call.Request = self._dispatch_serializer(request)
|
|
173
|
+
call_list.append(call)
|
|
174
|
+
# call the dispatchSendMultiRequestSync method
|
|
175
|
+
response_list = self.iris_handle.dispatchSendRequestSyncMultiple(call_list,timeout)
|
|
176
|
+
# create a list of tuple (target,request,response,status)
|
|
177
|
+
result = []
|
|
178
|
+
for i in range(len(target_request)):
|
|
179
|
+
result.append(
|
|
180
|
+
(target_request[i][0],
|
|
181
|
+
target_request[i][1],
|
|
182
|
+
self._dispatch_deserializer(response_list[i].Response),
|
|
183
|
+
response_list[i].ResponseCode
|
|
184
|
+
))
|
|
185
|
+
return result
|
|
186
|
+
|
|
187
|
+
|
|
155
188
|
def _serialize_pickle_message(self,message):
|
|
156
189
|
""" Converts a python dataclass message into an iris iop.message.
|
|
157
190
|
|
iop/cls/IOP/Common.cls
CHANGED
|
@@ -149,6 +149,29 @@ Method dispatchSendRequestSync(
|
|
|
149
149
|
quit $g(objResponse)
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
+
Method dispatchSendRequestSyncMultiple(
|
|
153
|
+
pCallStructList As %List,
|
|
154
|
+
pTimeout As %Numeric = -1) As %List
|
|
155
|
+
{
|
|
156
|
+
set builtins = ##class(%SYS.Python).Import("builtins")
|
|
157
|
+
// Convert %List to multidimensional array
|
|
158
|
+
set tCallStructList=builtins.len(pCallStructList)
|
|
159
|
+
for i=0:1:builtins.len(pCallStructList)-1 {
|
|
160
|
+
set tCallStructList(i+1) = pCallStructList."__getitem__"(i)
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
set tSC = ..SendRequestSyncMultiple(.tCallStructList,pTimeout)
|
|
164
|
+
if $$$ISERR(tSC) throw ##class(%Exception.StatusException).CreateFromStatus(tSC)
|
|
165
|
+
|
|
166
|
+
// Convert multidimensional array to Python list
|
|
167
|
+
set tResponseList = builtins.list()
|
|
168
|
+
|
|
169
|
+
for i=1:1:tCallStructList {
|
|
170
|
+
do tResponseList.append(tCallStructList(i))
|
|
171
|
+
}
|
|
172
|
+
quit tResponseList
|
|
173
|
+
}
|
|
174
|
+
|
|
152
175
|
Method dispatchSendRequestAsync(
|
|
153
176
|
target,
|
|
154
177
|
request,
|
{iris_pex_embedded_python-3.0.1b8.dist-info → iris_pex_embedded_python-3.0.1b9.dist-info}/RECORD
RENAMED
|
@@ -92,7 +92,7 @@ intersystems_iris/pex/_OutboundAdapter.py,sha256=ao2Ubbta2DcrQGdzDUD_j1Zsk8bvUfc
|
|
|
92
92
|
intersystems_iris/pex/__init__.py,sha256=l_I1dpnluWawbFrGMDC0GLHpuHwjbpd-nho8otFX6TE,1379
|
|
93
93
|
iop/__init__.py,sha256=zHFF0Znipx1fwHYUEBZjNOYoZH1ro7z4IgYDU32kdn0,1067
|
|
94
94
|
iop/__main__.py,sha256=pQzVtkDhAeI6dpNRC632dVk2SGZZIEDwDufdgZe8VWs,98
|
|
95
|
-
iop/_business_host.py,sha256=
|
|
95
|
+
iop/_business_host.py,sha256=Eyt-q3Dx30wfRbz88KqdrCDXSqMyWrptI_vBl2BPTjM,24369
|
|
96
96
|
iop/_business_operation.py,sha256=P824IzO89LCKnoNHZk64OZBDHcomHpjhKmMT89bS6TI,3500
|
|
97
97
|
iop/_business_process.py,sha256=F4NIQcwQ5u8yiAPpaN14OAXxbKJsRAGm5S4lrbgA3oI,13296
|
|
98
98
|
iop/_business_service.py,sha256=sX8J-2-0Go6uIuPYa0A5N9Nn9rY5lV6a05v4q78qDC8,3726
|
|
@@ -109,7 +109,7 @@ iop/_utils.py,sha256=3rhO33PLZ1ESJiboQFwfIGUvHV7RBSbq6A2CPyMaojA,16269
|
|
|
109
109
|
iop/cls/IOP/BusinessOperation.cls,sha256=lrymqZ8wHl5kJjXwdjbQVs5sScV__yIWGh-oGbiB_X0,914
|
|
110
110
|
iop/cls/IOP/BusinessProcess.cls,sha256=s3t38w1ykHqM26ETcbCYLt0ocjZyVVahm-_USZkuJ1E,2855
|
|
111
111
|
iop/cls/IOP/BusinessService.cls,sha256=7ebn32J9PiZXUgXuh5Xxm_7X6zHBiqkJr9c_dWxbPO8,1021
|
|
112
|
-
iop/cls/IOP/Common.cls,sha256=
|
|
112
|
+
iop/cls/IOP/Common.cls,sha256=EOsnJBdJXO46MBUwhLWQDf6G5K4CFhOzIWCycybv_H0,6478
|
|
113
113
|
iop/cls/IOP/Director.cls,sha256=DlxyFvsJjB1FVImFVNkRpQy7XXIMRoDZOLpEdMlwgOU,1885
|
|
114
114
|
iop/cls/IOP/InboundAdapter.cls,sha256=GeoCm6q5HcLJ5e4VxgqXiErJXqolBbpKwpunaNzpvjU,610
|
|
115
115
|
iop/cls/IOP/Message.cls,sha256=ecLsPKUcW0jUx1tDpyrMDlaTgrs61L8ecuuZTCbCxV8,8209
|
|
@@ -135,9 +135,9 @@ iris/iris_ipm.pyi,sha256=j7CNUZcjeDu5sgeWUZJO_Qi4vQmHh6aD-jPWv8OdoUs,374
|
|
|
135
135
|
iris/iris_utils.py,sha256=kg80O3yRpHIutM-mCyr4xCeTvKWPE-Kai-b6Dxw4vQ4,9882
|
|
136
136
|
irisnative/_IRISNative.py,sha256=HQ4nBhc8t8_5OtxdMG-kx1aa-T1znf2I8obZOPLOPzg,665
|
|
137
137
|
irisnative/__init__.py,sha256=6YmvBLQSURsCPKaNg7LK-xpo4ipDjrlhKuwdfdNb3Kg,341
|
|
138
|
-
iris_pex_embedded_python-3.0.
|
|
139
|
-
iris_pex_embedded_python-3.0.
|
|
140
|
-
iris_pex_embedded_python-3.0.
|
|
141
|
-
iris_pex_embedded_python-3.0.
|
|
142
|
-
iris_pex_embedded_python-3.0.
|
|
143
|
-
iris_pex_embedded_python-3.0.
|
|
138
|
+
iris_pex_embedded_python-3.0.1b9.dist-info/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
|
|
139
|
+
iris_pex_embedded_python-3.0.1b9.dist-info/METADATA,sha256=u6WKpeyWwNYYoC2ka-t2kACN6G-lCiSYsEzolRWd8Z0,49482
|
|
140
|
+
iris_pex_embedded_python-3.0.1b9.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
|
141
|
+
iris_pex_embedded_python-3.0.1b9.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
|
|
142
|
+
iris_pex_embedded_python-3.0.1b9.dist-info/top_level.txt,sha256=jkWtvFKOp1Q-uO_VpGpfx5TcW7DS39z1liOAVp6zLig,47
|
|
143
|
+
iris_pex_embedded_python-3.0.1b9.dist-info/RECORD,,
|
{iris_pex_embedded_python-3.0.1b8.dist-info → iris_pex_embedded_python-3.0.1b9.dist-info}/LICENSE
RENAMED
|
File without changes
|
{iris_pex_embedded_python-3.0.1b8.dist-info → iris_pex_embedded_python-3.0.1b9.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|