-
Notifications
You must be signed in to change notification settings - Fork 26
Creating an example
All you need to create an example basically is a YAKINDU Statechart Tools project. There are one or two things you should consider before attempting to publish it as an YAKINDU Statechart Tools example.
- Ideally your example should explain one specific thing; the scope should be clear.
-
Good:
I created an example showing how to use Deep History States.
-
Also good:
I created an operation that adds certain features to statecharts, e.g. getting the current time.
-
You can also use stuff not directly belonging to YAKINDU Statechart Tools:
I created a statechart and want to show how to use it on a certain platform.
-
Not as good:
I created an insanely huge statechart and used all available features at once.
- Your statechart should be as limited in size as possible. An example should explain.
As you can see, these requirements are pretty loose. If you think your project fits to them, continue reading.
You need a GitHub account to do the following.
- Navigate to Yakindu/examples.
- In the upper right, there's a Fork button. Click on it.
- Now you have a copy of the examples repository in your account. You can modify it as you like.
- Clone your forked repository to your computer.
- Move your project directory to the repository directory on your machine. The directory name should match the project name. If needed, please rename the directory so it matches the examples repository's naming conventions.
Now you need to make sure that other users have a chance to understand what your example does and why they should try it. Also, YAKINDU Statechart Tools's example wizard needs a way to know that your directory contains an example.
Continue with section "Documenting an Example".