@operato/scene-integration 0.0.5
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/@types/global/index.d.ts +1 -0
- package/CHANGELOG.md +17 -0
- package/LICENSE +21 -0
- package/README.md +105 -0
- package/assets/icon-camera-stream.png +0 -0
- package/assets/icon-connection-control.png +0 -0
- package/assets/icon-connection-state-subscription.png +0 -0
- package/assets/icon-data-subscription.png +0 -0
- package/assets/icon-integration.png +0 -0
- package/assets/icon-scenario-control.png +0 -0
- package/assets/icon-scenario-instance-subscription.png +0 -0
- package/assets/icon-scenario-queue-subscription.png +0 -0
- package/assets/icon-scenario-run.png +0 -0
- package/assets/icon-scenario-start.png +0 -0
- package/assets/icon-scenario-stop.png +0 -0
- package/assets/no-image.png +0 -0
- package/assets/symbol-connection-control.png +0 -0
- package/assets/symbol-connection-state-subscription.png +0 -0
- package/assets/symbol-data-subscription.png +0 -0
- package/assets/symbol-integration.png +0 -0
- package/assets/symbol-scenario-control.png +0 -0
- package/assets/symbol-scenario-instance-subscription.png +0 -0
- package/assets/symbol-scenario-queue-subscription.png +0 -0
- package/assets/symbol-scenario-run.png +0 -0
- package/assets/symbol-scenario-start.png +0 -0
- package/assets/symbol-scenario-stop.png +0 -0
- package/helps/scene/component/connection-control.ko.md +15 -0
- package/helps/scene/component/connection-control.md +15 -0
- package/helps/scene/component/connection-control.zh.md +16 -0
- package/helps/scene/component/connection-state-subscription.ko.md +17 -0
- package/helps/scene/component/connection-state-subscription.md +17 -0
- package/helps/scene/component/connection-state-subscription.zh.md +18 -0
- package/helps/scene/component/data-subscription.ko.md +10 -0
- package/helps/scene/component/data-subscription.md +10 -0
- package/helps/scene/component/data-subscription.zh.md +10 -0
- package/helps/scene/component/scenario-control.ko.md +4 -0
- package/helps/scene/component/scenario-control.md +4 -0
- package/helps/scene/component/scenario-control.zh.md +4 -0
- package/helps/scene/component/scenario-instance-subscription.ko.md +23 -0
- package/helps/scene/component/scenario-instance-subscription.md +24 -0
- package/helps/scene/component/scenario-instance-subscription.zh.md +23 -0
- package/helps/scene/component/scenario-queue-subscription.ko.md +27 -0
- package/helps/scene/component/scenario-queue-subscription.md +27 -0
- package/helps/scene/component/scenario-run.ko.md +27 -0
- package/helps/scene/component/scenario-run.md +27 -0
- package/helps/scene/component/scenario-run.zh.md +27 -0
- package/helps/scene/component/scenario-start.ko.md +16 -0
- package/helps/scene/component/scenario-start.md +16 -0
- package/helps/scene/component/scenario-start.zh.md +16 -0
- package/helps/scene/component/scenario-stop.ko.md +12 -0
- package/helps/scene/component/scenario-stop.md +12 -0
- package/helps/scene/component/scenario-stop.zh.md +12 -0
- package/package.json +64 -0
- package/src/connection-control.ts +163 -0
- package/src/connection-state-subscription.ts +113 -0
- package/src/data-subscription.ts +103 -0
- package/src/editors/index.js +1 -0
- package/src/index.ts +21 -0
- package/src/origin-client.ts +136 -0
- package/src/scenario-control.ts +163 -0
- package/src/scenario-instance-subscription.ts +133 -0
- package/src/scenario-queue-subscription.ts +91 -0
- package/src/scenario-run.ts +157 -0
- package/src/scenario-start.ts +155 -0
- package/src/scenario-stop.ts +143 -0
- package/templates/connection-control.js +17 -0
- package/templates/connection-state-subscription.js +17 -0
- package/templates/data-subscription.js +17 -0
- package/templates/index.js +21 -0
- package/templates/scenario-control.js +18 -0
- package/templates/scenario-instance-subscription.js +17 -0
- package/templates/scenario-queue-subscription.js +17 -0
- package/templates/scenario-run.js +17 -0
- package/templates/scenario-start.js +17 -0
- package/templates/scenario-stop.js +17 -0
- package/things-scene.config.js +7 -0
- package/translations/en.json +9 -0
- package/translations/ko.json +9 -0
- package/translations/ms.json +9 -0
- package/translations/zh.json +9 -0
- package/tsconfig.json +23 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module '*.png'
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
### [0.0.5](https://github.com/things-scene/operato-scene/compare/v0.0.4...v0.0.5) (2021-12-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
* add chartjs ([6b3b67b](https://github.com/things-scene/operato-scene/commit/6b3b67be882eda21a702f4f13ed5e0c4606ac934))
|
|
12
|
+
* added scene-half-roundrect and integration ([91092e6](https://github.com/things-scene/operato-scene/commit/91092e664dd0d962e981f4acae70252f4c2ac6da))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### :bug: Bug Fix
|
|
16
|
+
|
|
17
|
+
* add chartjs, integration module ([24cd106](https://github.com/things-scene/operato-scene/commit/24cd1065d13314e7ca3927a0306fed766531b851))
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Hearty, Oh
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
## data-subscription
|
|
2
|
+
|
|
3
|
+
- 서버에서 publish 된 데이타를 subscribe 하는 컴포넌트
|
|
4
|
+
- 속성에서 설정된 tag를 가진 publish 데이타를 받아와서 data 속성을 변화시킨다.
|
|
5
|
+
- properties
|
|
6
|
+
- tag: subscribe 할 데이타의 태그를 지정함
|
|
7
|
+
- data scheme
|
|
8
|
+
- publish 된 데이타의 형태를 그대로 유지한다.
|
|
9
|
+
|
|
10
|
+
## connection-state-subscription
|
|
11
|
+
|
|
12
|
+
- connection 상태를 subscribe 하는 컴포넌트
|
|
13
|
+
- connection 의 현재 상태를 가져와서 data 속성을 변화시킨다.
|
|
14
|
+
- properties
|
|
15
|
+
- connection name : 커넥션의 이름을 설정함
|
|
16
|
+
- data scheme
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
{
|
|
20
|
+
name: 'mqtt1', /* connection name */
|
|
21
|
+
state: 'CONNECTED', /* 'CONNECTED' | 'DISCONNECTED' */
|
|
22
|
+
timestamp: 4273809748
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## scenario-instance-subscription
|
|
27
|
+
|
|
28
|
+
- 시나리오 인스턴스 상태를 subscribe 하는 컴포넌트
|
|
29
|
+
- 시나리오 인스턴스의 현재 상태를 가져와서 data 속성을 변화시킨다.
|
|
30
|
+
- properties
|
|
31
|
+
- instance name : (선택값) 이 이름으로 존재하는 시나리오 인스턴스를 종료시킨다. 이 값을 설정하지 않으면, scenario name 속성값을 사용한다.
|
|
32
|
+
- scenario name : (선택값) 이 값을 설정하지 않으면, scenario name 속성 값을 시나리오 인스턴스 이름으로 한다.
|
|
33
|
+
- data scheme
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
{
|
|
37
|
+
variables: {
|
|
38
|
+
... /* 인스턴스 실행시 전달받은 파라미터들 */
|
|
39
|
+
},
|
|
40
|
+
data: {
|
|
41
|
+
[each step name]: { /* step result */ }
|
|
42
|
+
},
|
|
43
|
+
state: 'STARTED' | 'STOPPED' | 'HALTED', /* 시나리오의 상태 */
|
|
44
|
+
timestamp: 4273809748
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## scenario-start
|
|
49
|
+
|
|
50
|
+
- 시나리오를 주어진 variables 로 시작시킨다.
|
|
51
|
+
- 현재 실행중인 동일한 이름(instance name)의 시나리오 인스턴스가 없는 경우에만 새로운 시나리오를 시작한다.
|
|
52
|
+
- variables(value 속성) 로 주어진 값이 시나리오 시작 시에 variables 변수로 주어진다. 이 값이 변화되거나, intent sensitive 가 설정된 경우에, 이 컴포넌트가 동작한다.
|
|
53
|
+
- properties
|
|
54
|
+
- instance name : (선택값) 이 이름으로 새로 시작되는 시나리오 인스턴스의 이름을 주어진 instance name 값으로 유지한다.
|
|
55
|
+
scenario-stop 시에 이 이름을 instance name으로 제공하면, 해당 시나리오 인스턴스를 종료시킨다.
|
|
56
|
+
이 값을 설정하지 않으면, scenario name 속성값을 시나리오 인스턴스 이름으로 한다.
|
|
57
|
+
만약, 동일한 instance name을 갖는 시나리오 인스턴스가 이미 존재하면, 새로운 시나리오 인스턴스가 시작되지 않는다.
|
|
58
|
+
- scenario-name : (필수값) 시나리오 이름을 제공한다. instance name이 특별히 설정되지 않으면, scenario name이 instance name이 된다.
|
|
59
|
+
- variables : 시나리오에 전달된 variables 값. 시나리오에 제공되는 파라미터 값이다. 이 컴포넌트의 value 에 연결된 속성이다.
|
|
60
|
+
- data
|
|
61
|
+
- scenario-start 로 실행된 scenario instance 의 상태값 : 'STARTED' | 'STOPPED' | 'HALTED'
|
|
62
|
+
|
|
63
|
+
## scenario-stop
|
|
64
|
+
|
|
65
|
+
- 시나리오를 주어진 variables 로 종료시킨다.
|
|
66
|
+
- 현재 실행중인 동일한 이름(instance name)의 시나리오 인스턴스를 찾아서 종료한다. 주어진 이름의 인스턴스가 없으면, 아무런 동작이 일어나지 않는다.
|
|
67
|
+
- value : 아무런 값이 주어져도 되며, 이 값이 변화되거나, intent sensitive 가 설정된 경우에, 이 컴포넌트가 동작한다.
|
|
68
|
+
- properties
|
|
69
|
+
- instance name : (선택값) 이 이름으로 존재하는 시나리오 인스턴스를 종료시킨다. 이 값을 설정하지 않으면, scenario name 속성값을 사용한다. 이 값을 설정하지 않으면, scenario name 속성 값을 시나리오 인스턴스 이름으로 한다.
|
|
70
|
+
- scenario name : (선택값) instance name 과 scenario name 둘 중 하나는 입력되어야 한다.
|
|
71
|
+
- data
|
|
72
|
+
- scenario-stop 으로 종료된 scenario instance 의 상태값 : 'STOPPED' | 'HALTED'
|
|
73
|
+
|
|
74
|
+
## scenario-run (scenario-start와 구별하여 사용해야 함.)
|
|
75
|
+
|
|
76
|
+
- 시나리오를 주어진 variables 로 시작시키고, 종료된 후에 결과값을 가져온다.
|
|
77
|
+
(scenario-start는 시나리오를 시작시키고 바로 리턴된다.)
|
|
78
|
+
- scenario-run 은 단기간에 종료가 보장되는 시나리오만을 대상으로 한다.
|
|
79
|
+
- scenario-run 으로 실행되는 시나리오 인스턴스는 그 이름으로 관리되지 않는다.
|
|
80
|
+
(scenario-start로 실행되는 시나리오 인스턴스는 instance 이름으로 관리되며, 모니터링될 수 있다.)
|
|
81
|
+
- variables(value 속성) 로 주어진 값이 시나리오 시작 시에 variables 변수로 주어진다. 이 값이 변화되거나, intent sensitive 가 설정된 경우에, 이 컴포넌트가 동작한다.
|
|
82
|
+
- properties
|
|
83
|
+
- instance name : (선택값) deprecated 이 속성은 사용되지 않을 예정임.
|
|
84
|
+
- scenario-name : (필수값) 실행될 시나리오 이름.
|
|
85
|
+
- variables : 시나리오에 전달된 variables 값. 시나리오에 제공되는 파라미터 값이다. 이 컴포넌트의 value 에 연결된 속성이다.
|
|
86
|
+
- data scheme
|
|
87
|
+
- 실행 완료 후 시나리오의 최종 context를 제공받게 된다.
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
{
|
|
91
|
+
variables: {
|
|
92
|
+
... /* 인스턴스 실행시 전달받은 파라미터들 */
|
|
93
|
+
},
|
|
94
|
+
data: {
|
|
95
|
+
[each step name]: { /* step result */ }
|
|
96
|
+
},
|
|
97
|
+
state: 'STOPPED' | 'HALTED', /* 시나리오의 최종 상태 */
|
|
98
|
+
timestamp: 4273809748
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## scenario-control
|
|
103
|
+
|
|
104
|
+
- (deprecated) 이 컴포넌트는 사용되지 않을 예정이다.
|
|
105
|
+
- scenario-start와 scenario-stop 으로 대체됨.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# connection control
|
|
2
|
+
|
|
3
|
+
- 주어진 이름의 커넥션을 연결을 컨트롤하는 컴포넌트이다.
|
|
4
|
+
- controlType(value 속성) 로 주어진 값이 'connect' 이면 연결을 시도하며, 'disconnect'이면 연결종료가 실행된다.
|
|
5
|
+
- properties
|
|
6
|
+
|
|
7
|
+
- connection-name : (필수값) 커넥션 이름을 설정한다.
|
|
8
|
+
- controlType (value 속성으로 지정됨) : 커넥션의 연결 종료 여부를 지정함.
|
|
9
|
+
- 이 속성 모델링은 아무런 의미가 없으며, 이 컴포넌트의 value 속성에 지정할 때 권장되는 값을 안내하기 위한 용도이다.
|
|
10
|
+
- 이 컴포넌트의 유효한 value로는 'connect' 또는 'disconnect' 가 권장된다.
|
|
11
|
+
- 만약, value값으로 'connect', 1 또는 true 가 전달되면 커넥션 연결이 시도되며, 그 외 값인 경우에는 커넥션 종료가 실행된다.
|
|
12
|
+
|
|
13
|
+
- data
|
|
14
|
+
- connection control결과로 반환된 connection 관련 정보와 상태를 갖게된다.
|
|
15
|
+
- connection의 실시간 상태를 모니터링 하기 위해서는 connection-data-subscription 컴포넌트를 사용하기를 권장한다.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# connection control
|
|
2
|
+
|
|
3
|
+
- A component that controls the connection of the given name.
|
|
4
|
+
- If the value given as controlType (value attribute) is'connect', connection is attempted. If it is'disconnect', the connection is terminated.
|
|
5
|
+
|
|
6
|
+
## properties
|
|
7
|
+
- connection-name: (required) Set the connection name.
|
|
8
|
+
- controlType (specified as a value attribute): Specifies whether the connection is terminated.
|
|
9
|
+
- This attribute modeling has no meaning and is intended to guide the recommended value when assigning to the value attribute of this component.
|
|
10
|
+
- As a valid value for this component,'connect' or'disconnect' is recommended.
|
|
11
|
+
- If'connect', 1, or true is passed as the value value, connection connection is attempted, otherwise, the connection is terminated.
|
|
12
|
+
|
|
13
|
+
## data
|
|
14
|
+
- It has the connection related information and status returned as a result of connection control.
|
|
15
|
+
- To monitor the real-time status of a connection, it is recommended to use the connection-data-subscription component.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# connection control
|
|
2
|
+
|
|
3
|
+
控制给定名称连接的组件。
|
|
4
|
+
如果作为controlType(值属性)给出的值是`connect`,则尝试连接。 如果是`disconnect`,则连接终止。
|
|
5
|
+
|
|
6
|
+
## properties
|
|
7
|
+
|
|
8
|
+
- connection-name :(必需)设置连接名称。
|
|
9
|
+
- controlType(指定为值属性):指定连接是否终止。
|
|
10
|
+
- 此属性建模没有意义,旨在在分配给该组件的value属性时指导建议的值。
|
|
11
|
+
- 作为此组件的有效值,建议使用“连接”或“断开连接”。
|
|
12
|
+
- 如果将'connect',1或true用作值值,则尝试建立连接,否则连接终止。
|
|
13
|
+
|
|
14
|
+
## data
|
|
15
|
+
- 获取connection control结果,内容为连接信息和状态
|
|
16
|
+
- 如果是为了实时确认connection的状态,建议使用connection-data-subscription组件。
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# connection state subscription
|
|
2
|
+
|
|
3
|
+
- connection 상태를 subscribe 하는 컴포넌트
|
|
4
|
+
- connection 의 현재 상태를 가져와서 data 속성을 변화시킨다.
|
|
5
|
+
|
|
6
|
+
## properties
|
|
7
|
+
- connection name : 커넥션의 이름을 설정함
|
|
8
|
+
|
|
9
|
+
## data scheme
|
|
10
|
+
|
|
11
|
+
```json
|
|
12
|
+
{
|
|
13
|
+
"name": "mqtt1", /* connection name */
|
|
14
|
+
"state": "CONNECTED", /* 'CONNECTED' | 'DISCONNECTED' */
|
|
15
|
+
"timestamp": 4273809748
|
|
16
|
+
}
|
|
17
|
+
```
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# connection state subscription
|
|
2
|
+
|
|
3
|
+
- A component that subscribes to the connection state
|
|
4
|
+
- Get the current status of the connection and change the data property.
|
|
5
|
+
|
|
6
|
+
## properties
|
|
7
|
+
- connection name: Set the name of the connection
|
|
8
|
+
|
|
9
|
+
## data
|
|
10
|
+
|
|
11
|
+
```json
|
|
12
|
+
{
|
|
13
|
+
"name": "mqtt1", /* connection name */
|
|
14
|
+
"state": "CONNECTED", /* 'CONNECTED' | 'DISCONNECTED' */
|
|
15
|
+
"timestamp": 4273809748
|
|
16
|
+
}
|
|
17
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# connection state subscription
|
|
2
|
+
|
|
3
|
+
- 订阅连接状态的组件
|
|
4
|
+
- 获取连接的当前状态并更改数据属性。
|
|
5
|
+
|
|
6
|
+
## properties
|
|
7
|
+
|
|
8
|
+
- 连接名称:设置连接的名称
|
|
9
|
+
|
|
10
|
+
## data
|
|
11
|
+
|
|
12
|
+
```json
|
|
13
|
+
{
|
|
14
|
+
"name": "mqtt1", /* connection name */
|
|
15
|
+
"state": "CONNECTED", /* 'CONNECTED' | 'DISCONNECTED' */
|
|
16
|
+
"timestamp": 4273809748
|
|
17
|
+
}
|
|
18
|
+
```
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# data subscription
|
|
2
|
+
|
|
3
|
+
- A component that subscribes to data published from the server
|
|
4
|
+
- Receive publish data with the tag set in the property and change the data property.
|
|
5
|
+
|
|
6
|
+
## properties
|
|
7
|
+
- tag: Specifies the tag of the data to subscribe to
|
|
8
|
+
|
|
9
|
+
## data scheme
|
|
10
|
+
- using the format of published data.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# scenario instance subscription
|
|
2
|
+
|
|
3
|
+
- 시나리오 인스턴스 상태를 subscribe 하는 컴포넌트
|
|
4
|
+
- 시나리오 인스턴스의 현재 상태를 가져와서 data 속성을 변화시킨다.
|
|
5
|
+
|
|
6
|
+
## properties
|
|
7
|
+
- instance name : (선택값) 이 이름으로 존재하는 시나리오 인스턴스를 종료시킨다. 이 값을 설정하지 않으면, scenario name 속성값을 사용한다.
|
|
8
|
+
- scenario name : (선택값) 이 값을 설정하지 않으면, scenario name 속성 값을 시나리오 인스턴스 이름으로 한다.
|
|
9
|
+
|
|
10
|
+
## data scheme
|
|
11
|
+
|
|
12
|
+
```json
|
|
13
|
+
{
|
|
14
|
+
variables: {
|
|
15
|
+
... /* parameters when instance start*/
|
|
16
|
+
},
|
|
17
|
+
data: {
|
|
18
|
+
[each step name]: { /* step result */ }
|
|
19
|
+
},
|
|
20
|
+
state: 'STARTED' | 'STOPPED' | 'HALTED', /* senario status*/
|
|
21
|
+
timestamp: 4273809748
|
|
22
|
+
}
|
|
23
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# scenario instance subscription
|
|
2
|
+
|
|
3
|
+
- A component that subscribes to the state of a scenario instance
|
|
4
|
+
- Gets the current state of the scenario instance and changes the data property.
|
|
5
|
+
|
|
6
|
+
## properties
|
|
7
|
+
- instance name : (optional)) Terminates the scenario instance that exists under this name. If this value is not set, the scenario name property value is used.
|
|
8
|
+
- scenario name : (optional) If this value is not set, the scenario name property value is used as the scenario instance name.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## data scheme
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
variables: {
|
|
16
|
+
... /* parameters when instance start*/
|
|
17
|
+
},
|
|
18
|
+
data: {
|
|
19
|
+
[each step name]: { /* step result */ }
|
|
20
|
+
},
|
|
21
|
+
state: 'STARTED' | 'STOPPED' | 'HALTED', /* senario status*/
|
|
22
|
+
timestamp: 4273809748
|
|
23
|
+
}
|
|
24
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# scenario instance subscription
|
|
2
|
+
|
|
3
|
+
- 订阅方案实例状态的组件
|
|
4
|
+
- 获取方案实例的当前状态并更改数据属性。
|
|
5
|
+
|
|
6
|
+
## properties
|
|
7
|
+
- instance name : 终止以该名称存在的方案实例。 如果未设置此值,则使用方案名称属性值。
|
|
8
|
+
- scenario name : 如果未设置此值,那么方案名称属性值将作为方案实例名称。
|
|
9
|
+
|
|
10
|
+
## data scheme
|
|
11
|
+
|
|
12
|
+
```json
|
|
13
|
+
{
|
|
14
|
+
variables: {
|
|
15
|
+
... /* parameters when instance start*/
|
|
16
|
+
},
|
|
17
|
+
data: {
|
|
18
|
+
[each step name]: { /* step result */ }
|
|
19
|
+
},
|
|
20
|
+
state: 'STARTED' | 'STOPPED' | 'HALTED', /* senario status*/
|
|
21
|
+
timestamp: 4273809748
|
|
22
|
+
}
|
|
23
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# scenario queue subscription
|
|
2
|
+
|
|
3
|
+
- 시나리오 지연 큐 상태를 subscribe 하는 컴포넌트
|
|
4
|
+
- 시나리오 지연 큐의 현재 상태를 가져와서 data 속성을 변화시킨다.
|
|
5
|
+
|
|
6
|
+
## properties
|
|
7
|
+
|
|
8
|
+
## data scheme
|
|
9
|
+
|
|
10
|
+
```json
|
|
11
|
+
{
|
|
12
|
+
"queue": [
|
|
13
|
+
{
|
|
14
|
+
"stuff": Object,
|
|
15
|
+
"due": String,
|
|
16
|
+
"priority": Int,
|
|
17
|
+
"tag": String
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"stuff": Object,
|
|
21
|
+
"due": String,
|
|
22
|
+
"priority": Int,
|
|
23
|
+
"tag": String
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# scenario queue subscription
|
|
2
|
+
|
|
3
|
+
- A component that subscribes to the state of a scenario pending queue
|
|
4
|
+
- Gets the current state of the scenario pending queue and changes the data property.
|
|
5
|
+
|
|
6
|
+
## properties
|
|
7
|
+
|
|
8
|
+
## data scheme
|
|
9
|
+
|
|
10
|
+
```json
|
|
11
|
+
{
|
|
12
|
+
"queue": [
|
|
13
|
+
{
|
|
14
|
+
"stuff": Object,
|
|
15
|
+
"due": String,
|
|
16
|
+
"priority": Int,
|
|
17
|
+
"tag": String
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"stuff": Object,
|
|
21
|
+
"due": String,
|
|
22
|
+
"priority": Int,
|
|
23
|
+
"tag": String
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# scenario run
|
|
2
|
+
|
|
3
|
+
- scenario-run 은 시나리오를 주어진 variables 로 시작시키고, 종료된 후에 결과값을 가져온다.
|
|
4
|
+
(반면에 scenario-start는 시나리오를 시작시키고 바로 리턴된다.)
|
|
5
|
+
- scenario-run 은 단기간에 종료가 보장되는 시나리오를 대상으로 하는 것이 좋다.
|
|
6
|
+
- scenario-run 으로 실행되는 시나리오 인스턴스는 {scenario-name}-{timestamp} 형식의 instnace 이름이 부여된다.
|
|
7
|
+
- variables(value 속성) 로 주어진 값이 시나리오 시작 시에 variables 변수로 주어진다. 이 값이 변화되거나, intent sensitive 가 설정된 경우에, 이 컴포넌트가 동작한다.
|
|
8
|
+
|
|
9
|
+
## properties
|
|
10
|
+
- scenario-name : (필수값) 실행될 시나리오 이름.
|
|
11
|
+
- variables : 시나리오에 전달된 variables 값. 시나리오에 제공되는 파라미터 값이다. 이 컴포넌트의 value 에 연결된 속성이다.
|
|
12
|
+
|
|
13
|
+
## data scheme
|
|
14
|
+
- 실행 완료 후 시나리오의 최종 context를 제공받게 된다.
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
{
|
|
18
|
+
variables: {
|
|
19
|
+
... /* parameters when instance start*/
|
|
20
|
+
},
|
|
21
|
+
data: {
|
|
22
|
+
[each step name]: { /* step result */ }
|
|
23
|
+
},
|
|
24
|
+
state: 'STARTED' | 'HALTED', /* senario status*/
|
|
25
|
+
timestamp: 4273809748
|
|
26
|
+
}
|
|
27
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# scenario run
|
|
2
|
+
|
|
3
|
+
- scenario-run starts the scenario with the given variables and gets the result value after it is finished.
|
|
4
|
+
(On the other hand, scenario-start starts the scenario and returns immediately.)
|
|
5
|
+
- It is recommended that scenario-run target scenarios that are guaranteed to be terminated in a short period of time.
|
|
6
|
+
- The scenario instance executed by scenario-run is given an instnace name in the format {scenario-name}-{timestamp}.
|
|
7
|
+
- Values given as variables(value attribute) are given as variables variables at the beginning of the scenario. When this value is changed or intent sensitive is set, this component is activated.
|
|
8
|
+
|
|
9
|
+
## properties
|
|
10
|
+
- scenario-name : (required) Name of the scenario to be run.
|
|
11
|
+
- variables : Variable values passed to the scenario. This is a parameter value provided to the scenario. This property is connected to the value of this component.
|
|
12
|
+
|
|
13
|
+
## data scheme
|
|
14
|
+
- After execution is completed, the final context of the scenario is provided.
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
{
|
|
18
|
+
variables: {
|
|
19
|
+
... /* parameters when instance start*/
|
|
20
|
+
},
|
|
21
|
+
data: {
|
|
22
|
+
[each step name]: { /* step result */ }
|
|
23
|
+
},
|
|
24
|
+
state: 'STARTED' | 'HALTED', /* senario status*/
|
|
25
|
+
timestamp: 4273809748
|
|
26
|
+
}
|
|
27
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# scenario run
|
|
2
|
+
|
|
3
|
+
- scenario-run使用给定的变量启动方案,并在完成后获取结果值。
|
|
4
|
+
(另一方面,scenario-start将启动该方案并立即返回处理结果。)
|
|
5
|
+
- scenario-run建议运行在短时间内终止的方案作为目标方案。
|
|
6
|
+
- scenario-run执行时将自动赋予一个实例名称,格式为{scenario-name}-{timestamp}。
|
|
7
|
+
- 如果提供variables发生变化时或设置意图敏感后,此组件将被激活。
|
|
8
|
+
|
|
9
|
+
## properties
|
|
10
|
+
- scenario-name : (必要值) 要运行的方案的名称
|
|
11
|
+
- variables : 变量值传递给场景。 这是提供给方案的参数值。 此属性连接到该组件的value。
|
|
12
|
+
|
|
13
|
+
## data scheme
|
|
14
|
+
- 执行完成后,将提供方案的Context
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
{
|
|
18
|
+
variables: {
|
|
19
|
+
... /* parameters when instance start*/
|
|
20
|
+
},
|
|
21
|
+
data: {
|
|
22
|
+
[each step name]: { /* step result */ }
|
|
23
|
+
},
|
|
24
|
+
state: 'STARTED' | 'HALTED', /* senario status*/
|
|
25
|
+
timestamp: 4273809748
|
|
26
|
+
}
|
|
27
|
+
```
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# scenario start
|
|
2
|
+
|
|
3
|
+
- 시나리오를 주어진 variables 로 시작시킨다.
|
|
4
|
+
- 현재 실행중인 동일한 이름(instance name)의 시나리오 인스턴스가 없는 경우에만 새로운 시나리오를 시작한다.
|
|
5
|
+
- variables(value 속성) 로 주어진 값이 시나리오 시작 시에 variables 변수로 주어진다. 이 값이 변화되거나, intent sensitive 가 설정된 경우에, 이 컴포넌트가 동작한다.
|
|
6
|
+
|
|
7
|
+
## properties
|
|
8
|
+
- instance name : (선택값) 이 이름으로 새로 시작되는 시나리오 인스턴스의 이름을 주어진 instance name 값으로 유지한다.
|
|
9
|
+
scenario-stop 시에 이 이름을 instance name으로 제공하면, 해당 시나리오 인스턴스를 종료시킨다.
|
|
10
|
+
이 값을 설정하지 않으면, scenario name 속성값을 시나리오 인스턴스 이름으로 한다.
|
|
11
|
+
만약, 동일한 instance name을 갖는 시나리오 인스턴스가 이미 존재하면, 새로운 시나리오 인스턴스가 시작되지 않는다.
|
|
12
|
+
- scenario-name : (필수값) 시나리오 이름을 제공한다. instance name이 특별히 설정되지 않으면, scenario name이 instance name이 된다.
|
|
13
|
+
- variables : (선택값) 시나리오에 전달된 variables 값. 시나리오에 제공되는 파라미터 값이다. 이 컴포넌트의 value 에 연결된 속성이다.
|
|
14
|
+
|
|
15
|
+
## data
|
|
16
|
+
- scenario-start 로 실행된 scenario instance 의 상태값 : 'STARTED' | 'STOPPED' | 'HALTED'
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# scenario start
|
|
2
|
+
|
|
3
|
+
- Start the scenario with the given variables.
|
|
4
|
+
- A new scenario is started only if there is no scenario instance with the same name currently being executed.
|
|
5
|
+
- Values given as variables(value attribute) are given as variables variables at the beginning of the scenario. When this value is changed or intent sensitive is set, this component is activated.
|
|
6
|
+
|
|
7
|
+
## properties
|
|
8
|
+
- instance name: (optional value) The name of the scenario instance that is started with this name is maintained as the given instance name value.
|
|
9
|
+
If this name is provided as an instance name during scenario-stop, the scenario instance is terminated.
|
|
10
|
+
If this value is not set, the scenario name property value is used as the scenario instance name.
|
|
11
|
+
If a scenario instance with the same instance name already exists, a new scenario instance is not started.
|
|
12
|
+
- scenario-name: (required) Provide the scenario name. If the instance name is not specifically set, the scenario name becomes the instance name.
|
|
13
|
+
- variables: (optional value) Variable values delivered to the scenario. This is a parameter value provided to the scenario. This property is connected to the value of this component.
|
|
14
|
+
|
|
15
|
+
## data
|
|
16
|
+
- The status value of the scenario instance executed by scenario-start:'STARTED' | 'STOPPED' | 'HALTED'
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# scenario start
|
|
2
|
+
|
|
3
|
+
- 使用给定的变量启动方案。
|
|
4
|
+
- 仅当当前不存在具有相同名称的方案实例时,才启动新方案。
|
|
5
|
+
- 如果提供variables发生变化时或设置意图敏感后,此组件将被激活。
|
|
6
|
+
|
|
7
|
+
## properties
|
|
8
|
+
- instance name :(可选)维护以该名称作为给定实例名称值启动的方案实例的名称。
|
|
9
|
+
如果在方案停止期间将此名称作为实例名称提供,则方案实例将终止。
|
|
10
|
+
如果未设置此值,那么方案名称属性值将用作方案实例名称。
|
|
11
|
+
如果已经存在具有相同实例名称的方案实例,则不会启动新的方案实例。
|
|
12
|
+
- scenario-name :(必需)提供方案名称。如果未专门设置实例名称,则方案名称将成为实例名称。
|
|
13
|
+
- variables:(可选)传递给场景的变量值。这是提供给方案的参数值。此属性连接到该组件的值。
|
|
14
|
+
|
|
15
|
+
## data
|
|
16
|
+
- 由方案开始执行的方案实例的状态值:'STARTED' | 'STOPPED' | 'HALTED'
|