# Axis 的 Rule Chain連接 1. 在Thingsboard建立rule chain - 依序點擊 Rule chain、add icon、create new rule chain  - 輸入 Name ,開啟Debug mode,並點擊 add icon * Debug mode 用於審查每個規則節點的傳入和傳出訊息的能力  - 點擊剛剛建立的 Rule chain  2. 建立 Rule node - 在左側搜尋欄輸入 script ,選擇 Transformation下的 script  * Transformation的差異 :::spoiler <br/> 常用 Node 1. script * 可使用 javascript 存取 data ,如payload、metadata。 2. json path * 提取特定欄位 json data。 3. rename key * 欄位名稱轉換。 ::: - 設定 script 基本資料,Node name 及 javascript 的修改,用來處理從 device 經 AOA 處理產生的資料。  >[!Note]註記 經由AOA回傳的資料包含多個情境,因此此處需設定不同的scenario來區分不同AOA的資料,可參考下方詳細資料。 ::: spoiler 待添加 ::: - 接回Root node,設定Node name及要接回的Rule chain  ### Reference [Rule Engine Overview](https://thingsboard.io/docs/user-guide/rule-engine-2-0/overview/#debugging) [Transformation script node](https://thingsboard.io/docs/user-guide/rule-engine-2-0/transformation-nodes/#script-transformation-node) [Rule node](https://thingsboard.io/docs/user-guide/rule-engine-2-0/flow-nodes/)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up