It's great to see someone working on this, I think this is missing for quite a time. Thanks for that!

And here is a feature request: provide a workflow-ng action to send out a message through the API

Comments

amitaibu’s picture

subscribe

mercmobily’s picture

Title: workflow-ng action » Rules integration: adding an action

Hi,

I changed the title, since "Workflow-ng" is now called "Rules".

Any news on this one?

Merc.

fago’s picture

for 5.x it's workflow-ng, for 6.x it's rules.

jose reyero’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev

New features only for 6.x branch

dan_aka_jack’s picture

subscribing

fago’s picture

Issue tags: +rules integration
jose reyero’s picture

Hey fago, I got started with some modules here, not really working yet but it's some start:

http://code.developmentseed.org/messaging_processor/dashboard

(This handles only incoming messages so far)

ycimlynn’s picture

subscribe

k3vin’s picture

+1

Encarte’s picture

subscribing

gausarts’s picture

subscribing. Thanks

peterpoe’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new1.84 KB

There you go!
This adds hooks with rules that provide two new Messaging actions:
- Send a message to a user
- Send a message to an arbitrary recipient
For every action, you can choose the sending method (mail, sms, etc).

Needs a lot of testing, so far I have tried only with mail, mimemail and "simple" methods.
So drop the messaging.rules.inc file in you messaging module folder and test test test!

boobaa’s picture

Subscribing.

jose reyero’s picture

Version: 6.x-2.x-dev » 6.x-4.x-dev
Status: Needs review » Needs work

This would be welcomed as a patch for 4.x

rickvug’s picture

Sub.

corbacho’s picture

subscribing.

Anonymous’s picture

removed

sashainparis’s picture

@Jose: why this code would not be working fine as is for 6.4 messaging version.
Could you give me some directions on this? I am interested in making this work.

Alexandre

jacoblane’s picture

@ #7 Jose, is there a plan to officially release messaging_processor?

gomanual’s picture

The include provided in #12 is almost what I'm looking for. Rules provides three mail functions:

  1. Send a user mail
  2. Send all users of a role mail
  3. Send an arbitrary user mail

1 and 3 are provided, but (of course) I need number 2 :D I'll take a look at the code and see if I can figure it out, but I don't have much experience with coding with Drupal yet, so I don't have much faith that I won't just break it outright.

roderik’s picture

Status: Needs work » Needs review
StatusFileSize
new1.48 KB

The patch in #12 pretty much works for 6.x-4.x-dev too.
The only possible thing: setting the sender isn't possible anymore using $message['sender_account']. (I don't know if that was supposed to be working in 2.x; there was a bug in the code anyhow...)

Here's one with a few small fixes. I tested stuff, and believe it's good to go...

scarvajal’s picture

Subscribing

roborn’s picture

StatusFileSize
new10.25 KB

I confirm that the patch in #21 is working with 6.x-4.x-dev.
Only feature missing is sending message to all users of a role.
Here's a patch that uses the logic on system.rules.inc for that feature.

nicholas.alipaz’s picture

Issue summary: View changes

Although this is a really old thread, this does not seem to have ever been integrated. I would like to also point out that this does not seem to allow setting the messaging template for the messages sent by rules.