cancel
Showing results for 
Search instead for 
Did you mean: 

Content rule conditions

djau
Champ in-the-making
Champ in-the-making
Hi,

We're in the process of testing Alfresco and we'd like to use the Share to communicate with our customers. Nothing special here.

What we'd like now is to get mailed if one of the customer users puts something in his site, and mail the customer if one of us puts something in his site.

We tried to set a rule "with specific text value in property" and check "cm:modifier" for the username of our customer, but it doesn't work.
Moreover, as we'll have many users for one customer, we'll put them into a group to simplify permissions settings.

So my question is: is there a way to mail specific email addresses when a site is modified (content added, modified, removed) based on the modifier's group ?

Thanks in advance.
3 REPLIES 3

tgmweb
Champ in-the-making
Champ in-the-making
I'd like to know this also. I suspect you have to create specific rules for each email address. You can check the site though in a new webscript (or maybe by copying the email webscript):
var site;
var dPath = document.displayPath;
var dPathA = dPath.split("/");
if (len(dPathA) > 2) {
   var s = dPathA[3]; // ie company home / sites / sitename
   site = siteService.getSite(s);
  // now run the email…maybe get the site administrators and then run an email command?
}

djau
Champ in-the-making
Champ in-the-making
Hi.

Thanks for your answer, but unfortunately, it doesn't solve my problem. I wasn't clear enough, sorry.

So my problem is that I want to send a notification based on the modifier's group.
Each of my customer has a group and multiple users in this group. When one of those users adds something into the customer site, I need to receive a notification. When I (or another administrator) adds something to the customer site, I need to send a notification to that customer.
It's not a problem to add one rule for the customer email and one rule for my email.

I tried to use the condition "text value of an aspect" and use "cm:modifier" as aspect, but it didn't work. I can't find a place to look for this kind of doc.

Any help is welcome Smiley Happy

norgan
Champ in-the-making
Champ in-the-making
Hmm … I would suggest setting up one site for each customer and a central "syndication" site, which can distribute content per rule, workflow or other.

Each customer has access to "his" site. Then you have one email per customer. That can then fire the "Send mail to recipient" Content rule. Does that help already ?

You can even define one rule per emailaddresss or extend the system with a java/javascript class, delivering the emal address based on certain runtime parameters.

Norgan