Program Notification trigger by program rule (Event Program)

Dear dev,

I’m trying to setup a program rule to send notification message (email) to a user group which trigger by program rule but it doesn’t work.

It’s working properly if I want to send with trigger by Program completion.

Below is steps that I did:

Create a program rule with expression:

Program rule action:

Program notification:

Scheduler:

Is it a bug or missing something?

Thanks,

···

Em Le Hong
DHIS2 Implementation| **HISP Vietnam **

em.hispvietnam@gmail.com | Skype: em.hispvietnam@gmail.com

Hi, can you share the program rule expressions used to execute against.

It is not very visible.

Regards

···

Stephen Ocaya

Tel: +256 393 217 892 | Mob: +256774558980

www.stephocay.com

SkypeID: stephocay

Hi Le
You dont need scheduler to send message using program rule. Secondly check your log output and search for name of the rule. Name will be associated with rule evaluation result. I suspect your rule is being evaluated as false. Send me the complate expression.

Zubair

···

Den tir. 2. okt. 2018, 8:37 a.m. skrev Ocaya Stephen stephocay@gmail.com:

Hi, can you share the program rule expressions used to execute against.

It is not very visible.

Regards

On Tue, Oct 2, 2018 at 7:55 AM Em Le Hong em.hispvietnam@gmail.com wrote:

Dear dev,

I’m trying to setup a program rule to send notification message (email) to a user group which trigger by program rule but it doesn’t work.

It’s working properly if I want to send with trigger by Program completion.

Below is steps that I did:

Create a program rule with expression:

image.png

Program rule action:

image.png

Program notification:

image.png

Scheduler:

image.png

Is it a bug or missing something?

Thanks,


Em Le Hong
DHIS2 Implementation| **HISP Vietnam **

em.hispvietnam@gmail.com | Skype: em.hispvietnam@gmail.com


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Stephen Ocaya

Tel: +256 393 217 892 | Mob: +256774558980

www.stephocay.com

SkypeID: stephocay


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi Ocaya and Zubair,

Below is the expression with screenshot:

#{NCLE - Diseases} == ‘1’

I want to send notification if disease == ‘1’, 1 is the disease code in option set.

The rule is based on option code or name, I’m using option code.

Server log:

We are using DHIS2 2.29 revision: 1829722 build date 2018-09-25 03:22

···

Em Le Hong
DHIS2 Implementation| **HISP Vietnam **

em.hispvietnam@gmail.com | Skype: em.hispvietnam@gmail.com

2 Likes

Hi @em.hispvietnam ,

Did you manage to make it work?

Regards

1 Like

Hi @em.hispvietnam,

Did you get a solution to this please? @duserik - are you trying to do the same?

Cc: @zubair, @stephocay.

Best,
James.

Hi @jomutsani,

I was trying to do the same with no success, but I had to adapt what I wanted to “Tracker program” instead.

Best,
Eric D.

1 Like