Connectors between Drag and Drop elements

Hello. I’m just wondering if anyone has any thoughts on how to create dynamic connectors between free-form draggable groups. I would like to create floating groups on a canvas with the ability to build connectors between the groups that would trigger a workflow when connected. Basically a flow chart with dynamic properties triggered by the action of connecting the groups. Thank you,