I have implemented Modeler with EventBus shape.added action which sends API requests. Now I was wondering is it possible to see where “shape.added” action was called from? My goal for this is to separate calls made from “redo” -keyboard shortcut and drag-and-drop action from palette.
Do I understand it correctly that you want to react to cases when a shape is added by the user but not as an effect of redo action? If so, the CommandInterceptor class should be your friend. Instead of having an EventBus listener, you could use that class to react to a command being executed. Have a look at how it can be implemented in this thread.
If you have any follow-up questions, please share a running / prototypical example that clearly shows what you’re trying to achieve, what is working and what is not.
Use our existing starter projects to quickly hack it or share your existing, partial solution on GitHub or via a CodeSandbox. Provide the necessary pointers that allow us to quickly understand where you got stuck.
This way we may be able to help you in a constructive manner.