@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.
Files changed (51) hide show
  1. package/dist-server/engine/task/database-query.js +2 -1
  2. package/dist-server/engine/task/database-query.js.map +1 -1
  3. package/dist-server/engine/task/graphql-mutate.js +2 -1
  4. package/dist-server/engine/task/graphql-mutate.js.map +1 -1
  5. package/dist-server/engine/task/graphql-query.js +2 -1
  6. package/dist-server/engine/task/graphql-query.js.map +1 -1
  7. package/dist-server/engine/task/http-get.js +2 -1
  8. package/dist-server/engine/task/http-get.js.map +1 -1
  9. package/dist-server/engine/task/http-post.js +2 -1
  10. package/dist-server/engine/task/http-post.js.map +1 -1
  11. package/dist-server/engine/task/local-graphql-mutate.js +8 -5
  12. package/dist-server/engine/task/local-graphql-mutate.js.map +1 -1
  13. package/dist-server/engine/task/local-graphql-query.js +8 -5
  14. package/dist-server/engine/task/local-graphql-query.js.map +1 -1
  15. package/dist-server/engine/task/log.js +2 -1
  16. package/dist-server/engine/task/log.js.map +1 -1
  17. package/dist-server/engine/task/oracle-procedure.js +3 -3
  18. package/dist-server/engine/task/oracle-procedure.js.map +1 -1
  19. package/dist-server/engine/task/script.js +3 -2
  20. package/dist-server/engine/task/script.js.map +1 -1
  21. package/dist-server/engine/types.js.map +1 -1
  22. package/dist-server/routers/scenario-schedule-callback-router.js +7 -2
  23. package/dist-server/routers/scenario-schedule-callback-router.js.map +1 -1
  24. package/dist-server/service/scenario/scenario-type.js +1 -1
  25. package/dist-server/service/scenario/scenario-type.js.map +1 -1
  26. package/dist-server/service/scenario-instance/scenario-instance-mutation.js +2 -2
  27. package/dist-server/service/scenario-instance/scenario-instance-mutation.js.map +1 -1
  28. package/dist-server/service/scenario-instance/scenario-instance-type.js +9 -1
  29. package/dist-server/service/scenario-instance/scenario-instance-type.js.map +1 -1
  30. package/dist-server/tsconfig.tsbuildinfo +1 -1
  31. package/helps/integration/task/oracle-procedure.ja.md +46 -46
  32. package/helps/integration/task/oracle-procedure.ko.md +4 -5
  33. package/helps/integration/task/oracle-procedure.md +42 -43
  34. package/helps/integration/task/oracle-procedure.ms.md +46 -47
  35. package/helps/integration/task/oracle-procedure.zh.md +43 -44
  36. package/package.json +8 -8
  37. package/server/engine/task/database-query.ts +2 -1
  38. package/server/engine/task/graphql-mutate.ts +2 -1
  39. package/server/engine/task/graphql-query.ts +2 -1
  40. package/server/engine/task/http-get.ts +2 -1
  41. package/server/engine/task/http-post.ts +2 -1
  42. package/server/engine/task/local-graphql-mutate.ts +8 -5
  43. package/server/engine/task/local-graphql-query.ts +8 -5
  44. package/server/engine/task/log.ts +2 -1
  45. package/server/engine/task/oracle-procedure.ts +3 -4
  46. package/server/engine/task/script.ts +3 -2
  47. package/server/engine/types.ts +1 -0
  48. package/server/routers/scenario-schedule-callback-router.ts +6 -2
  49. package/server/service/scenario/scenario-type.ts +1 -1
  50. package/server/service/scenario-instance/scenario-instance-mutation.ts +2 -2
  51. package/server/service/scenario-instance/scenario-instance-type.ts +9 -1
@@ -1,92 +1,92 @@
1
- # Oracle 存储过程任务
1
+ # Oracle プロシージャ タスク
2
2
 
3
- これは Oracle データベースに保存されているプロシージャを呼び出すタスクで、個々のデータ型に基づいてデータのリストまたは特定のデータ型の値を返します。
3
+ このタスクは、Oracle データベースに格納されているプロシージャを呼び出すもので、個々のデータ型に応じてデータのリストまたは特定のデータ型の値を返します。
4
4
 
5
5
  ## パラメータ
6
6
 
7
- ### プロシージャコード
7
+ ### プロシージャ コード
8
8
 
9
- - プロシージャコードは、*プロシージャ名*と*パラメータ*に基づいて自動生成されるコードで、ユーザーは別途入力する必要はありません。
10
- - プロシージャ名が*mcs.myproc*で、パラメータが*id*と*out_name*の場合、次のように表現されます:
11
- ```text
12
- mcs.myproc(:id, :out_name);
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
- ```text
21
- mcs.myproc
22
- ```
21
+
22
+ ```text
23
+ mcs.myproc
24
+ ```
23
25
 
24
26
  ### パラメータ
25
27
 
26
- - パラメータには以下の要素が含まれています:
28
+ - パラメータは次の要素で構成されています。
27
29
  - パラメータ名
28
- - 入力/出力仕様:IN、INOUT、OUT
29
- - パラメータの型:String、Number、Date、Cursor
30
- - 値:変数が入力の場合、その入力の値を指定します。
31
- - 最大サイズ:変数の型が String または Buffer の場合、変数の最大サイズを指定します。
30
+ - ディレクション: IN、INOUT、OUT
31
+ - データ型: String、Number、Date、Cursor
32
+ - 値: 入力変数の場合、対応する値
33
+ - 最大サイズ: String または Buffer データ型の場合、変数の最大サイズを指定します。
32
34
 
33
35
  #### パラメータ名
34
36
 
35
- パラメータ名はプロシージャで使用されるパラメータの名前を指定します。前述の例では、'id'と'out_name'がパラメータ名です。
37
+ パラメータ名は、プロシージャで使用されるパラメータの名前を指定します。前述の例では、'id'と'out_name'がパラメータ名です。
36
38
 
37
- ### 入力/出力仕様
39
+ ### ディレクション
38
40
 
39
- 変数が入力(IN)または出力(OUT)かを指定します。
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
- ージャを呼び出す場合、両方のパラメータに対しても String をパラメータの型として指定し、出力についても最大サイズを指定する必要があります。
58
+ このようなプロシージャを呼び出す場合、パラメータのタイプは両方とも String として指定し、出力の場合は最大サイズも指定する必要があります。
57
59
 
58
- 以下は、パラメータの構成の例です:
60
+ ここに指定方法の例があります:
59
61
 
60
62
  ![procedure example1](./assets/../../../../assets/images/oracle-procedure-example1.png 'procedure example1')
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
- パラメータが入力(IN)の場合、その値を指定します。
75
- このフィールドに直接「定数」値を入力します。
75
+ パラメータが入力(IN)の場合、このフィールドに値を指定します。このフィールドには「定数」値を直接入力します。
76
76
 
77
- 上記の例では、「id」の入力値を「ID」と指定した場合、ID タスクの入力値として設定されます。
77
+ 前述の例では、'id'パラメータの入力値として'ID'が指定されている場合、ID タスクから返された値を入力値として使用する必要があります。
78
78
 
79
- この値は、上記の 'アクセッサ' の設定より優先されます。これは、アクセッサが設定されている場合、設定された '値' は通常、テストの目的で使用される値として理解されるためです。
79
+ 「アクセサー」設定から結果が生成されない場合、この値が使用されます。
80
80
 
81
81
  ### 最大サイズ
82
82
 
83
- パラメータの型が String または Buffer の場合、最大サイズを指定します。他の型の場合は値を指定せずに無視します。
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
  ![procedure example2](./assets/../../../../assets/images/oracle-procedure-example2.png 'procedure example2')
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 is a task for calling procedures stored in the Oracle database, returning either lists of data or specific data types based on individual data types.
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 automatically based on the _procedure name_ and _parameters_, and there is no need for users to input it separately.
10
- - If the procedure name is _mcs.myproc_ and it has parameters _id_ and _out_name_, it is expressed as follows:
11
- ```text
12
- mcs.myproc(:id, :out_name);
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
- - Specify the name of the procedure.
18
- - If the procedure needs to be distinguished by a package or user name, use '.' to separate them.
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
- ```text
21
- mcs.myproc
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 name
28
- - Input/Output specification: IN, INOUT, OUT
29
- - Parameter type: String, Number, Date, Cursor
30
- - Value: If the variable is an input, specify the value for that input.
31
- - Maximum size: If the variable type is String or Buffer, specify the maximum size of the variable.
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 the parameter names.
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
- ### Input/Output Specification
39
+ ### Direction
38
40
 
39
- Specify whether the variable is an input (IN) or output (OUT).
41
+ Specifies whether the variable is an input (IN) or output (OUT) variable.
40
42
 
41
- ### Parameter Type
43
+ ### Data Type
42
44
 
43
- Specify the parameter type. The type should be specified exactly as it is named when creating the procedure.
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
- If the procedure is implemented as follows:
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 specified as VARCHAR2. When calling such a procedure, you must specify String as the parameter type for both, and for output, you must also specify the maximum size.
56
+ Both the first and second parameters are of type VARCHAR2.
55
57
 
56
- Here's an example of parameter configuration:
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
  ![procedure example1](./assets/../../../../assets/images/oracle-procedure-example1.png 'procedure example1')
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 an 'accessor' is specified, the value constructed with this accessor is used as a parameter for the procedure.
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), specify its value.
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 above, if the input value for 'id' is specified as 'ID,' then it is set as the input value for the ID task.
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 takes precedence over the 'accessor' configuration above. 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.
76
+ This value is used if there is no result from the 'accessor' setting.
78
77
 
79
- ### Maximum Size
78
+ ### Max Size
80
79
 
81
- If the parameter type is String or Buffer, specify the maximum size. Ignore this for other types.
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 call is returned in the form of an object, with the parameter specified as output becoming the key for returning the value.
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 case of the task introduced above, it returns the following result value:
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 Use Case (Cursor)
94
+ ## Another Example (Cursor)
96
95
 
97
- ### Procedure Creation Example
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 Call Example
108
+ ### Procedure Invocation Example
110
109
 
111
110
  ![procedure example2](./assets/../../../../assets/images/oracle-procedure-example2.png 'procedure example2')
112
111
 
113
- ### Procedure Task Call Result
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
- Ini adalah tugas untuk memanggil prosedur yang disimpan di database Oracle, mengembalikan daftar data atau tipe data tertentu berdasarkan tipe data individu.
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
- ### Kode Prosedur
7
+ ### Kod Prosedur
8
8
 
9
- - Kode prosedur dibuat secara otomatis berdasarkan _nama prosedur_ dan _parameter_, dan pengguna tidak perlu memasukkannya secara terpisah.
10
- - Jika nama prosedur adalah _mcs.myproc_ dan memiliki parameter _id_ dan _out_name_, maka diungkapkan seperti berikut:
11
- ```text
12
- mcs.myproc(:id, :out_name);
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
- - Tentukan nama prosedur.
18
- - Jika prosedur perlu dibedakan dengan nama paket atau pengguna, gunakan '.' untuk memisahkan mereka.
18
+ - Menentukan nama prosedur.
19
+ - Jika prosedur perlu dibezakan mengikut nama pakej atau pengguna, gunakan titik (.) untuk memisahkan mereka.
19
20
  - Contoh:
