全部产品
Search
文档中心

Security Center:Komponen TaskContext

更新时间:Oct 30, 2025

Komponen TaskContext memungkinkan Anda menetapkan dan menanyakan konteks dari sebuah playbook.

Fitur

Aksi

Deskripsi

Skenario

setContext

Menetapkan konteks.

Catatan
  • Jika kunci tidak ada, kunci baru akan dibuat.

  • Jika kunci sudah ada, nilainya akan ditimpa.

Menyimpan informasi kontekstual selama eksekusi playbook untuk digunakan nanti.

getContext

Menanyakan konteks.

Menanyakan informasi kontekstual yang telah disimpan.

appendListContext

Menambahkan nilai ke konteks bertipe daftar.

Catatan
  • Jika kunci tidak ada, daftar baru akan dibuat.

  • Jika kunci sudah ada, nilai akan ditambahkan ke daftar yang ada.

Menambahkan informasi kontekstual selama eksekusi playbook untuk digunakan nanti.

getListContext

Menanyakan konteks bertipe daftar.

Menanyakan informasi kontekstual bertipe daftar yang telah disimpan.

Contoh konfigurasi

Topik ini menyediakan contoh konfigurasi untuk aksi komponen TaskContext. Anda dapat mengimpor contoh-contoh ini sebagai playbook uji. Di editor alur visualisasi, Anda dapat menggunakan contoh-contoh ini untuk memahami dan menguji parameter untuk setiap aksi. Hal ini memudahkan untuk mempelajari logika dan penggunaan komponen. Untuk informasi lebih lanjut, lihat Impor sebuah playbook.

Catatan

Simpan data sampel sebagai file JSON sebelum Anda mengimpor playbook.

Data sampel

{
	"cells": [{
		"shape": "custom-edge",
		"attrs": {
			"line": {
				"stroke": "#63ba4d",
				"targetMarker": {
					"stroke": "#63ba4d"
				}
			}
		},
		"zIndex": 1,
		"id": "SequenceFlow_1o0qh3v",
		"data": {
			"isRequired": false,
			"appType": "basic",
			"nodeType": "sequenceFlow",
			"icon": "icon-upper-right-arrow"
		},
		"labels": [],
		"isNode": false,
		"source": {
			"cell": "StartEvent_1"
		},
		"target": {
			"cell": "Action_0xquztz"
		},
		"vertices": []
	}, {
		"position": {
			"x": -5,
			"y": 40
		},
		"size": {
			"width": 137,
			"height": 66
		},
		"view": "react-shape-view",
		"shape": "activity",
		"id": "Action_1sons4h",
		"data": {
			"nodeName": "TaskContext_6",
			"appType": "component",
			"componentName": "TaskContext",
			"nodeType": "action",
			"actionName": "getContext",
			"valueData": {
				"key": "name1"
			},
			"advance": {
				"onError": "stop_cur_flow",
				"rspStatusType": "3",
				"rspStatusThreshold": "0"
			},
			"icon": "https://sophon-gen-cloud-zhangjiakou-v2.oss-cn-zhangjiakou.aliyuncs.com/componentUpload/1750301983722_TaskContext_logo.png?Expires=1750405284&OSSAccessKeyId=STS.NX5Y***********8W&Signature=uNBTObExLWAh7J%2FYPX9uw%2BMslV0%3D&security-token=CAIS2AJ1q6Ft5B2yfSjIr5uAEv7337V53aeSZ1z8tnkmbcdh2paTtTz2IHhMenFpAegcv%2Fw%2BlGFZ6%2F8elrp6SJtIXleCZtF94oxN9h2gb4fb4wxlQRGU0s%2FLI3OaLjKm9u2wCryLYbGwU%2FOpbE%2B%2B5U0X6LDmdDKkckW4OJmS8%2FBOZcgWWQ%2FKBlgvRq0hRG1YpdQdKGHaONu0LxfumRCwNkdzvRdmgm4NgsbWgO%2Fks0OP3AOrlrBN%2Bdiuf8T9NvMBZskvD42Hu8VtbbfE3SJq7BxHybx7lqQs%2B02c5onDWwAJu0%2FXa7uEo4wydVNjFbM9A65Dqufxn%2Fpgt%2Braj4X7xhhEIOVJSSPbSZBbSxJNvU1RXDxQVcEYWxylurjnXvF%2Bgxqt0OxsGin%2B2svzhw6RGJ1dq8DgINtD0jokjPndRVbLXs84nxS7gbsGn76oY2zradH%2FdU7tn6l7MytAXxqAAQp4DQPgtjJpGipxkBpHLuNcGBShBy0T%2FpykyCMMvjeeh8Njd2uoNr8a5YOQwSurIQBC%2Fdl7%2FLGF1seWmsvRe8rz93egKbfC4VJaqXYns7EtnxWHfeg6lVso34AuucxdMPTZ%2Bzu2Y76yPUhGWYG6RX%2BLU%2FTFWHUtiXium458vUuIIAA%3D",
			"status": "success"
		},
		"zIndex": 1,
		"isNode": true
	}, {
		"position": {
			"x": -467,
			"y": 40
		},
		"size": {
			"width": 137,
			"height": 66
		},
		"view": "react-shape-view",
		"shape": "activity",
		"id": "Action_0geouqf",
		"data": {
			"nodeName": "TaskContext_7",
			"appType": "component",
			"componentName": "TaskContext",
			"nodeType": "action",
			"actionName": "appendListContext",
			"valueData": {
				"value": "jys_${event._req_uuid}_1",
				"ttl": "86400",
				"key": "nameList1"
			},
			"advance": {
				"onError": "stop_cur_flow",
				"rspStatusType": "3",
				"description": "Menambahkan nilai ke konteks bertipe daftar. Jika kunci tidak ada, daftar baru akan dibuat dengan nilai saat ini. Jika kunci sudah ada, nilai akan ditambahkan ke daftar yang ada.",
				"rspStatusThreshold": "0"
			},
			"icon": "https://sophon-gen-cloud-zhangjiakou-v2.oss-cn-zhangjiakou.aliyuncs.com/componentUpload/1750301983722_TaskContext_logo.png?Expires=1750405284&OSSAccessKeyId=STS.NX5Y***********8W&Signature=uNBTObExLWAh7J%2FYPX9uw%2BMslV0%3D&security-token=CAIS2AJ1q6Ft5B2yfSjIr5uAEv7337V53aeSZ1z8tnkmbcdh2paTtTz2IHhMenFpAegcv%2Fw%2BlGFZ6%2F8elrp6SJtIXleCZtF94oxN9h2gb4fb4wxlQRGU0s%2FLI3OaLjKm9u2wCryLYbGwU%2FOpbE%2B%2B5U0X6LDmdDKkckW4OJmS8%2FBOZcgWWQ%2FKBlgvRq0hRG1YpdQdKGHaONu0LxfumRCwNkdzvRdmgm4NgsbWgO%2Fks0OP3AOrlrBN%2Bdiuf8T9NvMBZskvD42Hu8VtbbfE3SJq7BxHybx7lqQs%2B02c5onDWwAJu0%2FXa7uEo4wydVNjFbM9A65Dqufxn%2Fpgt%2Braj4X7xhhEIOVJSSPbSZBbSxJNvU1RXDxQVcEYWxylurjnXvF%2Bgxqt0OxsGin%2B2svzhw6RGJ1dq8DgINtD0jokjPndRVbLXs84nxS7gbsGn76oY2zradH%2FdU7tn6l7MytAXxqAAQp4DQPgtjJpGipxkBpHLuNcGBShBy0T%2FpykyCMMvjeeh8Njd2uoNr8a5YOQwSurIQBC%2Fdl7%2FLGF1seWmsvRe8rz93egKbfC4VJaqXYns7EtnxWHfeg6lVso34AuucxdMPTZ%2Bzu2Y76yPUhGWYG6RX%2BLU%2FTFWHUtiXium458vUuIIAA%3D",
			"status": "success"
		},
		"zIndex": 1,
		"isNode": true
	}, {
		"position": {
			"x": 589,
			"y": 55
		},
		"size": {
			"width": 36,
			"height": 36
		},
		"attrs": {
			"body": {
				"fill": "white",
				"strokeOpacity": 0.95,
				"stroke": "#63ba4d",
				"strokeWidth": 2
			},
			"path": {
				"r": 12,
				"refX": "50%",
				"refY": "50%",
				"fill": "#63ba4d",
				"strokeOpacity": 0.95,
				"stroke": "#63ba4d",
				"strokeWidth": 4
			},
			"label": {
				"text": "",
				"fontSize": 12,
				"refX": 0.5,
				"refY": "100%",
				"refY2": 4,
				"textAnchor": "middle",
				"textVerticalAnchor": "top"
			}
		},
		"visible": true,
		"shape": "circle",
		"id": "EndEvent_1iulmg0",
		"data": {
			"appType": "basic",
			"nodeType": "endEvent",
			"valueData": {},
			"advance": {},
			"icon": "icon-radio-off-full"
		},
		"zIndex": 1,
		"markup": [{
			"tagName": "circle",
			"selector": "body"
		}, {
			"tagName": "circle",
			"selector": "path"
		}, {
			"tagName": "text",
			"selector": "label"
		}],
		"isNode": true
	}, {
		"shape": "custom-edge",
		"attrs": {
			"line": {
				"stroke": "#63ba4d",
				"targetMarker": {
					"stroke": "#63ba4d"
				}
			}
		},
		"zIndex": 1,
		"id": "SequenceFlow_0q5h2ge",
		"data": {
			"isRequired": false,
			"appType": "basic",
			"nodeType": "sequenceFlow",
			"icon": "icon-upper-right-arrow"
		},
		"labels": [],
		"isNode": false,
		"source": {
			"cell": "Action_0vxihh8"
		},
		"target": {
			"cell": "EndEvent_1iulmg0"
		},
		"vertices": []
	}, {
		"shape": "custom-edge",
		"attrs": {
			"line": {
				"stroke": "#63ba4d",
				"targetMarker": {
					"stroke": "#63ba4d"
				}
			}
		},
		"zIndex": 1,
		"id": "SequenceFlow_0g6a5ap",
		"data": {
			"isRequired": false,
			"appType": "basic",
			"nodeType": "sequenceFlow",
			"icon": "icon-upper-right-arrow"
		},
		"labels": [],
		"isNode": false,
		"source": {
			"cell": "Action_09hece0"
		},
		"target": {
			"cell": "Action_0vxihh8"
		},
		"vertices": []
	}, {
		"shape": "custom-edge",
		"attrs": {
			"line": {
				"stroke": "#63ba4d",
				"targetMarker": {
					"stroke": "#63ba4d"
				}
			}
		},
		"zIndex": 1,
		"id": "SequenceFlow_1gcjzzz",
		"data": {
			"isRequired": false,
			"appType": "basic",
			"nodeType": "sequenceFlow",
			"icon": "icon-upper-right-arrow"
		},
		"labels": [],
		"isNode": false,
		"source": {
			"cell": "Action_0xquztz"
		},
		"target": {
			"cell": "Action_1d9s59u"
		},
		"vertices": []
	}, {
		"shape": "custom-edge",
		"attrs": {
			"line": {
				"stroke": "#63ba4d",
				"targetMarker": {
					"stroke": "#63ba4d"
				}
			}
		},
		"zIndex": 1,
		"id": "SequenceFlow_18r8ybj",
		"data": {
			"isRequired": false,
			"appType": "basic",
			"nodeType": "sequenceFlow",
			"icon": "icon-upper-right-arrow"
		},
		"labels": [],
		"isNode": false,
		"source": {
			"cell": "Action_0geouqf"
		},
		"target": {
			"cell": "Action_0oc837j"
		},
		"vertices": []
	}, {
		"position": {
			"x": 231,
			"y": 40
		},
		"size": {
			"width": 137,
			"height": 66
		},
		"view": "react-shape-view",
		"shape": "activity",
		"id": "Action_09hece0",
		"data": {
			"nodeName": "TaskContext_1",
			"appType": "component",
			"componentName": "TaskContext",
			"nodeType": "action",
			"actionName": "setContext",
			"valueData": {
				"value": "jys_${event._req_uuid}",
				"ttl": "60",
				"key": "name1"
			},
			"advance": {
				"onError": "stop_cur_flow",
				"rspStatusType": "3",
				"rspStatusThreshold": "0"
			},
			"icon": "https://sophon-gen-cloud-zhangjiakou-v2.oss-cn-zhangjiakou.aliyuncs.com/componentUpload/1750301983722_TaskContext_logo.png?Expires=1750405284&OSSAccessKeyId=STS.NX5Y***********8W&Signature=uNBTObExLWAh7J%2FYPX9uw%2BMslV0%3D&security-token=CAIS2AJ1q6Ft5B2yfSjIr5uAEv7337V53aeSZ1z8tnkmbcdh2paTtTz2IHhMenFpAegcv%2Fw%2BlGFZ6%2F8elrp6SJtIXleCZtF94oxN9h2gb4fb4wxlQRGU0s%2FLI3OaLjKm9u2wCryLYbGwU%2FOpbE%2B%2B5U0X6LDmdDKkckW4OJmS8%2FBOZcgWWQ%2FKBlgvRq0hRG1YpdQdKGHaONu0LxfumRCwNkdzvRdmgm4NgsbWgO%2Fks0OP3AOrlrBN%2Bdiuf8T9NvMBZskvD42Hu8VtbbfE3SJq7BxHybx7lqQs%2B02c5onDWwAJu0%2FXa7uEo4wydVNjFbM9A65Dqufxn%2Fpgt%2Braj4X7xhhEIOVJSSPbSZBbSxJNvU1RXDxQVcEYWxylurjnXvF%2Bgxqt0OxsGin%2B2svzhw6RGJ1dq8DgINtD0jokjPndRVbLXs84nxS7gbsGn76oY2zradH%2FdU7tn6l7MytAXxqAAQp4DQPgtjJpGipxkBpHLuNcGBShBy0T%2FpykyCMMvjeeh8Njd2uoNr8a5YOQwSurIQBC%2Fdl7%2FLGF1seWmsvRe8rz93egKbfC4VJaqXYns7EtnxWHfeg6lVso34AuucxdMPTZ%2Bzu2Y76yPUhGWYG6RX%2BLU%2FTFWHUtiXium458vUuIIAA%3D",
			"status": "success"
		},
		"zIndex": 1,
		"isNode": true
	}, {
		"position": {
			"x": -221,
			"y": 40
		},
		"size": {
			"width": 137,
			"height": 66
		},
		"view": "react-shape-view",
		"shape": "activity",
		"id": "Action_0oc837j",
		"data": {
			"nodeName": "TaskContext_5",
			"appType": "component",
			"componentName": "TaskContext",
			"nodeType": "action",
			"actionName": "getListContext",
			"valueData": {
				"key": "nameList1"
			},
			"advance": {
				"onError": "stop_cur_flow",
				"rspStatusType": "3",
				"rspStatusThreshold": "0"
			},
			"icon": "https://sophon-gen-cloud-zhangjiakou-v2.oss-cn-zhangjiakou.aliyuncs.com/componentUpload/1750301983722_TaskContext_logo.png?Expires=1750405284&OSSAccessKeyId=STS.NX5Y***********8W&Signature=uNBTObExLWAh7J%2FYPX9uw%2BMslV0%3D&security-token=CAIS2AJ1q6Ft5B2yfSjIr5uAEv7337V53aeSZ1z8tnkmbcdh2paTtTz2IHhMenFpAegcv%2Fw%2BlGFZ6%2F8elrp6SJtIXleCZtF94oxN9h2gb4fb4wxlQRGU0s%2FLI3OaLjKm9u2wCryLYbGwU%2FOpbE%2B%2B5U0X6LDmdDKkckW4OJmS8%2FBOZcgWWQ%2FKBlgvRq0hRG1YpdQdKGHaONu0LxfumRCwNkdzvRdmgm4NgsbWgO%2Fks0OP3AOrlrBN%2Bdiuf8T9NvMBZskvD42Hu8VtbbfE3SJq7BxHybx7lqQs%2B02c5onDWwAJu0%2FXa7uEo4wydVNjFbM9A65Dqufxn%2Fpgt%2Braj4X7xhhEIOVJSSPbSZBbSxJNvU1RXDxQVcEYWxylurjnXvF%2Bgxqt0OxsGin%2B2svzhw6RGJ1dq8DgINtD0jokjPndRVbLXs84nxS7gbsGn76oY2zradH%2FdU7tn6l7MytAXxqAAQp4DQPgtjJpGipxkBpHLuNcGBShBy0T%2FpykyCMMvjeeh8Njd2uoNr8a5YOQwSurIQBC%2Fdl7%2FLGF1seWmsvRe8rz93egKbfC4VJaqXYns7EtnxWHfeg6lVso34AuucxdMPTZ%2Bzu2Y76yPUhGWYG6RX%2BLU%2FTFWHUtiXium458vUuIIAA%3D",
			"status": "success"
		},
		"zIndex": 1,
		"isNode": true
	}, {
		"position": {
			"x": 396,
			"y": 40
		},
		"size": {
			"width": 137,
			"height": 66
		},
		"view": "react-shape-view",
		"shape": "activity",
		"id": "Action_0vxihh8",
		"data": {
			"nodeName": "TaskContext_2",
			"appType": "component",
			"componentName": "TaskContext",
			"nodeType": "action",
			"actionName": "getContext",
			"valueData": {
				"key": "name1"
			},
			"advance": {
				"onError": "stop_cur_flow",
				"rspStatusType": "3",
				"rspStatusThreshold": "0"
			},
			"icon": "https://sophon-gen-cloud-zhangjiakou-v2.oss-cn-zhangjiakou.aliyuncs.com/componentUpload/1750301983722_TaskContext_logo.png?Expires=1750405284&OSSAccessKeyId=STS.NX5Y***********8W&Signature=uNBTObExLWAh7J%2FYPX9uw%2BMslV0%3D&security-token=CAIS2AJ1q6Ft5B2yfSjIr5uAEv7337V53aeSZ1z8tnkmbcdh2paTtTz2IHhMenFpAegcv%2Fw%2BlGFZ6%2F8elrp6SJtIXleCZtF94oxN9h2gb4fb4wxlQRGU0s%2FLI3OaLjKm9u2wCryLYbGwU%2FOpbE%2B%2B5U0X6LDmdDKkckW4OJmS8%2FBOZcgWWQ%2FKBlgvRq0hRG1YpdQdKGHaONu0LxfumRCwNkdzvRdmgm4NgsbWgO%2Fks0OP3AOrlrBN%2Bdiuf8T9NvMBZskvD42Hu8VtbbfE3SJq7BxHybx7lqQs%2B02c5onDWwAJu0%2FXa7uEo4wydVNjFbM9A65Dqufxn%2Fpgt%2Braj4X7xhhEIOVJSSPbSZBbSxJNvU1RXDxQVcEYWxylurjnXvF%2Bgxqt0OxsGin%2B2svzhw6RGJ1dq8DgINtD0jokjPndRVbLXs84nxS7gbsGn76oY2zradH%2FdU7tn6l7MytAXxqAAQp4DQPgtjJpGipxkBpHLuNcGBShBy0T%2FpykyCMMvjeeh8Njd2uoNr8a5YOQwSurIQBC%2Fdl7%2FLGF1seWmsvRe8rz93egKbfC4VJaqXYns7EtnxWHfeg6lVso34AuucxdMPTZ%2Bzu2Y76yPUhGWYG6RX%2BLU%2FTFWHUtiXium458vUuIIAA%3D",
			"status": "success"
		},
		"zIndex": 1,
		"isNode": true
	}, {
		"shape": "custom-edge",
		"attrs": {
			"line": {
				"stroke": "#63ba4d",
				"targetMarker": {
					"stroke": "#63ba4d"
				}
			}
		},
		"zIndex": 1,
		"id": "SequenceFlow_033a4zj",
		"data": {
			"isRequired": false,
			"appType": "basic",
			"nodeType": "sequenceFlow",
			"icon": "icon-upper-right-arrow"
		},
		"labels": [],
		"isNode": false,
		"source": {
			"cell": "Action_1d9s59u"
		},
		"target": {
			"cell": "Action_0geouqf"
		},
		"vertices": []
	}, {
		"position": {
			"x": -1028,
			"y": 55
		},
		"size": {
			"width": 36,
			"height": 36
		},
		"attrs": {
			"body": {
				"fill": "white",
				"strokeOpacity": 0.95,
				"stroke": "#63ba4d",
				"strokeWidth": 2
			},
			"label": {
				"text": "",
				"fontSize": 12,
				"refX": 0.5,
				"refY": "100%",
				"refY2": 4,
				"textAnchor": "middle",
				"textVerticalAnchor": "top"
			},
			"path": {
				"stroke": "#63ba4d"
			}
		},
		"visible": true,
		"shape": "circle",
		"id": "StartEvent_1",
		"data": {
			"appType": "basic",
			"nodeType": "startEvent",
			"valueData": {},
			"advance": {},
			"icon": "icon-circle"
		},
		"zIndex": 1,
		"markup": [{
			"tagName": "circle",
			"selector": "body"
		}, {
			"tagName": "text",
			"selector": "label"
		}],
		"isNode": true
	}, {
		"shape": "custom-edge",
		"attrs": {
			"line": {
				"stroke": "#63ba4d",
				"targetMarker": {
					"stroke": "#63ba4d"
				}
			}
		},
		"zIndex": 1,
		"id": "SequenceFlow_047h4kl",
		"data": {
			"isRequired": false,
			"appType": "basic",
			"nodeType": "sequenceFlow",
			"icon": "icon-upper-right-arrow"
		},
		"labels": [],
		"isNode": false,
		"source": {
			"cell": "Action_0oc837j"
		},
		"target": {
			"cell": "Action_1sons4h"
		},
		"vertices": []
	}, {
		"shape": "custom-edge",
		"attrs": {
			"line": {
				"stroke": "#63ba4d",
				"targetMarker": {
					"stroke": "#63ba4d"
				}
			}
		},
		"zIndex": 1,
		"id": "SequenceFlow_0e5ftrg",
		"data": {
			"isRequired": false,
			"appType": "basic",
			"nodeType": "sequenceFlow",
			"icon": "icon-upper-right-arrow"
		},
		"labels": [],
		"isNode": false,
		"source": {
			"cell": "Action_1sons4h"
		},
		"target": {
			"cell": "Action_09hece0"
		},
		"vertices": []
	}, {
		"position": {
			"x": -901,
			"y": 40
		},
		"size": {
			"width": 137,
			"height": 66
		},
		"view": "react-sh		"shape": "activity",
		"id": "Action_0xquztz",
		"data": {
			"nodeName": "TaskContext_3",
			"appType": "component",
			"componentName": "TaskContext",
			"nodeType": "action",
			"actionName": "getListContext",
			"valueData": {
				"key": "nameList1"
			},
			"advance": {
				"onError": "stop_cur_flow",
				"rspStatusType": "3",
				"rspStatusThreshold": "0"
			},
			"icon": "https://sophon-gen-cloud-zhangjiakou-v2.oss-cn-zhangjiakou.aliyuncs.com/componentUpload/1750301983722_TaskContext_logo.png?Expires=1750405284&OSSAccessKeyId=STS.NX5Y***********8W&Signature=uNBTObExLWAh7J%2FYPX9uw%2BMslV0%3D&security-token=CAIS2AJ1q6Ft5B2yfSjIr5uAEv7337V53aeSZ1z8tnkmbcdh2paTtTz2IHhMenFpAegcv%2Fw%2BlGFZ6%2F8elrp6SJtIXleCZtF94oxN9h2gb4fb4wxlQRGU0s%2FLI3OaLjKm9u2wCryLYbGwU%2FOpbE%2B%2B5U0X6LDmdDKkckW4OJmS8%2FBOZcgWWQ%2FKBlgvRq0hRG1YpdQdKGHaONu0LxfumRCwNkdzvRdmgm4NgsbWgO%2Fks0OP3AOrlrBN%2Bdiuf8T9NvMBZskvD42Hu8VtbbfE3SJq7BxHybx7lqQs%2B02c5onDWwAJu0%2FXa7uEo4wydVNjFbM9A65Dqufxn%2Fpgt%2Braj4X7xhhEIOVJSSPbSZBbSxJNvU1RXDxQVcEYWxylurjnXvF%2Bgxqt0OxsGin%2B2svzhw6RGJ1dq8DgINtD0jokjPndRVbLXs84nxS7gbsGn76oY2zradH%2FdU7tn6l7MytAXxqAAQp4DQPgtjJpGipxkBpHLuNcGBShBy0T%2FpykyCMMvjeeh8Njd2uoNr8a5YOQwSurIQBC%2Fdl7%2FLGF1seWmsvRe8rz93egKbfC4VJaqXYns7EtnxWHfeg6lVso34AuucxdMPTZ%2Bzu2Y76yPUhGWYG6RX%2BLU%2FTFWHUtiXium458vUuIIAA%3D",
			"status": "success"
		},
		"zIndex": 1,
		"isNode": true
	}, {
		"position": {
			"x": -711,
			"y": 40
		},
		"size": {
			"width": 137,
			"height": 66
		},
		"view": "react-shape-view",
		"shape": "activity",
		"id": "Action_1d9s59u",
		"data": {
			"nodeName": "TaskContext_4",
			"appType": "component",
			"componentName": "TaskContext",
			"nodeType": "action",
			"actionName": "appendListContext",
			"valueData": {
				"value": "jys_${event._req_uuid}",
				"ttl": "60",
				"key": "nameList1"
			},
			"advance": {
				"onError": "stop_cur_flow",
				"rspStatusType": "3",
				"rspStatusThreshold": "0"
			},
			"icon": "https://sophon-gen-cloud-zhangjiakou-v2.oss-cn-zhangjiakou.aliyuncs.com/componentUpload/1750301983722_TaskContext_logo.png?Expires=1750405284&OSSAccessKeyId=STS.NX5Y***********8W&Signature=uNBTObExLWAh7J%2FYPX9uw%2BMslV0%3D&security-token=CAIS2AJ1q6Ft5B2yfSjIr5uAEv7337V53aeSZ1z8tnkmbcdh2paTtTz2IHhMenFpAegcv%2Fw%2BlGFZ6%2F8elrp6SJtIXleCZtF94oxN9h2gb4fb4wxlQRGU0s%2FLI3OaLjKm9u2wCryLYbGwU%2FOpbE%2B%2B5U0X6LDmdDKkckW4OJmS8%2FBOZcgWWQ%2FKBlgvRq0hRG1YpdQdKGHaONu0LxfumRCwNkdzvRdmgm4NgsbWgO%2Fks0OP3AOrlrBN%2Bdiuf8T9NvMBZskvD42Hu8VtbbfE3SJq7BxHybx7lqQs%2B02c5onDWwAJu0%2FXa7uEo4wydVNjFbM9A65Dqufxn%2Fpgt%2Braj4X7xhhEIOVJSSPbSZBbSxJNvU1RXDxQVcEYWxylurjnXvF%2Bgxqt0OxsGin%2B2svzhw6RGJ1dq8DgINtD0jokjPndRVbLXs84nxS7gbsGn76oY2zradH%2FdU7tn6l7MytAXxqAAQp4DQPgtjJpGipxkBpHLuNcGBShBy0T%2FpykyCMMvjeeh8Njd2uoNr8a5YOQwSurIQBC%2Fdl7%2FLGF1seWmsvRe8rz93egKbfC4VJaqXYns7EtnxWHfeg6lVso34AuucxdMPTZ%2Bzu2Y76yPUhGWYG6RX%2BLU%2FTFWHUtiXium458vUuIIAA%3D",
			"status": "success"
		},
		"zIndex": 1,
		"isNode": true
	}]
}

