-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug on workflow having join activity after a FormRepliedEvent
- Loading branch information
1 parent
0cb1134
commit c8205c0
Showing
5 changed files
with
102 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
workflow-bot-app/src/test/resources/form/send-form-reply-join-activity.swadl.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
id: condition-form-reply-join | ||
activities: | ||
- send-message: | ||
id: sendForm | ||
on: | ||
message-received: | ||
content: /go | ||
content: | | ||
<messageML> | ||
<form id="sendForm"> | ||
<text-field name="ticker" placeholder="Please enter the Stock Ticker here"></text-field> | ||
<textarea name="content" placeholder="Please enter your Research Content here and then Submit form."></textarea> | ||
<button name="send-answers" type="action">Send</button> | ||
</form> | ||
</messageML> | ||
- send-message: | ||
id: response0 | ||
on: | ||
form-replied: | ||
form-id: sendForm | ||
if: ${sendForm.ticker == 'GOOG'} | ||
content: | | ||
<messageML> | ||
First reply (if): ${sendForm.content} | ||
</messageML> | ||
- send-message: | ||
id: response1 | ||
on: | ||
form-replied: | ||
form-id: sendForm | ||
else: {} | ||
content: | | ||
<messageML> | ||
First reply (else): ${sendForm.content} | ||
</messageML> | ||
- send-message: | ||
id: response2 | ||
on: | ||
one-of: | ||
- activity-completed: | ||
activity-id: response0 | ||
- activity-completed: | ||
activity-id: response1 | ||
content: | | ||
<messageML> | ||
END | ||
</messageML> |