Rule engine el 規則轉換 API ( for cms ).md
11 additions, 9 deletions
| ... | ... | @@ -4,6 +4,7 @@ |
| 4 | +| 1.2 | JsonResponse 調整資料格式為全部多筆 | 2026/03/12 | Maurice | | |
| 4 | -| 1 | chainType | String | true | RULE_ENGINE_FLOW.CHAIN_TYPE | | | |
| 5 | -| 1 | chainName | String | true | activityType + RULE_ENGINE_FLOW.ID | ex. EXCHANGE_VOUCHER_0001 | | |
| 6 | -| 1 | id | String | false | RULE_ENGINE_FLOW.ID ( PK Sequence ) | Response 取得這個後,直接拿來當 RULE_ENGINE_FLOW.ID 來 Insert,不用再取號 | | |
| 7 | - | 1 | elData | jsonArray | true | el expression | | | |
| 5 | + | 1 | subMissions | jsonArray | true | | | | |
| 8 | - | 2 | content | String | true | el content | | | |
| 6 | + | 2 | chainType | String | true | RULE_ENGINE_FLOW.CHAIN_TYPE | | | |
| 7 | +| 2 | chainName | String | true | activityType + RULE_ENGINE_FLOW.ID | ex. EXCHANGE_VOUCHER_0001 | | |
| 8 | +| 2 | id | String | true | RULE_ENGINE_FLOW.ID ( PK Sequence ) | Response 取得這個後,直接拿來當 RULE_ENGINE_FLOW.ID 來 Insert,不用再取號 | | |
| 9 | +| 2 | elData | String | true | el content | IF([in.data](http://in.data)('{"field":"name", "values":["星巴克 150 元券", "威秀電影票"]}'), markPassed) | | |
| 9 | 10 | "errorCode": null, |
| ... | ... | @@ -183,15 +190,16 @@ |
| 183 | 190 | "errorCode": null, |
| 184 | 191 | "message": null, |
| 185 | 192 | "values": { |
| 193 | + "subMissions": [ | |
| 194 | + { | |
| 195 | + "subId": "001", | |
| 186 | 196 | "chainType": "MISSION", |
| 187 | 197 | "chainName": "EXCHANGE_VOUCHER_0001", |
| 188 | 198 | "id": "0001", |
| 189 | - "elData": [ | |
| 190 | - { | |
| 191 | - "sub_id": "001", | |
| 192 | - "content": "SER(markPassed)" | |
| 199 | + "elData": "SER(markPassed)" | |
| 193 | 200 | } |
| 194 | 201 | ] |
| 202 | + } |