@things-factory/integration-base 6.1.129 → 6.1.141
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/dist-server/engine/task/database-query.js +2 -1
- package/dist-server/engine/task/database-query.js.map +1 -1
- package/dist-server/engine/task/graphql-mutate.js +2 -1
- package/dist-server/engine/task/graphql-mutate.js.map +1 -1
- package/dist-server/engine/task/graphql-query.js +2 -1
- package/dist-server/engine/task/graphql-query.js.map +1 -1
- package/dist-server/engine/task/http-get.js +2 -1
- package/dist-server/engine/task/http-get.js.map +1 -1
- package/dist-server/engine/task/http-post.js +2 -1
- package/dist-server/engine/task/http-post.js.map +1 -1
- package/dist-server/engine/task/local-graphql-mutate.js +8 -5
- package/dist-server/engine/task/local-graphql-mutate.js.map +1 -1
- package/dist-server/engine/task/local-graphql-query.js +8 -5
- package/dist-server/engine/task/local-graphql-query.js.map +1 -1
- package/dist-server/engine/task/log.js +2 -1
- package/dist-server/engine/task/log.js.map +1 -1
- package/dist-server/engine/task/oracle-procedure.js +3 -3
- package/dist-server/engine/task/oracle-procedure.js.map +1 -1
- package/dist-server/engine/task/script.js +3 -2
- package/dist-server/engine/task/script.js.map +1 -1
- package/dist-server/engine/types.js.map +1 -1
- package/dist-server/routers/scenario-schedule-callback-router.js +7 -2
- package/dist-server/routers/scenario-schedule-callback-router.js.map +1 -1
- package/dist-server/service/scenario/scenario-type.js +1 -1
- package/dist-server/service/scenario/scenario-type.js.map +1 -1
- package/dist-server/service/scenario-instance/scenario-instance-mutation.js +2 -2
- package/dist-server/service/scenario-instance/scenario-instance-mutation.js.map +1 -1
- package/dist-server/service/scenario-instance/scenario-instance-type.js +9 -1
- package/dist-server/service/scenario-instance/scenario-instance-type.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/helps/integration/task/oracle-procedure.ja.md +46 -46
- package/helps/integration/task/oracle-procedure.ko.md +4 -5
- package/helps/integration/task/oracle-procedure.md +42 -43
- package/helps/integration/task/oracle-procedure.ms.md +46 -47
- package/helps/integration/task/oracle-procedure.zh.md +43 -44
- package/package.json +8 -8
- package/server/engine/task/database-query.ts +2 -1
- package/server/engine/task/graphql-mutate.ts +2 -1
- package/server/engine/task/graphql-query.ts +2 -1
- package/server/engine/task/http-get.ts +2 -1
- package/server/engine/task/http-post.ts +2 -1
- package/server/engine/task/local-graphql-mutate.ts +8 -5
- package/server/engine/task/local-graphql-query.ts +8 -5
- package/server/engine/task/log.ts +2 -1
- package/server/engine/task/oracle-procedure.ts +3 -4
- package/server/engine/task/script.ts +3 -2
- package/server/engine/types.ts +1 -0
- package/server/routers/scenario-schedule-callback-router.ts +6 -2
- package/server/service/scenario/scenario-type.ts +1 -1
- package/server/service/scenario-instance/scenario-instance-mutation.ts +2 -2
- package/server/service/scenario-instance/scenario-instance-type.ts +9 -1
@@ -1,92 +1,92 @@
|
|
1
|
-
# Oracle
|
1
|
+
# Oracle プロシージャ タスク
|
2
2
|
|
3
|
-
|
3
|
+
このタスクは、Oracle データベースに格納されているプロシージャを呼び出すもので、個々のデータ型に応じてデータのリストまたは特定のデータ型の値を返します。
|
4
4
|
|
5
5
|
## パラメータ
|
6
6
|
|
7
|
-
###
|
7
|
+
### プロシージャ コード
|
8
8
|
|
9
|
-
-
|
10
|
-
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
- プロシージャ コードは、*プロシージャ名*と*パラメータ*に基づいて自動生成されるコードで、ユーザーが手動で入力する必要はありません。
|
10
|
+
- たとえば、プロシージャの名前が*mcs.myproc*で、パラメータが*id*と*out_name*で構成されている場合、次のように表現されます:
|
11
|
+
|
12
|
+
```text
|
13
|
+
mcs.myproc(:id, :out_name);
|
14
|
+
```
|
14
15
|
|
15
16
|
### プロシージャ名
|
16
17
|
|
17
18
|
- プロシージャの名前を指定します。
|
18
|
-
-
|
19
|
+
- プロシージャがパッケージまたはユーザー名で区別される必要がある場合は、ピリオド(.)を使用してそれらを区別します。
|
19
20
|
- 例:
|
20
|
-
|
21
|
-
|
22
|
-
|
21
|
+
|
22
|
+
```text
|
23
|
+
mcs.myproc
|
24
|
+
```
|
23
25
|
|
24
26
|
### パラメータ
|
25
27
|
|
26
|
-
-
|
28
|
+
- パラメータは次の要素で構成されています。
|
27
29
|
- パラメータ名
|
28
|
-
-
|
29
|
-
-
|
30
|
-
-
|
31
|
-
-
|
30
|
+
- ディレクション: IN、INOUT、OUT
|
31
|
+
- データ型: String、Number、Date、Cursor
|
32
|
+
- 値: 入力変数の場合、対応する値
|
33
|
+
- 最大サイズ: String または Buffer データ型の場合、変数の最大サイズを指定します。
|
32
34
|
|
33
35
|
#### パラメータ名
|
34
36
|
|
35
|
-
|
37
|
+
パラメータ名は、プロシージャで使用されるパラメータの名前を指定します。前述の例では、'id'と'out_name'がパラメータ名です。
|
36
38
|
|
37
|
-
###
|
39
|
+
### ディレクション
|
38
40
|
|
39
|
-
|
41
|
+
変数が入力(IN)または出力(OUT)変数かを指定します。
|
40
42
|
|
41
|
-
###
|
43
|
+
### データ型
|
42
44
|
|
43
|
-
|
45
|
+
パラメータのデータ型を指定します。データ型は、プロシージャを作成する際に指定された名前と完全に一致するように指定する必要があります。
|
44
46
|
|
45
|
-
|
47
|
+
たとえば、プロシージャが次のように実装されている場合:
|
46
48
|
|
47
49
|
```sql
|
48
50
|
CREATE OR REPLACE NONEDITIONABLE PROCEDURE myproc (in_id IN VARCHAR2, out_name OUT VARCHAR2) AS
|
49
51
|
BEGIN
|
50
|
-
SELECT name INTO out_name FROM MCS.FMB_USERS WHERE id = in_id;
|
52
|
+
SELECT name INTO out_name FROM MCS.FMB_USERS WHERE id = in_id ;
|
51
53
|
END;
|
52
54
|
```
|
53
55
|
|
54
|
-
最初のパラメータと 2 番目のパラメータはどちらも VARCHAR2
|
56
|
+
最初のパラメータと 2 番目のパラメータはどちらも VARCHAR2 型です。
|
55
57
|
|
56
|
-
|
58
|
+
このようなプロシージャを呼び出す場合、パラメータのタイプは両方とも String として指定し、出力の場合は最大サイズも指定する必要があります。
|
57
59
|
|
58
|
-
|
60
|
+
ここに指定方法の例があります:
|
59
61
|
|
60
62
|

