انتقل إلى المحتوى الرئيسي

الاستيراد

تتيح لك وظيفة الاستيراد استيراد مخطط جاهز من الحافظة أو من ملف، أو اختياره من قائمة الأمثلة.


الاستيراد من JSON​

نافذة "Import nodes" على تبويب "Import": حقل يحتوي على JSON ملصوق لمثال "Hello World!"، مع الأزرار "Select a file" و"Import" و"Close"

انسخ المثال التالي والصقه في المحرر، ثم انقر زر الاستيراد.

[
{
"label": "Hello World!",
"id": "1f24387b252057fe",
"type": "tab",
"disabled": false
},
{
"name": "run",
"id": "b51ab819b83e1915",
"type": "inject",
"x": 46.96875,
"y": 99.51171875,
"z": "1f24387b252057fe",
"wires": [
[
"bd07e1ff0aedba0b"
]
]
},
{
"id": "2b524ca59e4ed633",
"type": "debug",
"name": "debug",
"x": 610.05078125,
"y": 98.59765625,
"z": "1f24387b252057fe",
"wires": []
},
{
"name": "function",
"func": "msg.payload = 'World'\n\nreturn msg;",
"id": "bd07e1ff0aedba0b",
"type": "function",
"x": 229.62890625,
"y": 98.8515625,
"z": "1f24387b252057fe",
"wires": [
[
"2e1172b330c69aeb"
]
]
},
{
"id": "2e1172b330c69aeb",
"type": "template",
"name": "template",
"x": 418.66796875,
"y": 98.19140625,
"z": "1f24387b252057fe",
"syntax": "mustache",
"template": "Hello {{payload}} !",
"output": "str",
"wires": [
[
"2b524ca59e4ed633"
]
]
}
]

الوصف التفصيلي للمعلمات متاح في وصف مخطط JSON (يفتح في علامة تبويب جديدة).

سيظهر لك المثال المستورد:

قسم "Integrations" مع التبويب الجديد "Hello World!": تعرض مساحة العمل سلسلة العقد run ← function ← template ← debug

الاستيراد من مثال​

افتح تبويب الأمثلة واختر أحد الأمثلة، ثم انقر زر الاستيراد.

نافذة "Import nodes" على تبويب "Examples": قائمة الأمثلة PayPal وFedEx وTemplate وWebhook وSwitch وQuantity update وReserve وزر "Import"

سيظهر لك المثال المستورد:

قسم "Integrations" مع التبويب الجديد "Switch": السلسلة inject ← function ← switch، وتتفرع عقدة switch إلى العقدتين a وb