Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic WorkFlow Demo Doesn't Work (Read 1824 times)
chamsoft
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Mar 9th, 2010
WorkFlow Demo Doesn't Work
Mar 9th, 2010 at 8:00am
Print Post  
I just downloaded the workflow designer demo from your website and while it ran OK, it didn't allow me to do anything with the sample diagram (other than move things around). Is this demo supposed to allow you to add new objects to the diagram? I was hoping the code from this demo might be a useful starting point for a project I need to build, but from what I can see it looks too basic.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: WorkFlow Demo Doesn't Work
Reply #1 - Mar 9th, 2010 at 9:16am
Print Post  
Sorry, I don't have any idea what's that workflow demo 8)

You could use the "Flowcharter" sample project that comes with the trial version as a starting point:
https://www.mindfusion.eu/FCNetDemo.zip

It lets you add new objects by drag-and-drop from a toolbox, and has a property grid that lets you change some attributes of the selected items. There's also a second toolbox that lets you change the shape of link arrowheads.

If you need to let the user draw boxes on the canvas instead of using drag-and-drop, set the DiagramView.Behavior property to LinkShapes.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
chamsoft
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Mar 9th, 2010
Re: WorkFlow Demo Doesn't Work
Reply #2 - Mar 9th, 2010 at 9:57pm
Print Post  
The workflow demo is available on this page:

http://mindfusion.eu/demos/flowchartnet/start.htm

It's right at the bottom of the page.

I already had a look at the other demo and was able to get that to work, but the workflow demo is a lot closer to my requirement.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: WorkFlow Demo Doesn't Work
Reply #3 - Mar 10th, 2010 at 8:36am
Print Post  
That sample lets you add new objects too, but only through drag-and-drop over a link. The idea of that sample is to show how you can let users build a workflow in a more controlled manner, so it does not let you draw new nodes at random locations nor connect nodes arbitrarily.

You can certainly enable drawing new nodes and links; just comment out the view.Behavior = Behavior.Modify; line in the NewWorkflow() method. You could also modify the drag/drop event handlers to allow creating nodes via drag-and-drop at any location and not only over existing links.

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