Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Comparision between Workflows (Read 1346 times)
Bhavan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: May 29th, 2007
Comparision between Workflows
May 29th, 2007 at 4:30am
Print Post  
Hai I am Working on Workflows now i need to show the comparisions between the two workflows (ie if i created a workflow and saved that one, again i reopen the workflow and done some modifications for the workflow and saved the workflow now i want to compare these two workflows)

is it possible in workflow and how to do it

Thank in advance
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Comparision between Workflows
Reply #1 - May 29th, 2007 at 5:28am
Print Post  
Hi,

If you need to show the differences between two revisions of the same document, you could implement a change log and show the differences as a list of log entries recorded between some dates.

An easy way to implement that is to enable the FlowChart.UndoManager and handle the ActionRecorded event. In the event handler, create a log entry based on the command being recorded. Add a time-stamp to each record so you can compare the document revision dates with the log records times.

You can make the collection of log entries serializable and store it in the FlowChart.Tag.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Comparision between Workflows
Reply #2 - May 29th, 2007 at 5:32am
Print Post  
Another possibility is to assign unique IDs to each item.Tag. Then you can compare the document revisions by checking whether items with some ID exists in both versions, so you know if an item has been added or removed. If items with some ID exists in both documents, you can further compare their property values, e.g. Text, BoundingRect, etc.

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