This chapter requires good understanding of project parameters explained in the previous chapter of this tutorial.
In EasyMorph one project can call (run) another project, which is similar to using subroutines in programming languages. It might be convenient in a number of cases:
Use the Call action to call another project (subproject). With this action you can assign parameters of the subproject (if needed). Parameters of the subproject can be assigned either as constants, or using parameters of the calling (parent) project. Note that parameters must already be created in the called project prior to their assignment in the Call action (see the previous chapter how to do it).
The Call action can run in one of the two modes:
It is possible not just return datasets from subprojects, but also pass datasets from parent projects into subprojects with the help of the "Input" action. This action should be inserted in the called subproject as a starting point of calculations. When inserted the action returns nothing. But when the subproject is executed, the Input action obtains the input dataset of the Call action of the calling (parent) project.
With the help of the "Input" action it is possible to arrange two more ways of calling subprojects:
To simplify development and debugging, it is possible to copy a dataset from one project and paste it into an Input action (similarly to Sandboxes).
The ability to encapsulate a calculation logic into a subproject that can be used in many other projects enables creating reusable projects (which are effectively custom actions). Such reusable projects can be convenient in various scenarios. For instance:
Reusable projects tend to grow into libraries of reusable projects commonly used inside an organization.