20
- ```text
21
- mcs.myproc
22
- ```
21
+
22
+ ```text
23
+ mcs.myproc
24
+ ```
23
25
 
24
26
  ### Parameter
25
27
 
26
- - Parameter terdiri dari elemen-elemen berikut:
27
- - Nama parameter
28
- - Spesifikasi Masukan/Keluaran: IN, INOUT, OUT
29
- - Tipe parameter: String, Number, Date, Cursor
30
- - Nilai: Jika variabel adalah masukan, tentukan nilai untuk masukan tersebut.
31
- - Ukuran maksimum: Jika tipe variabel adalah String atau Buffer, tentukan ukuran maksimum variabel tersebut.
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
- ### Spesifikasi Masukan/Keluaran
39
+ ### Arah
38
40
 
39
- Tentukan apakah variabel adalah masukan (IN) atau keluaran (OUT).
41
+ Menentukan sama ada pembolehubah tersebut adalah pembolehubah input (IN) atau output (OUT).
40
42
 
41
- ### Tipe Parameter
43
+ ### Jenis Data Parameter
42
44
 
43
- Tentukan tipe parameter. Tipe harus ditentukan dengan tepat seperti yang dinamai saat membuat prosedur.
45
+ Menentukan jenis data parameter. Jenis data ini harus ditentukan dengan tepat seperti yang dinamakan semasa membuat prosedur.
44
46
 
45
- Jika prosedur diimplementasikan seperti berikut:
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
- Baik parameter pertama maupun kedua ditentukan sebagai VARCHAR2. Ketika memanggil prosedur
58
+ Kedua-dua parameter pertama dan kedua adalah jenis VARCHAR2.
55
59
 
56
- seperti itu, Anda harus menentukan String sebagai tipe parameter untuk keduanya, dan untuk keluaran, Anda juga harus menentukan ukuran maksimum.
60
+ Apabila memanggil prosedur seperti ini, anda perlu menentukan jenis parameter sebagai String dan, untuk output, juga menentukan saiz maksimum.
57
61
 
58
- Berikut adalah contoh konfigurasi parameter:
62
+ Inilah contoh bagaimana untuk menentukannya:
59
63
 
60
- ![contoh prosedur1](./assets/../../../../assets/images/oracle-procedure-example1.png 'contoh prosedur1')
64
+ ![contoh prosedur 1](./assets/../../../../assets/images/oracle-procedure-example1.png 'contoh prosedur 1')
61
65
 
62
- ### Aksesori
66
+ ### Pembolehubah Akses
63
67
 
64
68
  Konfigurasi mengikuti [dokumentasi JSONATA](http://docs.jsonata.org/overview.html).
65
69
 
66
- Ketika 'aksesori' ditentukan, nilai yang dibangun dengan aksesori ini digunakan sebagai parameter untuk prosedur.
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 parameter adalah masukan (IN), tentukan nilainya.
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 di atas, jika nilai masukan untuk 'id' ditentukan sebagai 'ID', maka itu diatur sebagai nilai masukan untuk tugas ID.
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 memiliki prioritas lebih tinggi daripada konfigurasi 'aksesori' di atas. Hal ini karena ketika aksesori diatur, 'nilai' yang dikonfigurasi biasanya dianggap sebagai nilai yang digunakan untuk tujuan pengujian daripada penggunaan utama.
78
+ Nilai ini digunakan jika hasil dari tetapan 'pembolehubah' tidak ada.
80
79
 
81
- ### Ukuran Maksimum
80
+ ### Saiz Maksimum
82
81
 
83
- Jika tipe parameter adalah String atau Buffer, tentukan ukuran maksimum. Abaikan ini untuk jenis lain.
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 panggilan prosedur dikembalikan dalam bentuk objek, dengan parameter yang ditentukan sebagai keluaran menjadi kunci untuk mengembalikan nilai.
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
- Misalnya, dalam kasus tugas yang diperkenalkan di atas, itu mengembalikan nilai hasil berikut:
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 Penggunaan Lainnya (Kursor)
96
+ ## Contoh Lain (Cursor)
98
97
 
99
- ### Contoh Pembuatan Prosedur
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
- ![contoh prosedur2](./assets/../../../../assets/images/oracle-procedure-example2.png 'contoh prosedur2')
112
+ ![contoh prosedur 2](./assets/../../../../assets/images/oracle-procedure-example2.png 'contoh prosedur 2')
114
113
 
115
- ### Hasil Panggilan Tugas Prosedur
114
+ ### Hasil Tugas untuk Panggilan Prosedur
116
115
 
117
116
  ```javascript
118
117
  {