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
*** Child workflow 6feadc5370184b4998e50875b20084f6 called
271
271
...
272
-
```
272
+
```
273
+
274
+
275
+
### Cross-app Workflow
276
+
277
+
This example demonstrates how to call child workflows and activities in different apps. The multiple Dapr CLI instances can be started using the following commands:
278
+
279
+
<!-- STEP
280
+
name: Run apps
281
+
expected_stdout_lines:
282
+
- '== APP == app1 - triggering app1 workflow'
283
+
- '== APP == app1 - received workflow call'
284
+
- '== APP == app1 - triggering app2 workflow'
285
+
- '== APP == app2 - received workflow call'
286
+
- '== APP == app2 - triggering app3 activity'
287
+
- '== APP == app3 - received activity call'
288
+
- '== APP == app3 - returning activity result'
289
+
- '== APP == app2 - received activity result'
290
+
- '== APP == app2 - returning workflow result'
291
+
- '== APP == app1 - received workflow result'
292
+
- '== APP == app1 - returning workflow result'
293
+
background: true
294
+
sleep: 5
295
+
-->
296
+
297
+
```sh
298
+
pip install ./ext/dapr-ext-workflow
299
+
dapr run --app-id wfexample3 --dapr-grpc-port 50003 python3 cross-app3.py &
300
+
dapr run --app-id wfexample2 --dapr-grpc-port 50002 python3 cross-app2.py &
301
+
dapr run --app-id wfexample1 --dapr-grpc-port 50001 python3 cross-app1.py
302
+
```
303
+
<!-- END_STEP -->
304
+
305
+
When you run the apps, you will see output like this:
306
+
```
307
+
...
308
+
app1 - triggering app2 workflow
309
+
app2 - triggering app3 activity
310
+
...
311
+
```
312
+
among others. This shows that the workflow calls are working as expected.
0 commit comments