خطوات سير العمل

:

type: "memory"

يقرأ أو يكتب أو يحذف إحدى ملاحظات الحساب الطويلة الأجل - حتى تستطيع السلسلة تذكر شيء ما بين الجري.

free3 actionsread by default
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

actionstringread

read · write · delete.

namestring

Required for write and delete.

contentstring

برنامج write.

descriptionstring

سطر واحد، مبين في المؤشر.

// Remember where the last run got to
{ id: "mark", type: "memory", config: {
    action: "write", name: "last-digest",
    description: "The date of the last digest sent",
    content: "{{input.week}}" } }

// Read it at the start of the next run
{ id: "since", type: "memory", config: { action: "read", name: "last-digest" } }
# Remember where the last run got to
{"id": "mark", "type": "memory", "config": {
    "action": "write", "name": "last-digest",
    "description": "The date of the last digest sent",
    "content": "{{input.week}}"}}

# Read it at the start of the next run
{"id": "since", "type": "memory", "config": {"action": "read", "name": "last-digest"}}

المخرجات

العملالناتج
read مع اسممذكرة من الأمين
read بدون واحدmemories - - - - - - - - - - - - - - - - - - - - - - - - - - - -
writeوالمذكرة وما إذا كانت قد أنشئت
deleteالاسم، وما إذا كان قد حذف

هكذا تحافظ سلسلة على الولاية

"يبدأ تشغيله بلا شيء"

كل واحد منها مستقل، سلسلة مبرمجة لا يجب أن تكرر نفسها - أي هضم منذ آخر هضم - تكتب ملاحظة في النهاية وتقرأها في البداية، ولا توجد دولة أخرى بين الركضين.

الملاحظات هي حسابات الحساب

نفس واحد واحد واحد واحد واحد واحد واحد واحد من العوامل يقرأ ويكتب ويكتب، و نفس الواحد api.memory ويغير سير العمل الذي يكتب واحدا ما يعرفه كل وكيل من وكلاء ذلك الحساب - وهو أمر مفيد يستحق أن يجري التداول بشأنه.