Hi Sanjeev,
so the update happens to populate a temp graph with the email that shall
be sent. For example the variable values for ?body become ?message
email:body ?body triples in the temp query graph.
The SELECT DISTINCT loop is just there to iterate over all email
addresses. At the end of the loop, the temp graph contains one
email:Message instance for each workflow participant email. That
technique is the only way to send emails, unless you want to somehow
bypass TopBraid and use your in-house email services directly (e.g. with
a sml:PostRequest).
In your case you can probably build an email from the ui:addedGraph and
ui:deletedGraph triples in your EditRule?
Holger
On 17/02/2020 17:25, Sanjeev Devireddy wrote:
Hi Holger,
Thanks for your response. Please check my queries below.
From the above example it looks like that the variable named
"body" contains the body of the email and that is fine. But why
different Graphs are queried and/or updated to send email notification
is still a question for us? Could you please help us to understand it
better?
Our requirement is to send a simple/custom email notification
whenever a taxonomy is updated. For that, we first implemented an
event listener (by extending teamwork:EditRules) to capture the
taxonomy changes/updates. Now, we are trying to read those already
captured events and send custom email notifications. Is there any
simple way to send email notifications unlike the above example given
above, which involves querying/updating other graphs?
Thanks,
Sanjeev
--
You received this message because you are subscribed to the Google
Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/51b6dad3-3047-469e-9c3b-b2264733ba6b%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/51b6dad3-3047-469e-9c3b-b2264733ba6b%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups "TopBraid
Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/7e7571f0-16da-ccd3-a281-68d14c975987%40topquadrant.com.