Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Cannot create flows to multiple targets #64

Closed
sbmilburn opened this issue Apr 1, 2015 · 4 comments
Closed

Cannot create flows to multiple targets #64

sbmilburn opened this issue Apr 1, 2015 · 4 comments

Comments

@sbmilburn
Copy link

Scenario #1 - Need to be able to create a load balancer object and then 1..N webservers. Tried to have the flow go to mutliple webservers but currently it only allows you to select a single target.

Secenario #2 - Some of our web applications talk to multiple databases. One for OLTP transactions and one for pulling reports. having the ability to have the link a flow to more than one target location would be helpful.

@Glavin001 Glavin001 added this to the 0.3.0 - Future Features milestone Apr 1, 2015
@Glavin001
Copy link
Contributor

I can see your use cases being very common and high priority. Thank you for sharing.

We should be able to use jsPlumb's maxconnections setting for sources to resolve this. See https://jsplumbtoolkit.com/doc/connections.html for more details. The applicable section of SeaSponge code is at https://github.com/mozilla/seasponge/blob/master/app/scripts/stencils/base.coffee#L129-L147

I'll try and do some testing with this later today.

@Glavin001 Glavin001 self-assigned this Apr 1, 2015
@Glavin001
Copy link
Contributor

This demo appears to have multiple output connections from single element: https://jsplumbtoolkit.com/demo/sourcesAndTargets/dom.html

@Glavin001
Copy link
Contributor

I have a working demo of multiple connections from source endpoints:
image

We should look into the filter function and how certain endpoints can only connect with another subset of endpoints. The more feedback we receive and example use cases the better we can make this.
See https://github.com/sporritt/jsPlumb/blob/master/demo/sourcesAndTargets/demo.js#L63-L70 for example of filter.

@Glavin001
Copy link
Contributor

Pushed this feature. Should be available soon. Let me know if it works for you. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants