Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic FlowLayout GroupStartNodes and GroupEndNodes (Read 1603 times)
tom_w
Junior Member
**
Offline


Swimlanes made our dreams
come true :-)

Posts: 79
Joined: Oct 20th, 2008
FlowLayout GroupStartNodes and GroupEndNodes
Nov 5th, 2008 at 5:36pm
Print Post  
Hi

Big thanks for all your help so far Stoyo, we presented the first working alpha version of the system to the client on Friday and they were delighted.

I'm back working on the code now and top of the list is to get the FlowLayout behaving a bit more consistently.

I have been experiencing all sorts of weird behaviour with MainConnectorId links reversing direction and with nodes being drawn on top of one and other, but I figure this must be something to do with how I am using the control.

Today I experimented with making the GroupStartNode and GroupEndNode in each process a standalone node with only a single link with a LogicID set to the MainConnectorId entering or exiting the node. (Previously I had many connectors entering/leaving GroupStartNodes and GroupEndNodes.)

This suddenly seems to make the diagram lay out consistently and nodes linked across lanes all behave well (as long as the nodes they are connecting are not GroupStarts or GroupEnds).

Sooo.... my question is: is this how I should be using the flowlayout to get the best behaviour? I.e. effectively putting a dummy node at either end of the controlflow (i.e. links with logic ID set to MainConnectorID) and then perform all the interlinking between nodes on nodes that aren't marked as GroupStart/GroupEnd in their logic?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FlowLayout GroupStartNodes and GroupEndNodes
Reply #1 - Nov 6th, 2008 at 9:43am
Print Post  
Hi,

I think you shouldn't use MainConnectors to connect the groups, or at least have at most one main connector entering and leaving a group. So, choose another id, say "group_connector", and use it for the links between groups. If that doesn't help, please save the flowchart to a file and email it to support@mindfusion.eu.

Stoyan
  
Back to top
 
IP Logged
 
tom_w
Junior Member
**
Offline


Swimlanes made our dreams
come true :-)

Posts: 79
Joined: Oct 20th, 2008
Re: FlowLayout GroupStartNodes and GroupEndNodes
Reply #2 - Nov 6th, 2008 at 1:55pm
Print Post  
Hi

Sorry, probably not making myself clear; I agree totally with what you are saying and have found the same thing, I have already implemented some code that prevent users from
- creating mainconnectors that cross lanes
- and that prevents GroupStart nodes from accepting incoming main connector links

That helped a lot in making the diagram behave consistently.

My point above really was that it seems best to isolate the group start nodes and have as little as possible connecting to them - maybe just an outgoing mainconnector for that set of nodes and possibly an incoming non mainconnector from another lane - as once I connect lots of message lines (i.e. non mainconnectors) to the group start nodes the arrangement of the diagram can go a bit odd.

My question really was is the flowlayout currently designed to expect a standalone groupstart node and then for interconnections between nodes in different lanes to be done in the subsequent (i.e. non group start) nodes?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FlowLayout GroupStartNodes and GroupEndNodes
Reply #3 - Nov 7th, 2008 at 11:31am
Print Post  
Hi,

It should not matter that much, however links that go out directly from a start node have higher priority when determining the position of the groups below, while links from internal nodes might not move other groups but simply take a longer route. And when there are more than one groups that should be placed under this group because they are linked to its start/end node, at this time their order is chosen randomly if there aren't other factors to determine it.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint