Using Rules

56 views
Skip to first unread message

Dibango

unread,
Mar 30, 2011, 11:54:06 AM3/30/11
to Vercue
Hi,
I'm a new comer to vercue (Version: 2.0.0.238)
Do you have any manual that explains how to add rules to the product?

Adrian Aisemberg

unread,
Mar 30, 2011, 12:14:14 PM3/30/11
to ver...@googlegroups.com
Hi,

Do you mean custom extensions rules, or user-defined rules?
I mean, do yo want to learn how to create your own rules using .NET programming, or do you want to know how to use them on the application?
If you mean the extensions - then I'm working on a blog that explains that.
If you mean the other - please let me know. I'll send you a detailed email later.
In-addition, I'll post a blog for that also :)

Sorry for the lack of the documentation. It's still in-progress.


In-short:
If you want to run some action when someone commits something to a Source, you define the condition (Source = 'my source') and the set of actions, for example - show a notification popup.
You can set conditions for authors, Sources, file names, etc.


Regards,
Adrian


Adrian Aisemberg
www.vercue.com

Dibango

unread,
Mar 30, 2011, 4:39:20 PM3/30/11
to Vercue
1. My intention is to add rule like: If files that belong to specific
folder in SVN have changed send an e-mail notification.
2. Can you elaborate on the example; especially on the condition part?
Is there a manual to these type of actions?
Regards,
Dibango

On Mar 30, 7:14 pm, Adrian Aisemberg <adrianaisemb...@gmail.com>
wrote:
> Hi,
>
> Do you mean custom extensions rules, or user-defined rules?
> I mean, do yo want to learn how to create your own rules using .NET
> programming, or do you want to know how to use them on the application?
> If you mean the extensions - then I'm working on a blog that explains that.
> *If you mean the other - please let me know. I'll send you a detailed email
> later.*
> In-addition, I'll post a blog for that also :)
>
> Sorry for the lack of the documentation. It's still in-progress.
>
> In-short:
> If you want to run some action when someone commits something to a Source,
> you define the condition (Source = 'my source') and the set of actions, for
> example - show a notification popup.
> You can set conditions for authors, Sources, file names, etc.
>
> Regards,
> Adrian
>
> <http://www.svnmonitor.com>
> Adrian Aisembergwww.vercue.com

Adrian Aisemberg

unread,
Mar 30, 2011, 4:54:31 PM3/30/11
to ver...@googlegroups.com
Hi,

I am working on a series of blog posts that will explain the Rules module in details.

Regarding your question:
If the Rule should apply all items under a certain working-copy - you can provide a simple condition, such: SourceName = 'thename'.
Notice that, in the condition textbox - you can right click and see a list of available fields.

If the files you wish to monitor are under a certain folder under a certain Source (which means - not all files under a Working-Copy should trigger the Rule), then you can use a condition like:
ItemFilePath like '%path1/path2/%' which actually means: "files that have path1/path2/ part of their full path".
For example, if your working-copy is "c:\project", and you want the Rule to be triggered for all files under: "c:\project\web\", then your condition should be: ItemFilePath like '%c:\project\web\%'

That was the condition part, now comes the Action part.
Notice that, if you have the Evaluation or the Professional version, you can right-click a Source and select "Monitor -> Email Notification". It will create the condition for you and add an Email action. You will have to fill all the SMTP information.

In the Rule dialog, add an Action of type SMTP Email or GMail.
Fill in the details and save it.
Try committing something and see how the Action is triggered.

I hope it helps, you are welcome to keep asking for any additional help you require.
I'm sorry for the lack of documentation. I am still working on it.

Regards,
Adrian

Adrian Aisemberg
www.vercue.com

Reply all
Reply to author
Forward
0 new messages