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
Copy file name to clipboardExpand all lines: docs/features/child-workflows.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,11 +23,11 @@ class ParentWorkflow extends Workflow
23
23
24
24
## Signaling Child Workflows
25
25
26
-
Parent workflows can signal their child workflows to coordinate behavior or pass data. To signal a child safely without corrupting the parent's execution context, use the `child()` or `children()` methods.
26
+
Parent workflows can signal their child workflows to coordinate behavior or pass data. To signal a child safely without corrupting the parent's execution context, use the `$this->child()` or `$this->children()` methods.
27
27
28
28
### Getting a Child Handle
29
29
30
-
The `child()` method returns a `ChildWorkflowHandle` for the most recently created child workflow:
30
+
The `$this->child()` method returns a `ChildWorkflowHandle` for the most recently created child workflow:
31
31
32
32
```php
33
33
use function Workflow\child;
@@ -52,7 +52,7 @@ class ParentWorkflow extends Workflow
52
52
53
53
### Multiple Children
54
54
55
-
Use the `children()` method to get handles for all child workflows created by the parent:
55
+
Use the `$this->children()` method to get handles for all child workflows created by the parent:
56
56
57
57
```php
58
58
use function Workflow\{all, child};
@@ -79,7 +79,7 @@ class ParentWorkflow extends Workflow
79
79
}
80
80
```
81
81
82
-
The `children()` method returns children in reverse chronological order (most recently created first).
82
+
The `$this->children()` method returns children in reverse chronological order (most recently created first).
83
83
84
84
### Forwarding Signals to Children
85
85
@@ -123,7 +123,7 @@ class ParentWorkflow extends Workflow
123
123
124
124
### Getting Child Workflow IDs
125
125
126
-
You can access the underlying stored workflow ID using the `id()` method. This allows you to store the ID for external systems to signal the child directly.
126
+
You can access the underlying stored workflow ID using the `id()` method on the child handle. This allows you to store the ID for external systems to signal the child directly.
0 commit comments