Question about generating an email on DevPortal when an event occurs

Not applicable

Could someone answer to the following question from our customer?

According to the Apigee docs:

http://apigee.com/docs/developer-services/content/configuring-email

- Generating an email when an event occurs

the customer reported that the sample rule with the event 'Upon creation of a developer app just works fine and DevPortal sends email right after a developer app is created.

But in the case of 'app_status' with configured as;

"ON" : { 
"devconnect_developer_app_status_pending_approved" : [], 
"devconnect_developer_app_status_approved_revoked" : [], 
"devconnect_developer_app_status_pending_revoked" : [], 
"devconnect_developer_app_status_revoked_approved" : [] 
},

The email is sent out at the timing of cron job runs schedule by;

cron : Coniguration > System > Cron > 'Run cron every'

Can we configure this also as to receive the email right after the app_status is updated like 'creation of a developer app'?

Solved Solved
3 7 330
1 ACCEPTED SOLUTION

Dear @Toshihiro Shibamoto ,

There is a reason behind this. Developer portal doesn't give any option to approve / revoke apps by default. Administrator has to use Management UI to approve / revoke apps.

Changes will be reflected in developer portal only after cron run. That's the reason email is sent out at the timing of cron jobs.

As of now, If you need immediate email then it has to be implemented as a custom feature in Developer Portal.

Cheers,

Anil Sagar

View solution in original post

7 REPLIES 7

Dear @Toshihiro Shibamoto ,

There is a reason behind this. Developer portal doesn't give any option to approve / revoke apps by default. Administrator has to use Management UI to approve / revoke apps.

Changes will be reflected in developer portal only after cron run. That's the reason email is sent out at the timing of cron jobs.

As of now, If you need immediate email then it has to be implemented as a custom feature in Developer Portal.

Cheers,

Anil Sagar

Thank you so much @Anil Sagar for the reply.

I understood your points and then could you give some more hints on how to implement it as custom feature - is it by Drupal add-on module? And is it the only way to call Management API from DevPortal to get the status like cron job or is there any way to get events from Management Server side for immediate email on the status change?

Hi @Toshihiro Shibamoto ,

Yes, It should be a custom module. Using custom module we will implement admin screens where admin can approve/revoke apps. On action (approve/revoke) we will call management api and also send an immediate email.

Cheers,

Anil Sagar

Thank you @Anil Sagar for the reply. The customer wants to send email immediately without waiting for cron job to run next cycle. So there is no such mechanism like event triggered by management server to DevPortal? Is it correct?

Yes, Out of the box it's not available. Yes, there is no such mechanism like event triggered by management server to Dev Portal. Can be implemented as a custom solution where admin has to manage apps in dev portal itself. Again, No such mechanism like event triggered by management server to Dev Portal if app is approved / revoked in management server.

Thank you very much @Anil Sagar for the clarification on the current design and option for the customization as needed. Will share this info with the customer. I really appreciate your help.

You are welcome @Toshihiro Shibamoto. You can click on accept link below the answer if you feel your question has been answered to mark it best answer. It will help others looking for same. Thank you.