In this program, you will build a MORYX application from scratch. You will go through the typical process of an application developer and learn about MORYX concepts and terminology on the way.
You will accompany a pencil manufacturer on its road to the digital factory. They already use specialized machines, but none of their production steps are automated yet.
This tour addresses application developers that have a basic understanding of software development/programming. While ideally you are a .NET/C# developer, used to work with Visual Studio and experienced in Object Oriented Programming, all of that is not mandatory to master this.
Below is a list of patterns and basic concepts that MORYX is built upon, but you don't need to know them all upfront. When a chapter relies on one of them, it points it out in context.
Install everything in this list.
- Git
- .NET 10 SDK
- A C# editor: Visual Studio 2026 is convenient, but not required. VS Code, Rider or any editor + terminal works. Without a full IDE, C# extensions for IntelliSense / Quick Actions are strongly recommended (e.g. VS Code: C# Dev Kit).
After installing .NET, trust the HTTPS development certificate (Visual Studio often prompts for this, the terminal doesn't):
dotnet dev-certs https --trustQuick check:
dotnet --list-sdks
dotnet --list-runtimesYou should see 8.x and 10.x SDKs (each SDK already includes the matching runtimes).
Chapters often mention Visual Studio (F5, Quick Actions). The same steps work elsewhere: edit the files, then build/run with dotnet (see Chapter 1: Setup).
You do not need any prior MORYX experience. Install the tools under Requirements, then work through the chapters from 1 to 12 in order on the same application. Start with Chapter 1. The chapter list is your roadmap: each entry continues the pencil-factory story.
In every chapter:
- Read the learning goals, then work one section at a time.
- Treat code blocks as additions or changes to the file you already have, unless the chapter says to replace the whole file.
- Stop at each Check your progress and only continue when it matches what you see.
- Try Practice yourself before opening hints or reference answers. Use Check your reasoning after your own attempt.
Early chapters show full examples. Later chapters reuse those patterns and leave more decisions to you.
This tour is meant to be completed on its own. The MORYX Framework docs are optional background for API detail later.
If you are stuck: use the Troubleshooting section at the end of the chapter first. For a short definition, open the Glossary. For issues that appear in more than one chapter, open Troubleshooting.
In this chapter you will create a MORYX application from scratch and digitalize a manual assembling station.
You will learn to:
- Model digital twins from existing 'things' within a factory and products
- Show instructions to workers
- Lay out a production workflow
- Run your first production process
Concepts: Resources, Cells, ProductTypes, ProductInstances, VisualInstructions, Activities, Tasks, Workplans, Orders
Since so many pencils were sold, the manufacturer decided that only manual cells aren't feasible anymore. So some manual cells are replaced by fully automated ones.
You will learn to:
- Encapsulate hardware communication in a Driver
- Use
IInOutDriverwith simulation
Concepts: Drivers, Protocols, Simulation
The manufacturer decided to have a separate Colorizing Cell for each color in order not to have to change the paint anymore.
You will learn to:
- Express what a cell can do with Capabilities
- Bind product data into activity parameters
Concepts: Capabilities, ParameterBinding
Quality complaints are rising, so the manufacturer adds Testing as a third station after Assembling and Colorizing. Like Colorizing, it should run automatically through a driver and simulation.
You will learn to:
- Add a new production step with the same driver pattern as Colorizing
- Wire a simulated Testing driver and extend the workplan
Concepts: Drivers, Simulation, automatic cells
Running a Colorizing Cell for each color became expensive. The manufacturer switches back to a single cell and wants it prepared before production whenever the paint does not match the order.
You will learn to:
- Trigger a ColorChange before production when capabilities do not match
- Use SetupTriggers and setup activities on the ColorizingCell
Concepts: Setup, SetupTrigger, ActivityClassification.Setup
After a brown order finishes, the cell should not stay brown forever. The manufacturer wants the line reset to a default color so the next order starts from a known state.
You will learn to:
- Run cleanup after the production job with an AfterProduction trigger
- Reuse the ColorChange activity for setup and cleanup
Concepts: Cleanup, SetupExecution.AfterProduction
Pencils alone are not enough for the shop floor. The manufacturer now sells retail packs: twenty pencils of one type plus a matching carton.
You will learn to:
- Model cartons and retail packs as product types
- Describe the bill of materials with PartLinks and Quantity
Concepts: ProductPartLink, Quantity, product types and instances
With the retail pack defined, workers need a packing station. The instruction should tell them how many pencils go into which carton, based on the pack's bill of materials (BOM).
You will learn to:
- Build a Packing cell with worker instructions from PartLinks
- Create a dedicated workplan and recipe for PencilPack orders
Concepts: Packing activity, separate workplan and recipe per product
Clicking everything together in the UI worked for learning, but every new machine or training lab starts empty. The manufacturer wants the factory and master data created from code and a Factory Monitor to see the line.
You will learn to:
- Seed resources with a ResourceInitializer
- Import products, workplans and recipes with a ProductImporter
- Show the line in the Factory Monitor
Concepts: ResourceInitializer, ProductImporter, Factory Monitor
Orders no longer come only from the Orders UI. An ERP system knows article PEN-GREEN, while the factory knows material number 100001. The manufacturer needs a bridge between those two worlds.
You will learn to:
- Build a server module with a facade for order rules
- Map ERP articles to material numbers with an adapter
Concepts: Server module, Facade, Adapter
One testing station is no longer enough. The manufacturer adds a second automatic tester and a slower manual backup for brown pencils and wants load distributed intelligently.
You will learn to:
- Filter cells with Capabilities and Constraints
- Balance and optimize cell selection under load
Concepts: CellSelector, LoadBalancer, Constraints
The digital factory is running. Now the manufacturer asks for polish that shows up in almost every project: clearer order assignment, localized texts, operator notifications, richer activity results and visible cell states.
You will learn to:
- Plug in product and recipe assignments
- Localize texts and raise notifications
- Extend activity results and drive a cell state machine
Concepts: Assignments, Localization, Notifications, States
If something breaks, stay in the chapter first. The progress checks and the Troubleshooting section at the end usually catch the common cases.
If the same problem shows up again later, use Troubleshooting. For a short definition, use the Glossary. If you just need the next task, open the next chapter in the list above.
You can ask and find MORYX-related questions on Stack Overflow using the tag moryx. You can also open an issue on the Application Developer Training or MORYX Framework repository.