Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Condition on a form reply is not working #162

Closed
yinan-symphony opened this issue Oct 6, 2022 · 1 comment · Fixed by #155
Closed

Condition on a form reply is not working #162

yinan-symphony opened this issue Oct 6, 2022 · 1 comment · Fixed by #155
Milestone

Comments

@yinan-symphony
Copy link
Contributor

yinan-symphony commented Oct 6, 2022

Bug Report

given a workflow definition like

id: form-reply-conditional-message
activities:
  - send-message:
      id: testForm
      on:
        message-received:
          content: /test
      content: |
        <messageML>
          <p><b>Test</b></p>
          <form id="testForm">
            Hi, what can I do for you?
            <button name="create" type="action">Create</button>
            <button name="menu" type="action">Menu</button>
          </form>
        </messageML>
  - send-message:
      id: resCreate
      if: ${testForm.action=='create'}
      on:
        form-replied:
          form-id: testForm
          exclusive: true
      content:  Create
  - send-message:
      id: resMenu
      else: {}
      on:
        form-replied:
          form-id: testForm
          exclusive: true
      content: Menu
  - send-message:
      id: finish
      on:
        message-received:
          content: /continue
      content: DONE

the condition if: ${testForm.action=='create'} is not taken into account

Expected Result:

the workflow is running with the condition taken into account

Environment:

...version and build of the project, OS and runtime versions, virtualised environment (if any), etc. ...

Additional Context:

...add any other context about the problem here. If applicable, add screenshots to help explain...

@symphony-soufiane
Copy link
Contributor

Fixed and will released in WDK 1.3.0
152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants