FlowEngine is not a plugin, but a core API provided for plugins to use, connecting core capabilities with business extensions.
In NocoBase 2.0, all APIs are centralized in FlowEngine, and plugins can access FlowEngine via this.engine.
FlowEngine provides a centralized Context that brings together the APIs needed for various scenarios, for example:
Note: Context in 2.0 solves the following problems from 1.x:
- Scattered context, inconsistent calls
 - Context is lost between different React render trees
 - Can only be used within React components
 For more details, see the FlowContext chapter.
To simplify calls, FlowEngine provides some aliases on the plugin instance:
this.context → equivalent to this.engine.contextthis.router → equivalent to this.engine.context.routerIn this example:
/ path using the this.router.add method;createMockClient provides a clean mock application for easy demonstration and testing;app.getRootComponent() returns the root component, which can be directly mounted to the page.