-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make app and epic syntax more palatable
You can now you various aliases for "input", "output" and "group". These are recognized in both the Application definition and in their use in epic case steps Signed-off-by: reidspencer <reid.spencer@yoppworks.com>
- Loading branch information
1 parent
c8d0eaa
commit 7047b74
Showing
5 changed files
with
70 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
domain example is { | ||
context TenantControl { | ||
command CreateTenant { name: String } | ||
event TenantCreated { name: String, result: String } | ||
} | ||
record Create { name: String } | ||
user Admin is "fickle" | ||
application App is { | ||
page NewTenantPage { | ||
input NameEntry acquires record example.Create | ||
button Create acquires record example.Create | ||
} | ||
} | ||
epic check_for_wrong_types_to_and_from_vitals { | ||
case UserCreatesANewCompany { | ||
user Admin wants to "create a new tenant" so that "the tenant can do stuff" | ||
step from user Admin "presses" button App.NewTenantPage.Create, | ||
step from button App.NewTenantPage.Create "sends" to context TenantControl | ||
} | ||
} | ||
} |
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