I am not sure if these ADF Javascript APIs are the same as that Activiti uses for its Angular 1.6 dashboard.
There is perhaps a wrapper application that wraps both Alfresco REST API and Activiti REST API that gives this Alfresco Javascript APIs.
If that is true, perhaps having spring-boot application to run the Activiti engine and Rest service and then running the wrapper application can serve a BPM UI made with the ADF angular 4 components.
Please clarify what minimum components need to be installed to get angular 4 going. Do I need to download entire Alfresco community edition application?