mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
.NET Workflows - Introduce support for Local variable scope (#944)
* Prepare for update * Checkpoint * Comments * All fixed * Mixed casre test added * Rollback nuget * Remove redundant restorable * Namespace
This commit is contained in:
@@ -14,14 +14,14 @@ trigger:
|
||||
# Capture original input
|
||||
- kind: SetVariable
|
||||
id: set_project
|
||||
variable: Topic.OriginalInput
|
||||
variable: Local.OriginalInput
|
||||
value: =System.LastMessage.Text
|
||||
|
||||
# Request input from user
|
||||
- kind: Question
|
||||
id: question_confirm
|
||||
alwaysPrompt: false
|
||||
property: Topic.ConfirmedInput
|
||||
property: Local.ConfirmedInput
|
||||
prompt:
|
||||
kind: Message
|
||||
text:
|
||||
@@ -35,14 +35,14 @@ trigger:
|
||||
conditions:
|
||||
|
||||
# Didn't match
|
||||
- condition: =Topic.OriginalInput <> Topic.ConfirmedInput
|
||||
- condition: =Local.OriginalInput <> Local.ConfirmedInput
|
||||
id: check_confirm
|
||||
actions:
|
||||
|
||||
- kind: SendActivity
|
||||
id: sendActivity_mismatch
|
||||
activity: |-
|
||||
"{Topic.ConfirmedInput}" does not match the original input of "{Topic.OriginalInput}". Please try again.
|
||||
"{Local.ConfirmedInput}" does not match the original input of "{Local.OriginalInput}". Please try again.
|
||||
|
||||
- kind: GotoAction
|
||||
id: goto_again
|
||||
@@ -54,10 +54,10 @@ trigger:
|
||||
id: sendActivity_confirmed
|
||||
activity: |-
|
||||
You entered:
|
||||
{Topic.OriginalInput}
|
||||
{Local.OriginalInput}
|
||||
|
||||
Confirmed input:
|
||||
{Topic.ConfirmedInput}
|
||||
{Local.ConfirmedInput}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user