setContext

Menetapkan konteks non-daftar.

Penting

Jika Anda mengeksekusi aksi pada kunci yang sama dua kali, nilai kedua akan menimpa nilai pertama.

Parameter

Parameter

Deskripsi

Contoh

key

Kunci yang akan ditetapkan.

k1

value

Nilai yang akan ditetapkan. Konstanta, ekspresi, parameter sistem, dan parameter variabel didukung. Untuk informasi lebih lanjut, lihat Parameter komponen dan alur eksekusi node.

${event._tenant_id}

ttl

Waktu kedaluwarsa pasangan kunci-nilai, dalam detik.

Catatan

Nilai default adalah 86400 detik, yaitu satu hari. Nilai maksimum tidak boleh melebihi 30 hari.

600

getContext

Menanyakan konteks non-daftar.

Parameter

Parameter

Deskripsi

Contoh

key

Kunci yang akan ditanyakan.

k1

Tanggapan sampel

{
  "value": "ba290292-19a8-4926-9eaa-9a746fc0bd32",
  "key": "k1"
}

appendListContext

Menambahkan nilai ke konteks bertipe daftar.

Penting

Jika Anda mengeksekusi aksi pada kunci yang sama dua kali, nilai baru akan ditambahkan ke daftar yang ada.

Sebagai contoh, jika Anda mengeksekusi aksi pada kunci yang sama dengan nilai v1 dan kemudian mengeksekusinya lagi dengan nilai v2, nilai dari kunci tersebut menjadi ["v1","v2"].

Parameter

Parameter

Deskripsi

Contoh

key

Kunci yang akan ditetapkan.

k1

value

Nilai yang akan ditambahkan. Konstanta, ekspresi, parameter sistem, dan parameter variabel didukung. Untuk informasi lebih lanjut, lihat Parameter komponen dan alur eksekusi node.

${event._tenant_id}

ttl

Waktu kedaluwarsa pasangan kunci-nilai, dalam detik.

Catatan

Nilai default adalah 86400 detik, yaitu satu hari. Nilai maksimum tidak boleh melebihi 30 hari.

600

getListContext

Menanyakan konteks bertipe daftar.

Parameter

Parameter

Deskripsi

Contoh

key

Kunci yang akan ditanyakan.

k1

Tanggapan sampel

 {
    "value": [
      "4d432034-03ae-4905-a2d8-00237462bc37",
      "4d432034-03ae-4905-a2d8-00237462bc37_1"
    ],
    "key": "k1"
  }