Processes
Last updated
Was this helpful?
Last updated
Was this helpful?
Processes allow you to visually build logic and manage multi-step application workflows by assigning steps to take when an event is triggered.
The process panel can be accessed from the left menu and is quite simple. We've made it so that even people with no coding experience can build senior software engineer-grade logic!
Below is an example of a 'Forgot Password' process. There are several processes already built into our apps, such as login, forgot password, and more. You can edit the processes, and create your own new processes.
Along with Functions, processes allow you to make your application 'smart.' Almost anything is possible with processes and functions. You will already see some pre-defined processes in your app. These are the ones that come standard with your chosen template and will typically include at least 'Login.'
This is the process Appeggio uses to allow users to log in to your application. You can edit these processes if you have a specific use case, but we only recommend doing this once you are an accomplished user of Appeggio.
You can also create your own processes to control how you want your user experience to be. For example, suppose you have made a shopping cart. In that case, you can use the application to confirm shipping, take payment using a 3rd party connection, and then send an email confirmation to your user. You can build almost any complex process you like. However, we recommend breaking long processes down into a series of smaller processes to create a library of processes you can reuse over time that is easier to maintain.
A node is just a visual representation of a step in your process, although there are different types of nodes to help you build your processes effectively. Understanding how each of these works is the key to building effective processes that make your app work just how you want it to!
Terminal nodes appear at the beginning and end of a process to represent the start and finish of that process. A process always has two terminal nodes: a Start and a Finish.
A Step node is used to visually break up and label individual parts of your process to make it easier to understand, like chapters in a book.
A Task node is where you define something that you want to happen in the process. This can be an action in the App, like running a function or calling an external API or connection.
A choice node is where there are two (or more) possible paths for your process to take. For example, a user tried to log in, but they entered an incorrect password, so they need to try again, or they did get it correct and should be logged in successfully.
When you add a choice node to your process, Appeggio will always add two more nodes: a Success node, the path to be taken if things went well at the choice, and a Failure node, the path to be taken if it didn't.