@aj-shadow/actorjs-documentation-text 0.0.0-aj-beta.221
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.
- package/.gitattributes +26 -0
- package/Documentation/Document-global-Be-100-more-efficient.txt +31 -0
- package/Documentation/Document-global-actorjs-trigger-mock-and-intercept-anything.txt +21 -0
- package/Documentation/Document-global-advanced-visualization.txt +28 -0
- package/Documentation/Document-global-debugging.txt +4 -0
- package/Documentation/Document-global-divide-and-reuse.txt +37 -0
- package/Documentation/Document-global-general-separation.txt +2 -0
- package/Documentation/Document-global-markup-anchor.txt +6 -0
- package/Documentation/Document-global-markup-api-status.txt +39 -0
- package/Documentation/Document-global-markup-chart-line.txt +18 -0
- package/Documentation/Document-global-markup-documentation-status.txt +39 -0
- package/Documentation/Document-global-markup-documentation.txt +72 -0
- package/Documentation/Document-global-markup-embed.txt +6 -0
- package/Documentation/Document-global-markup-flowchart.txt +88 -0
- package/Documentation/Document-global-markup-html.txt +122 -0
- package/Documentation/Document-global-markup-ie.txt +18 -0
- package/Documentation/Document-global-markup-image.txt +55 -0
- package/Documentation/Document-global-markup-lab.txt +63 -0
- package/Documentation/Document-global-markup-markup.txt +21 -0
- package/Documentation/Document-global-markup-navigation.txt +25 -0
- package/Documentation/Document-global-markup-node-diagram.txt +163 -0
- package/Documentation/Document-global-markup-note.txt +6 -0
- package/Documentation/Document-global-markup-ref.txt +6 -0
- package/Documentation/Document-global-markup-sequence-diagram.txt +215 -0
- package/Documentation/Document-global-markup-state-machine.txt +121 -0
- package/Documentation/Document-global-markup-table.txt +34 -0
- package/Documentation/Document-global-navigation-pane.txt +3 -0
- package/Documentation/Document-global-navigation.txt +2 -0
- package/Documentation/Document-global-specialized-javascript-editors.txt +2 -0
- package/Documentation/Document-global-stacks-connection.txt +2 -0
- package/Documentation/Document-global-stacks-server.txt +2 -0
- package/Documentation/Document-global-test-environment-overview.txt +15 -0
- package/Documentation/Document-global-the-architecture.txt +51 -0
- package/Documentation/Document-global-the-development-environment.txt +5 -0
- package/Documentation/Document-global-the-test-environment.txt +15 -0
- package/Documentation/Document-global-think-ahead.txt +35 -0
- package/Documentation/Document-global-thinking-in-actors-unlimited.txt +1 -0
- package/Documentation/Document-global-what-is-a-stack.txt +2 -0
- package/Documentation/Document-global-why-actorjs.txt +52 -0
- package/Documentation/Document-global-why-actors-unlimited.txt +182 -0
- package/Documentation/Document-global-x-test-case-tool.txt +2 -0
- package/Documentation/Navigation-Documentation-actorjs-global.txt +372 -0
- package/Documentation/Navigation-Documentation-actorsite-global.txt +363 -0
- package/Documentation/abstractions/Document-global-addressing.txt +81 -0
- package/Documentation/abstractions/Document-global-configuration-floor.txt +2 -0
- package/Documentation/abstractions/Document-global-content.txt +3 -0
- package/Documentation/abstractions/Document-global-functions-test.txt +4 -0
- package/Documentation/abstractions/Document-global-functions-unde-test.txt +2 -0
- package/Documentation/abstractions/Document-global-load-test.txt +3 -0
- package/Documentation/abstractions/Document-global-repo.txt +79 -0
- package/Documentation/abstractions/Document-global-shared-data.txt +5 -0
- package/Documentation/abstractions/Document-global-system-to-test.txt +2 -0
- package/Documentation/abstractions/Document-global-system-under-test.txt +3 -0
- package/Documentation/abstractions/Document-global-test-data.txt +251 -0
- package/Documentation/abstractions/Document-global-test-suite.txt +37 -0
- package/Documentation/abstractions/Document-global-verification-data.txt +103 -0
- package/Documentation/abstractions/actor/Document-global-actor-condition.txt +74 -0
- package/Documentation/abstractions/actor/Document-global-actor-local.txt +44 -0
- package/Documentation/abstractions/actor/Document-global-actor-originating.txt +100 -0
- package/Documentation/abstractions/actor/Document-global-actor-proxy.txt +119 -0
- package/Documentation/abstractions/actor/Document-global-actor-terminating.txt +101 -0
- package/Documentation/abstractions/actor/Document-global-actor.txt +90 -0
- package/Documentation/abstractions/actor/Document-global-execution-states.txt +21 -0
- package/Documentation/abstractions/actorpart/Document-global-actorpart.txt +2 -0
- package/Documentation/abstractions/stack/Document-global-client-connection.txt +3 -0
- package/Documentation/abstractions/stack/Document-global-connection.txt +3 -0
- package/Documentation/abstractions/stack/Document-global-decoder.txt +3 -0
- package/Documentation/abstractions/stack/Document-global-encoder.txt +3 -0
- package/Documentation/abstractions/stack/Document-global-message.txt +4 -0
- package/Documentation/abstractions/stack/Document-global-server-connection.txt +3 -0
- package/Documentation/abstractions/stack/Document-global-stack.txt +12 -0
- package/Documentation/abstractions/stack/Document-global-worker.txt +3 -0
- package/Documentation/abstractions/test-case/Document-global-phases.txt +30 -0
- package/Documentation/abstractions/test-case/Document-global-test-case-result.txt +23 -0
- package/Documentation/abstractions/test-case/Document-global-test-case.txt +199 -0
- package/Documentation/actor-api/Document-global-actor-part.txt +7 -0
- package/Documentation/actor-api/Document-global-actor.txt +375 -0
- package/Documentation/actor-api/Document-global-async.txt +176 -0
- package/Documentation/actor-api/Document-global-client-stack.txt +215 -0
- package/Documentation/actor-api/Document-global-content.txt +106 -0
- package/Documentation/actor-api/Document-global-logger.txt +426 -0
- package/Documentation/actor-api/Document-global-process.txt +7 -0
- package/Documentation/actor-api/Document-global-server-stack.txt +213 -0
- package/Documentation/actor-api/Document-global-shared-data.txt +259 -0
- package/Documentation/actor-api/Document-global-test-data.txt +816 -0
- package/Documentation/actor-api/Document-global-timer.txt +70 -0
- package/Documentation/actor-api/Document-global-verification-data.txt +624 -0
- package/Documentation/connection-worker-api/Document-global-logger.txt +3 -0
- package/Documentation/documentation-references.json +199 -0
- package/Documentation/embedded/Document-global-test-case-result.txt +10 -0
- package/Documentation/howto/Document-global-create-actor.txt +1 -0
- package/Documentation/howto/Document-global-create-stack.txt +1 -0
- package/Documentation/howto/Document-global-create-test-case.txt +1 -0
- package/Documentation/howto/Document-global-create-test-suite.txt +1 -0
- package/Documentation/howto/Document-global-define-addresses.txt +1 -0
- package/Documentation/howto/Document-global-define-fut.txt +1 -0
- package/Documentation/howto/Document-global-define-sut.txt +16 -0
- package/Documentation/howto/Document-global-full-workflow.txt +143 -0
- package/Documentation/howto/Document-global-normal-workflow.txt +58 -0
- package/Documentation/howto/Document-global-prerequisites.txt +8 -0
- package/Documentation/howto/prerequisites/Document-global-install-actorjs.txt +64 -0
- package/Documentation/howto/prerequisites/Document-global-install-git.txt +26 -0
- package/Documentation/howto/prerequisites/Document-global-install-nodejs.txt +19 -0
- package/Documentation/markup/Document-global-markup-test-case.txt +6 -0
- package/Documentation/markup/Document-global-markup-test-suite.txt +13 -0
- package/Documentation/markup/embed/Document-global-inner_markup_tc.txt +164 -0
- package/Documentation/nodejs-api/Document-global-fs.txt +7 -0
- package/Documentation/stack-api/Document-global-ascii-dictionary.txt +108 -0
- package/Documentation/stack-api/Document-global-binary-log.txt +91 -0
- package/Documentation/stack-api/Document-global-bit-byte.txt +80 -0
- package/Documentation/stack-api/Document-global-content-base.txt +169 -0
- package/Documentation/stack-api/Document-global-ip-log.txt +101 -0
- package/Documentation/stack-api/Document-global-log-inner.txt +152 -0
- package/Documentation/stack-api/Document-global-log-part-error.txt +12 -0
- package/Documentation/stack-api/Document-global-log-part-ref.txt +80 -0
- package/Documentation/stack-api/Document-global-log-part-text.txt +81 -0
- package/Documentation/tools/Document-global-actors.txt +196 -0
- package/Documentation/tools/Document-global-addressing.txt +38 -0
- package/Documentation/tools/Document-global-content.txt +1 -0
- package/Documentation/tools/Document-global-global-test-data.txt +197 -0
- package/Documentation/tools/Document-global-stacks.txt +1 -0
- package/Documentation/tools/Document-global-test-case-analyze.txt +3 -0
- package/Documentation/tools/Document-global-test-case-debug.txt +16 -0
- package/Documentation/tools/Document-global-test-case-definition.txt +37 -0
- package/Documentation/tools/Document-global-test-case-execution.txt +28 -0
- package/Documentation/tools/Document-global-test-case-log.txt +95 -0
- package/Documentation/tools/Document-global-test-case-sequence-diagram.txt +17 -0
- package/Documentation/tools/Document-global-test-case-specification.txt +3 -0
- package/Documentation/tools/Document-global-test-cases.txt +11 -0
- package/Documentation/tools/Document-global-tool-test-suite.txt +202 -0
- package/Education/Document-global-add-your-first-addresses.txt +75 -0
- package/Education/Document-global-define-your-first-sut.txt +18 -0
- package/Education/Document-global-make-your-first-actors.txt +35 -0
- package/Education/Document-global-make-your-first-test-case.txt +43 -0
- package/Education/Document-global-make-your-first-test-suite.txt +29 -0
- package/Education/Document-global-share-your-work.txt +35 -0
- package/Education/Navigation-Education-actorjs-global.txt +31 -0
- package/LICENSE.txt +96 -0
- package/README.md +5 -0
- package/Workshop/Document-global-actordemo-image-ai.txt +5 -0
- package/Workshop/Document-global-actordemo-login.txt +10 -0
- package/Workshop/Document-global-actordemo-site.txt +3 -0
- package/Workshop/Document-global-actordemo-start.txt +5 -0
- package/Workshop/Document-global-actordemo-the-architecture.txt +27 -0
- package/Workshop/Document-global-introduction-actor.txt +84 -0
- package/Workshop/Document-global-introduction-actorjs.txt +42 -0
- package/Workshop/Document-global-introduction-stack.txt +25 -0
- package/Workshop/Document-global-introduction-system-under-test.txt +102 -0
- package/Workshop/Document-global-introduction-test-case.txt +50 -0
- package/Workshop/Document-global-introduction-test-suite.txt +31 -0
- package/Workshop/Document-global-login-with-puppeter.txt +45 -0
- package/Workshop/Document-global-mock-with-http.txt +83 -0
- package/Workshop/Document-global-mock-with-icap.txt +94 -0
- package/Workshop/Document-global-prerequisites-actorJs.txt +18 -0
- package/Workshop/Document-global-prerequisites-actordemo.txt +15 -0
- package/Workshop/Document-global-trigger-with-http.txt +93 -0
- package/Workshop/Document-global-trigger-with-puppeter.txt +49 -0
- package/Workshop/Navigation-Workshop-actorjs-global.txt +86 -0
- package/npm-shrinkwrap.json +13 -0
- package/package.json +10 -0
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
# **Shared Data API**
|
|
2
|
+
[[API-STATUS=STABLE, ]]
|
|
3
|
+
[[DOC-STATUS=PARTLY, ]]
|
|
4
|
+
|
|
5
|
+
[[NOTE={"guid":"75a52038-8f65-4c35-89d8-a21008592327"}]]
|
|
6
|
+
[[ANCHOR={"id":"62ef30d3-2888-4fbd-83dc-8869a30fe4b8","visible":true}]]
|
|
7
|
+
## **Description**
|
|
8
|
+
|
|
9
|
+
An [[REF=, ABS_Actor]] can publish data to other [[REF=, ABS_Actor]]s through the shared Data API. It is the publishing [[REF=, ABS_Actor]] who decides the format of the [[REF=, ABS_Shared_Data]]. The implementation of the Shared Data API starts in [[REF=, CODE_Shared_Data]].
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
[[NOTE={"guid":"b6970c24-e472-4a8e-8799-a426be0bf76b"}]]
|
|
13
|
+
[[ANCHOR={"id":"30144890-36f8-4553-981c-0ea6b35a1776","visible":true}]]
|
|
14
|
+
## **API Methods**
|
|
15
|
+
* **[*setSharedData](#shared-data-api-set-shared-data)**
|
|
16
|
+
* **[setSharedDataSync](#shared-data-api-set-shared-data-sync)**
|
|
17
|
+
* **[getSharedData](#shared-data-api-get-shared-data)**
|
|
18
|
+
* **[*waitForSharedData](#shared-data-api-wait-for-shared-data)**
|
|
19
|
+
* **[*setSharedDataActor](#shared-data-api-set-shared-data-actor)**
|
|
20
|
+
* **[getSharedDataActor](#shared-data-api-get-shared-data-actor)**
|
|
21
|
+
* **[*waitForSharedDataActor](#shared-data-api-wait-for-shared-data-actor)**
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
[[NOTE={"guid":"5a217975-508e-4083-8ba4-f907f2c23904"}]]
|
|
26
|
+
[[ANCHOR={"id":"shared-data-api-set-shared-data","visible":true}]]
|
|
27
|
+
### ***setSharedData**
|
|
28
|
+
```
|
|
29
|
+
this.setSharedData(key[, value])
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[NOTE={"guid":"0fc9aee7-4687-47d4-9448-75020f114160"}]]
|
|
33
|
+
[[ANCHOR={"id":"182cd163-fd16-4963-beeb-4bb7749386d1","visible":true}]]
|
|
34
|
+
#### **Method Description**
|
|
35
|
+
|
|
36
|
+
Publishes [[REF=, ABS_Shared_Data]] to be read by other [[REF=, ABS_Actor]]s.
|
|
37
|
+
If other [[REF=, ABS_Actor]]s are waiting for the ***key*** with the method [*waitForSharedData](#shared-data-api-wait-for-shared-data) they will be awaken if their awaken crefeterias are fulfilled.
|
|
38
|
+
|
|
39
|
+
```table
|
|
40
|
+
Config(classHeading: )
|
|
41
|
+
|
|
42
|
+
|Parameters |
|
|
43
|
+
|Name |Type Default| |Description |
|
|
44
|
+
|key |[[REF=,MDN_string]] | |The ***key*** of the Shared Data. |
|
|
45
|
+
|value|<**any**> |undefined|The ***value*** of the Shared Data.|
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
```table
|
|
49
|
+
Config(classHeading: )
|
|
50
|
+
|
|
51
|
+
|Returns |
|
|
52
|
+
|Type |Description |
|
|
53
|
+
|<**any**>|The parameter ***value***.|
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
```table
|
|
57
|
+
Config(classHeading: )
|
|
58
|
+
|
|
59
|
+
|Async |
|
|
60
|
+
|type |Description |
|
|
61
|
+
|**yield***|auto generated|
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
[[NOTE={"guid":"1380be73-3ffb-425f-b6ba-f79052723a94"}]]
|
|
65
|
+
[[ANCHOR={"id":"e5b9e68e-6779-43df-9ef1-ee5199ec9cef","visible":true}]]
|
|
66
|
+
#### **Example using setSharedData**
|
|
67
|
+
|
|
68
|
+
```javascript
|
|
69
|
+
|
|
70
|
+
*run() {
|
|
71
|
+
let myBool = true;
|
|
72
|
+
this.setSharedData('demoKey1', 'Hello'); // sets value to "Hello"
|
|
73
|
+
this.setSharedData('demoKey2', 5); // sets value to => 5
|
|
74
|
+
this.setSharedData('demoKey3', !myBool); // sets value to => false
|
|
75
|
+
this.setSharedData('synchronize'); // do not set any value, but awakens Actors waiting for the key "synchronize".
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
[[NOTE={"guid":"bc7eb019-bfbf-4197-aceb-0527047f720e"}]]
|
|
81
|
+
[[ANCHOR={"id":"cf285054-41ee-40df-9194-2b07f7b4ef16","visible":true}]]
|
|
82
|
+
#### **Test Cases setSharedData**
|
|
83
|
+
+ [DocActorApiSharedDataSetGetValue](/../test-cases/Actor/Doc/DocActorApiSharedDataSetGetValue)
|
|
84
|
+
+ [DocActorApiSharedDataSetDefaultValue](/../test-cases/Actor/Doc/DocActorApiSharedDataSetDefaultValue)
|
|
85
|
+
+ [DocActorApiSharedDataSetGetUndefined](/../test-cases/Actor/Doc/DocActorApiSharedDataSetGetUndefined)
|
|
86
|
+
|
|
87
|
+
***
|
|
88
|
+
|
|
89
|
+
[[NOTE={"guid":"9dc2c102-5799-4e3e-8148-449272301798"}]]
|
|
90
|
+
[[ANCHOR={"id":"shared-data-api-set-shared-data-sync","visible":true}]]
|
|
91
|
+
### **setSharedDataSync**
|
|
92
|
+
```
|
|
93
|
+
this.setSharedData(key[, value])
|
|
94
|
+
```
|
|
95
|
+
`Not documented yet`
|
|
96
|
+
|
|
97
|
+
***
|
|
98
|
+
|
|
99
|
+
[[NOTE={"guid":"a8723916-f1d5-4dba-89a9-3b42a00af8ca"}]]
|
|
100
|
+
[[ANCHOR={"id":"shared-data-api-get-shared-data","visible":true}]]
|
|
101
|
+
### **getSharedData**
|
|
102
|
+
```
|
|
103
|
+
this.getSharedData(key[, defaultValue])
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
[[NOTE={"guid":"797da89b-e891-48b1-83ef-b46ab9f15a43"}]]
|
|
107
|
+
[[ANCHOR={"id":"efee1be3-bfb1-42a8-9871-bb1d8ec2a7d3","visible":true}]]
|
|
108
|
+
#### **Method Description**
|
|
109
|
+
|
|
110
|
+
Read [[REF=, ABS_Shared_Data]] set by other [[REF=, ABS_Actor]]s.
|
|
111
|
+
If the the ***key*** is not found the resulting ***value*** will be the ***defaltValue*** if it exist, else it will be ***undefined***.
|
|
112
|
+
|
|
113
|
+
```table
|
|
114
|
+
Config(classHeading: )
|
|
115
|
+
|
|
116
|
+
|Parameters |
|
|
117
|
+
|Name |Type Default| |Description |
|
|
118
|
+
|key |[[REF=,MDN_string]] | |The ***key*** of the Shared Data. |
|
|
119
|
+
|defaultValue|<**any**> |undefined|Value returned if the Shared Data is not found.|
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
```table
|
|
123
|
+
Config(classHeading: )
|
|
124
|
+
|
|
125
|
+
|Returns |
|
|
126
|
+
|Type |Description |
|
|
127
|
+
|<**any**>|The resulting ***value***.|
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
[[NOTE={"guid":"77a4b653-54b6-4273-ae89-10f08c06a90c"}]]
|
|
131
|
+
[[ANCHOR={"id":"aa7caa62-d2e0-46a6-8311-2a94669a1a87","visible":true}]]
|
|
132
|
+
#### **Example using getSharedData**
|
|
133
|
+
|
|
134
|
+
```javascript
|
|
135
|
+
|
|
136
|
+
*run() {
|
|
137
|
+
let myBool = true;
|
|
138
|
+
this.setSharedData('demoKey1', 'Hello');
|
|
139
|
+
this.setSharedData('demoKey2', 5);
|
|
140
|
+
this.setSharedData('demoKey3', !myBool);
|
|
141
|
+
|
|
142
|
+
const a = getSharedData('demoKey1'); // a will be => "Hello"
|
|
143
|
+
const b = getSharedData('demoKey2'); // b will be => 5
|
|
144
|
+
const c = getSharedData('demoKey3'); // c will be => false
|
|
145
|
+
const d = getSharedData('demoKey4', 'not found'); // d will be => "not found"
|
|
146
|
+
const e = getSharedData('demoKey5'); // e will be => undefined
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
[[NOTE={"guid":"18c22c2c-c2d8-443a-8289-92863e4d8c42"}]]
|
|
152
|
+
[[ANCHOR={"id":"fda8aa47-afdd-46a5-b191-60b06181a406","visible":true}]]
|
|
153
|
+
#### **Test Cases getSharedData**
|
|
154
|
+
+ [DocActorApiSharedDataSetGetValue](/../test-cases/Actor/Doc/DocActorApiSharedDataSetGetValue)
|
|
155
|
+
+ [DocActorApiSharedDataSetDefaultValue](/../test-cases/Actor/Doc/DocActorApiSharedDataSetDefaultValue)
|
|
156
|
+
+ [DocActorApiSharedDataSetGetUndefined](/../test-cases/Actor/Doc/DocActorApiSharedDataSetGetUndefined)
|
|
157
|
+
|
|
158
|
+
***
|
|
159
|
+
|
|
160
|
+
[[NOTE={"guid":"0aa08cd6-4838-42e5-a668-ed4245a035f1"}]]
|
|
161
|
+
[[ANCHOR={"id":"shared-data-api-wait-for-shared-data","visible":true}]]
|
|
162
|
+
### ***waitForSharedData**
|
|
163
|
+
```
|
|
164
|
+
this.waitForSharedData(key[, expectedValue])
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
[[NOTE={"guid":"8c4fa2cf-ad50-4b29-b2d9-68d48be14e0e"}]]
|
|
168
|
+
[[ANCHOR={"id":"41ebe5d2-55ac-4c28-8304-57434d8334da","visible":true}]]
|
|
169
|
+
#### **Method Description**
|
|
170
|
+
|
|
171
|
+
Read [[REF=, ABS_Shared_Data]] set by other [[REF=, ABS_Actor]]s. If the [[REF=, ABS_Shared_Data]] is not set yet it will wait for it to be set.
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
```table
|
|
175
|
+
Config(classHeading: )
|
|
176
|
+
|
|
177
|
+
|Parameters |
|
|
178
|
+
|Name |Type Default| |Description |
|
|
179
|
+
|key |[[REF=,MDN_string]] | |The ***key*** of the Shared Data. |
|
|
180
|
+
|expectedValue|<**any**> |undefined|If ***expectedValue*** is not set the the method will return when or if the ***key*** is set.<br /> If ***expectedValue*** is set the method will return when the ***value*** is set to ***expectedValue***.|
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
```table
|
|
184
|
+
Config(classHeading: )
|
|
185
|
+
|
|
186
|
+
|Returns |
|
|
187
|
+
|Type |Description |
|
|
188
|
+
|<**any**>|The resulting ***value*** that awakens the [[REF=, ABS_Actor]].<br />`warning:` When the [[REF=, ABS_Actor]] gets the value it can already been changed by some other [[REF=, ABS_Actor]]. If the current value is nedeed, call **getSharedData*** when awaken.|
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
```table
|
|
192
|
+
Config(classHeading: )
|
|
193
|
+
|
|
194
|
+
|Async |
|
|
195
|
+
|type |Description |
|
|
196
|
+
|**yield***|auto generated|
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
[[NOTE={"guid":"7d699c29-c158-42f7-9ec0-fafd10b3cfbc"}]]
|
|
200
|
+
[[ANCHOR={"id":"03b39b3a-0c5f-4d45-a262-529a99ee3d41","visible":true}]]
|
|
201
|
+
#### **Example using waitForSharedData**
|
|
202
|
+
|
|
203
|
+
```javascript
|
|
204
|
+
|
|
205
|
+
*run() {
|
|
206
|
+
let myBool = true;
|
|
207
|
+
this.setSharedData('demoKey1', 'Hello');
|
|
208
|
+
this.setSharedData('demoKey2', 5);
|
|
209
|
+
this.setSharedData('demoKey3', !myBool);
|
|
210
|
+
|
|
211
|
+
const a = getSharedData('demoKey1'); // a will be => "Hello"
|
|
212
|
+
const b = getSharedData('demoKey2'); // b will be => 5
|
|
213
|
+
const c = getSharedData('demoKey3'); // c will be => false
|
|
214
|
+
const d = getSharedData('demoKey4', 'not found'); // d will be => "not found"
|
|
215
|
+
const e = getSharedData('demoKey5'); // e will be => undefined
|
|
216
|
+
}
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
[[NOTE={"guid":"eca000d7-22fc-4759-bfbd-7916ac0a32b1"}]]
|
|
220
|
+
[[ANCHOR={"id":"25062877-b7df-4e8a-88d5-151d762971d8","visible":true}]]
|
|
221
|
+
#### **Test Cases waitForSharedData**
|
|
222
|
+
+ [DocActorApiSharedDataSetGetValue](/../test-cases/Actor/Doc/DocActorApiSharedDataSetGetValue)
|
|
223
|
+
+ [DocActorApiSharedDataWaitIteration](/../test-cases/Actor/Doc/DocActorApiSharedDataWaitIteration)
|
|
224
|
+
+ [DocActorApiSharedDataWaitMultiple](/../test-cases/Actor/Doc/DocActorApiSharedDataWaitMultiple)
|
|
225
|
+
|
|
226
|
+
***
|
|
227
|
+
|
|
228
|
+
[[NOTE={"guid":"ee72bdb1-716a-48c3-8a2d-a7ec27733573"}]]
|
|
229
|
+
[[ANCHOR={"id":"shared-data-api-set-shared-data-actor","visible":true}]]
|
|
230
|
+
### ***setSharedDataActor**
|
|
231
|
+
```
|
|
232
|
+
this.setSharedDataActor()
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
`Not documented yet`
|
|
236
|
+
|
|
237
|
+
***
|
|
238
|
+
|
|
239
|
+
[[NOTE={"guid":"28ec9f9d-87d8-4b44-9698-12d25d4969f8"}]]
|
|
240
|
+
[[ANCHOR={"id":"shared-data-api-get-shared-data-actor","visible":true}]]
|
|
241
|
+
### **getSharedDataActor**
|
|
242
|
+
```
|
|
243
|
+
this.getSharedDataActor()
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
`Not documented yet`
|
|
247
|
+
|
|
248
|
+
***
|
|
249
|
+
|
|
250
|
+
[[NOTE={"guid":"1e1a288a-46df-46c7-8918-c5293bb27634"}]]
|
|
251
|
+
[[ANCHOR={"id":"shared-data-api-wait-for-shared-data-actor","visible":true}]]
|
|
252
|
+
### ***waitForSharedDataActor**
|
|
253
|
+
```
|
|
254
|
+
this.waitForSharedDataActor()
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
`Not documented yet`
|
|
258
|
+
|
|
259
|
+
***
|