As I develop my productivity app, I will have some sophisticated logic to determine the due date for a planned Action. This logic is something that must be available and work the same way on many pages within the system.
I have just begun developing the logic using workflow actions to set a series of custom states and reference the database to determine the best due date for an Action. It’s working great for the first page where it’s been implemented.
Attempting to copy this series of workflow actions to another workflow on another page has been a real pain. I tried creating a custom workflow and copying that to another page but references to the container for the custom states was lost on the new page so I practically had to rebuild the custom workflow on the new page.
I’m really lost for how to make this happen in Bubble. In languages I’ve known best from years ago, I would have this done in a global function that could be used anywhere in the app.
How can I encapsulate Bubble logic as in a function for use throughout the app? What I’ve been able to find regarding custom workflows hasn’t given me the understanding I need to make this work. I surely don’t want to start coding in JavaScript or any other language since the intent of using Bubble was to develop without writing code.
Any and all help is appreciated.
Laurence