|
61
63
|
|
62
|
-
###
|
63
|
-
|
64
|
-
設定は[JSONATA ドキュメント](http://docs.jsonata.org/overview.html)に従います。
|
64
|
+
### アクセサー
|
65
65
|
|
66
|
-
|
66
|
+
設定は[JSONATA のドキュメント](http://docs.jsonata.org/overview.html)に従います。
|
67
67
|
|
68
|
-
|
68
|
+
「アクセサー」が指定されている場合、そのアクセサーで構成された値がパラメータの値として使用されます。アクセサー操作から結
|
69
69
|
|
70
|
-
|
70
|
+
果が生成されない場合、
|
71
|
+
「値(val)」設定で指定された値が使用されます。
|
71
72
|
|
72
|
-
### 値
|
73
|
+
### 値(val)
|
73
74
|
|
74
|
-
|
75
|
-
このフィールドに直接「定数」値を入力します。
|
75
|
+
パラメータが入力(IN)の場合、このフィールドに値を指定します。このフィールドには「定数」値を直接入力します。
|
76
76
|
|
77
|
-
|
77
|
+
前述の例では、'id'パラメータの入力値として'ID'が指定されている場合、ID タスクから返された値を入力値として使用する必要があります。
|
78
78
|
|
79
|
-
|
79
|
+
「アクセサー」設定から結果が生成されない場合、この値が使用されます。
|
80
80
|
|
81
81
|
### 最大サイズ
|
82
82
|
|
83
|
-
|
83
|
+
String または Buffer データ型のパラメータの場合、最大サイズを指定します。他のデータ型に対してはこの値を指定しないでください。
|
84
84
|
|
85
|
-
##
|
85
|
+
## タスクの結果
|
86
86
|
|
87
|
-
|
87
|
+
プロシージャを呼び出した結果は、オブジェクト形式で返され、出力として指定されたパラメータ名がキーとなり、それに対応する値が返されます。
|
88
88
|
|
89
|
-
|
89
|
+
例えば、上記のタスクでは、結果の値は以下のようになります:
|
90
90
|
|
91
91
|
```javascript
|
92
92
|
{
|
@@ -94,9 +94,9 @@ END;
|
|
94
94
|
}
|
95
95
|
```
|
96
96
|
|
97
|
-
##
|
97
|
+
## 別の例(カーソル)
|
98
98
|
|
99
|
-
###
|
99
|
+
### プロシージャの実装例
|
100
100
|
|
101
101
|
```sql
|
102
102
|
CREATE OR REPLACE NONEDITIONABLE PROCEDURE PROCEDURE1(out_cursor OUT SYS_REFCURSOR) AS
|
@@ -108,11 +108,11 @@ BEGIN
|
|
108
108
|
END PROCEDURE1;
|
109
109
|
```
|
110
110
|
|
111
|
-
###
|
111
|
+
### プロシージャの呼び出し例
|
112
112
|
|
113
113
|

|
114
114
|
|
115
|
-
###
|
115
|
+
### プロシージャ呼び出しのタスク結果
|
116
116
|
|
117
117
|
```javascript
|
118
118
|
{
|
@@ -76,18 +76,17 @@ END;
|
|
76
76
|
|
77
77
|
아래 '값' 설정이 '상수'라면, 접근자 설정은 '변수'라고 할 수 있다.
|
78
78
|
|
79
|
-
접근자 설정은 다음의 '값' 설정에
|
80
|
-
|
79
|
+
접근자 설정은 다음의 '값' 설정에 우선순위이다. 즉, 만약에 이 '접근자'가 설정되어있으면, '값(val)' 설정에 우선하여 '접근자' 연산의 결과가 프로시져 파라미터 값이 된다.
|
80
|
+
결과 값이 없으면, '값'에 설정된 값이 사용된다.
|
81
81
|
|
82
|
-
### 값
|
82
|
+
### 값(val)
|
83
83
|
|
84
84
|
파라미터가 입력(IN)일 경우, 해당 값을 지정한다.
|
85
85
|
해당 값에 바로 "상수" 값을 입력한다.
|
86
86
|
|
87
87
|
위의 예어서 id의 입력 값을 ID라고 지정되어 있다면, ID 태스크에서 반환되는 값을 입력 값으로 지정한다.
|
88
88
|
|
89
|
-
이 값은 위 '접근자' 설정에
|
90
|
-
그 이유는 접근자가 설정되어 있는 상태에서 설정된 '값'은 주로 사용되는 용도라기보다는 '테스트'용 값으로 이해되기 때문이다.
|
89
|
+
이 값은 위 '접근자' 설정에 따른 결과가 없는 경우에 이 '값'이 사용된다.
|
91
90
|
|
92
91
|
### 최대 크기
|
93
92
|
|
@@ -1,59 +1,63 @@
|
|
1
1
|
# Oracle Procedure Task
|
2
2
|
|
3
|
-
This
|
3
|
+
This task involves calling a procedure stored in an Oracle database. Depending on individual data types, it either returns a list of data or a specific data type's value.
|
4
4
|
|
5
5
|
## Parameters
|
6
6
|
|
7
7
|
### Procedure Code
|
8
8
|
|
9
|
-
- The procedure code is generated
|
10
|
-
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
- The procedure code is automatically generated based on the _procedure name_ and _parameters_, and there's no need for users to input it.
|
10
|
+
- For example, if the procedure's name is _mcs.myproc_ with parameters _id_ and _out_name_, it would be expressed as follows:
|
11
|
+
|
12
|
+
```text
|
13
|
+
mcs.myproc(:id, :out_name);
|
14
|
+
```
|
14
15
|
|
15
16
|
### Procedure Name
|
16
17
|
|
17
|
-
-
|
18
|
-
- If the procedure needs to be distinguished by
|
18
|
+
- Specifies the name of the procedure.
|
19
|
+
- If the procedure needs to be distinguished by package or user names, use a period (.) to separate them.
|
19
20
|
- Example:
|
20
|
-
|
21
|
-
|
22
|
-
|
21
|
+
|
22
|
+
```text
|
23
|
+
mcs.myproc
|
24
|
+
```
|
23
25
|
|
24
26
|
### Parameters
|
25
27
|
|
26
28
|
- Parameters consist of the following elements:
|
27
|
-
- Parameter
|
28
|
-
-
|
29
|
-
-
|
30
|
-
- Value:
|
31
|
-
-
|
29
|
+
- Parameter Name
|
30
|
+
- Direction: IN, INOUT, OUT
|
31
|
+
- Data Type: String, Number, Date, Cursor
|
32
|
+
- Value: For input variables, the corresponding value
|
33
|
+
- Max Size: For String or Buffer data types, the maximum size of the variable.
|
32
34
|
|
33
35
|
#### Parameter Name
|
34
36
|
|
35
|
-
The parameter name specifies the name of the parameter used in the procedure. In the example above, 'id' and 'out_name' are
|
37
|
+
The parameter name specifies the name of the parameter used in the procedure. In the example above, 'id' and 'out_name' are parameter names.
|
36
38
|
|
37
|
-
###
|
39
|
+
### Direction
|
38
40
|
|
39
|
-
|
41
|
+
Specifies whether the variable is an input (IN) or output (OUT) variable.
|
40
42
|
|
41
|
-
###
|
43
|
+
### Data Type
|
42
44
|
|
43
|
-
|
45
|
+
Specifies the data type of the parameter. The data type should be specified exactly as it is named when creating the procedure.
|
44
46
|
|
45
|
-
|
47
|
+
For instance, if a procedure is implemented as follows:
|
46
48
|
|
47
49
|
```sql
|
48
50
|
CREATE OR REPLACE NONEDITIONABLE PROCEDURE myproc (in_id IN VARCHAR2, out_name OUT VARCHAR2) AS
|
49
51
|
BEGIN
|
50
|
-
SELECT name INTO out_name FROM MCS.FMB_USERS WHERE id = in_id;
|
52
|
+
SELECT name INTO out_name FROM MCS.FMB_USERS WHERE id = in_id ;
|
51
53
|
END;
|
52
54
|
```
|
53
55
|
|
54
|
-
Both the first and second parameters are
|
56
|
+
Both the first and second parameters are of type VARCHAR2.
|
55
57
|
|
56
|
-
|
58
|
+
When calling such a procedure, you should specify the parameter type as String and, for output, also specify the maximum size.
|
59
|
+
|
60
|
+
Here's an example of how to specify it:
|
57
61
|
|
58
62
|

|
59
63
|
|
@@ -61,30 +65,25 @@ Here's an example of parameter configuration:
|
|
61
65
|
|
62
66
|
The configuration follows the [JSONATA documentation](http://docs.jsonata.org/overview.html).
|
63
67
|
|
64
|
-
When
|
65
|
-
|
66
|
-
If the 'value' setting below is a 'constant,' then the accessor setting can be considered as a 'variable.'
|
67
|
-
|
68
|
-
Accessor configuration takes precedence over the following 'value' setting. In other words, if the 'value' is set, it takes priority as the parameter value for the procedure. This is because when an accessor is set, the configured 'value' is typically understood as a value used for testing purposes rather than for primary use.
|
68
|
+
When the 'accessor' is specified, the value composed by that accessor is used as the parameter value. If no result is generated by the 'accessor' operation, the value set in 'Value (val)' is used.
|
69
69
|
|
70
|
-
### Value
|
70
|
+
### Value (val)
|
71
71
|
|
72
|
-
If the parameter is an input (IN),
|
73
|
-
Enter a "constant" value directly into this field.
|
72
|
+
If the parameter is an input (IN), this field specifies the value. Enter a "constant" value directly for this field.
|
74
73
|
|
75
|
-
In the example
|
74
|
+
In the example mentioned earlier, if 'ID' is specified as the input value for the 'id' parameter, you should use the value returned by the ID task as the input value.
|
76
75
|
|
77
|
-
This value
|
76
|
+
This value is used if there is no result from the 'accessor' setting.
|
78
77
|
|
79
|
-
###
|
78
|
+
### Max Size
|
80
79
|
|
81
|
-
|
80
|
+
For parameters with String or Buffer data types, specify the maximum size. Ignore this for other data types.
|
82
81
|
|
83
82
|
## Task Result
|
84
83
|
|
85
|
-
The result of the procedure
|
84
|
+
The result of calling the procedure is returned in Object format, with the parameter names specified for output becoming keys and their corresponding values returned.
|
86
85
|
|
87
|
-
For example, in the
|
86
|
+
For example, in the task mentioned above, the result value would be:
|
88
87
|
|
89
88
|
```javascript
|
90
89
|
{
|
@@ -92,9 +91,9 @@ For example, in the case of the task introduced above, it returns the following
|
|
92
91
|
}
|
93
92
|
```
|
94
93
|
|
95
|
-
## Another
|
94
|
+
## Another Example (Cursor)
|
96
95
|
|
97
|
-
### Procedure
|
96
|
+
### Procedure Implementation Example
|
98
97
|
|
99
98
|
```sql
|
100
99
|
CREATE OR REPLACE NONEDITIONABLE PROCEDURE PROCEDURE1(out_cursor OUT SYS_REFCURSOR) AS
|
@@ -106,11 +105,11 @@ BEGIN
|
|
106
105
|
END PROCEDURE1;
|
107
106
|
```
|
108
107
|
|
109
|
-
### Procedure
|
108
|
+
### Procedure Invocation Example
|
110
109
|
|
111
110
|

|
112
111
|
|
113
|
-
###
|
112
|
+
### Task Result for Procedure Invocation
|
114
113
|
|
115
114
|
```javascript
|
116
115
|
{
|
@@ -1,92 +1,91 @@
|
|
1
1
|
# Tugas Prosedur Oracle
|
2
2
|
|
3
|
-
|
3
|
+
Tugas ini melibatkan pemanggilan prosedur yang disimpan dalam pangkalan data Oracle. Bergantung pada jenis data individual, tugas ini akan mengembalikan daftar data atau nilai jenis data tertentu.
|
4
4
|
|
5
5
|
## Parameter
|
6
6
|
|
7
|
-
###
|
7
|
+
### Kod Prosedur
|
8
8
|
|
9
|
-
-
|
10
|
-
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
- Kod prosedur dihasilkan secara automatik berdasarkan _nama prosedur_ dan _parameter_, dan pengguna tidak perlu memasukkannya secara manual.
|
10
|
+
- Sebagai contoh, jika nama prosedurnya adalah _mcs.myproc_ dengan parameter _id_ dan _out_name_, maka ia akan dinyatakan seperti berikut:
|
11
|
+
|
12
|
+
```text
|
13
|
+
mcs.myproc(:id, :out_name);
|
14
|
+
```
|
14
15
|
|
15
16
|
### Nama Prosedur
|
16
17
|
|
17
|
-
-
|
18
|
-
- Jika prosedur perlu
|
18
|
+
- Menentukan nama prosedur.
|
19
|
+
- Jika prosedur perlu dibezakan mengikut nama pakej atau pengguna, gunakan titik (.) untuk memisahkan mereka.
|
19
20
|
- Contoh:
|
20
|
-
|
21
|
-
|
22
|
-
|
21
|
+
|
22
|
+
```text
|
23
|
+
mcs.myproc
|
24
|
+
```
|
23
25
|
|
24
26
|
### Parameter
|
25
27
|
|
26
|
-
- Parameter terdiri
|
27
|
-
- Nama
|
28
|
-
-
|
29
|
-
-
|
30
|
-
- Nilai:
|
31
|
-
-
|
28
|
+
- Parameter terdiri daripada elemen-elemen berikut:
|
29
|
+
- Nama Parameter
|
30
|
+
- Arah: IN, INOUT, OUT
|
31
|
+
- Jenis Data Parameter: String, Number, Date, Cursor
|
32
|
+
- Nilai: Untuk pembolehubah input, nilai yang bersesuaian
|
33
|
+
- Saiz Maksimum: Untuk jenis data String atau Buffer, saiz maksimum pembolehubah tersebut.
|
32
34
|
|
33
35
|
#### Nama Parameter
|
34
36
|
|
35
37
|
Nama parameter menentukan nama parameter yang digunakan dalam prosedur. Dalam contoh di atas, 'id' dan 'out_name' adalah nama parameter.
|
36
38
|
|
37
|
-
###
|
39
|
+
### Arah
|
38
40
|
|
39
|
-
|
41
|
+
Menentukan sama ada pembolehubah tersebut adalah pembolehubah input (IN) atau output (OUT).
|
40
42
|
|
41
|
-
###
|
43
|
+
### Jenis Data Parameter
|
42
44
|
|
43
|
-
|
45
|
+
Menentukan jenis data parameter. Jenis data ini harus ditentukan dengan tepat seperti yang dinamakan semasa membuat prosedur.
|
44
46
|
|
45
|
-
|
47
|
+
Sebagai contoh
|
48
|
+
|
49
|
+
, jika sebuah prosedur diimplementasikan seperti berikut:
|
46
50
|
|
47
51
|
```sql
|
48
52
|
CREATE OR REPLACE NONEDITIONABLE PROCEDURE myproc (in_id IN VARCHAR2, out_name OUT VARCHAR2) AS
|
49
53
|
BEGIN
|
50
|
-
SELECT name INTO out_name FROM MCS.FMB_USERS WHERE id = in_id;
|
54
|
+
SELECT name INTO out_name FROM MCS.FMB_USERS WHERE id = in_id ;
|
51
55
|
END;
|
52
56
|
```
|
53
57
|
|
54
|
-
|
58
|
+
Kedua-dua parameter pertama dan kedua adalah jenis VARCHAR2.
|
55
59
|
|
56
|
-
seperti
|
60
|
+
Apabila memanggil prosedur seperti ini, anda perlu menentukan jenis parameter sebagai String dan, untuk output, juga menentukan saiz maksimum.
|
57
61
|
|
58
|
-
|
62
|
+
Inilah contoh bagaimana untuk menentukannya:
|
59
63
|
|
60
|
-

|
61
65
|
|
62
|
-
###
|
66
|
+
### Pembolehubah Akses
|
63
67
|
|
64
68
|
Konfigurasi mengikuti [dokumentasi JSONATA](http://docs.jsonata.org/overview.html).
|
65
69
|
|
66
|
-
|
67
|
-
|
68
|
-
Jika pengaturan 'nilai' di bawah adalah 'konstan', maka pengaturan aksesori dapat dianggap sebagai 'variabel'.
|
69
|
-
|
70
|
-
Konfigurasi aksesori memiliki prioritas lebih tinggi daripada pengaturan 'nilai' berikut. Dalam kata lain, jika 'nilai' diatur, itu akan menjadi prioritas sebagai nilai parameter untuk prosedur. Hal ini karena ketika aksesori diatur, 'nilai' yang dikonfigurasi biasanya dianggap sebagai nilai yang digunakan untuk tujuan pengujian daripada penggunaan utama.
|
70
|
+
Apabila 'pembolehubah akses' ditentukan, nilai yang disusun oleh pembolehubah tersebut digunakan sebagai nilai parameter. Jika tiada hasil yang dihasilkan oleh operasi 'pembolehubah', nilai yang ditetapkan dalam 'Nilai (val)' juga digunakan.
|
71
71
|
|
72
|
-
### Nilai
|
72
|
+
### Nilai (val)
|
73
73
|
|
74
|
-
Jika
|
75
|
-
Masukkan nilai "konstan" langsung ke dalam bidang ini.
|
74
|
+
Jika pembolehubah tersebut adalah input (IN), medan ini menentukan nilai tersebut. Masukkan nilai "tetap" secara langsung untuk medan ini.
|
76
75
|
|
77
|
-
Dalam contoh
|
76
|
+
Dalam contoh yang disebutkan sebelum ini, jika 'ID' ditetapkan sebagai nilai input untuk parameter 'id', anda harus menggunakan nilai yang dihasilkan oleh tugas ID sebagai nilai input.
|
78
77
|
|
79
|
-
Nilai ini
|
78
|
+
Nilai ini digunakan jika hasil dari tetapan 'pembolehubah' tidak ada.
|
80
79
|
|
81
|
-
###
|
80
|
+
### Saiz Maksimum
|
82
81
|
|
83
|
-
|
82
|
+
Untuk pembolehubah dengan jenis data String atau Buffer, tentukan saiz maksimum. Abaikan ini untuk jenis data lain.
|
84
83
|
|
85
84
|
## Hasil Tugas
|
86
85
|
|
87
|
-
Hasil
|
86
|
+
Hasil daripada pemanggilan prosedur dikembalikan dalam format Objek, dengan nama parameter yang ditentukan untuk output menjadi kunci dan nilai yang sesuai menjadi hasilnya.
|
88
87
|
|
89
|
-
|
88
|
+
Sebagai contoh, dalam tugas yang disebutkan di atas, hasilnya akan seperti berikut:
|
90
89
|
|
91
90
|
```javascript
|
92
91
|
{
|
@@ -94,9 +93,9 @@ Misalnya, dalam kasus tugas yang diperkenalkan di atas, itu mengembalikan nilai
|
|
94
93
|
}
|
95
94
|
```
|
96
95
|
|
97
|
-
## Contoh
|
96
|
+
## Contoh Lain (Cursor)
|
98
97
|
|
99
|
-
### Contoh
|
98
|
+
### Contoh Implementasi Prosedur
|
100
99
|
|
101
100
|
```sql
|
102
101
|
CREATE OR REPLACE NONEDITIONABLE PROCEDURE PROCEDURE1(out_cursor OUT SYS_REFCURSOR) AS
|
@@ -110,9 +109,9 @@ END PROCEDURE1;
|
|
110
109
|
|
111
110
|
### Contoh Panggilan Prosedur
|
112
111
|
|
113
|
-

|
114
113
|
|
115
|
-
### Hasil Panggilan
|
114
|
+
### Hasil Tugas untuk Panggilan Prosedur
|
116
115
|
|
117
116
|
```javascript
|
118
117
|
{
|