4 messages in com.mysql.lists.eventum-develRe: Workflow Enhancement
FromSent OnAttachments
Scott Maier10 May 2006 12:39 
Barry Benowitz10 May 2006 14:04 
Bryan Alsdorf11 May 2006 23:49 
Scott Maier12 May 2006 11:58 
Subject:Re: Workflow Enhancement
From:Bryan Alsdorf (bry@mysql.com)
Date:05/11/2006 11:49:26 PM
List:com.mysql.lists.eventum-devel

Barry, Scott,

Barry Benowitz wrote:

Hi Scott,

My two cents is that this sounds like a good idea, but maybe we need some more discussion before you go ahead and make the change. For example, I would think that we need pre *and* post hooks available, so I would not simply move the existing workflow calls to the "top", but rather add some new ones.

I agree with Barry here. Most workflow methods actually count on data being passed to them AFTER a certain event happened. If you need to check or cancel at the beginning of a method, say if you want to cancel the update of the issue, add a method, preIssueUpdated and if it returns false cancel the update. You should probably pass the variables by reference, so the workflow method can modify the values as needed. Then send me your changes so I can include them in the next release.

Best Regards,

Are you MySQL certified? www.mysql.com/certification