i created a CUBA app-component that you can use. It is in preview mode currently. Before releasing it “officially” i would like to get your feedback on it. It is open source (Apache 2 license) and you can find it on github:
If you have any thoughts on that, like bug, feature requests etc. i would love to hear from you.
I’ll just copy over the README.md so you get an impression on what it does:
CUBA Platform Component - Instant Launcher
This application component let’s you define launcher commands at runtime that can be directly executed via a search box.
Instant launcher uses rich-search under the hood. It adds a specific search result type to the search results of
Launcher Commands. Those Launcher Commands are configurations or scripts, that can be defined at runtime of the application.
Using the application component
instant-launcher application component lets you define
Launcher Commands at runtime that can be executed via a search box.
The following types of instant launchers are supported:
- Screen Launchers
- Script Launchers
- Bean Launchers
Launcher Command can execute any kind of business logic via a groovy script. For certain specific use cases, there are pre-defined Launchers like the Screen Launcher. Here are some example use cases:
- opening the screen to create a new user
- shortcut for running a specific report and starts the download of the file
To see this application component in action, check out this example: cuba-example-using-instant-launcher.
Launcher Commands definition
Script launcher definition