Esteban's Blog

/dev/rnd

Guvnor: Pattern/Action ordering in Guided Editor

One of the major limitations I found while using Guvnor (and I’m relative new to Guvnor) was the impossibility to change the Patterns/Action order while authoring rules. You ought to be very careful about the order of your patterns otherwise you would end up removing 3 patterns (that took you about 3 minutes to create) because you forgot one little Pattern at the beginning!

Well my friends, those times have end! A new feature available in Guvnor 5.1M2 is the possibility to change the order of  your Patterns and Actions. Each Pattern or Action now have a toolbar in the right side. This toolbar contains 3 buttons:

Patter/Action Toolbar

Patter/Action Toolbar

The first button will open the “Insert Pattern/Action” popup and add a new Pattern/Action just after the current Pattern/Action. The other two buttons (the arrows) will move up/down the current Pattern/Action.

When using the “plus” icon  next to the WHEN or THEN part, the opened popup will contain a dropdown list to select the order where the new Pattern/Action will be added:

Patter/Action position selection

Patter/Action position selection

You can see this improvement in action in the following screencast: http://www.plugtree.com/downloads/screencasts/01-Pattern_Action_Position.htm

The only limitation is that you can only change the order of “first order” Patterns/Actions. It doesn’t work for nested elements yet.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Information

This entry was posted on May 28, 2010 by in drools, java and tagged , , , .
%d bloggers like this: