Article

jedijeff's picture
article
Reads:

2972

Score:
0
0
 
Comments:

0

Sending E-mails on Unsuccessful Transactions

(View Disclaimer)

Problem

A Forum reader recently asked this question:

"I want to trigger mail using Manual task driver based on value chage in a specific attribute. Is this possible?"

And here's the response from Jeff Johnson ...

Solution

Here is how I send email for any status other than success. I put this on the output transformation ...

<?xml version="1.0" encoding="UTF-8"?><policy>
	<description>This policy sends email in event of a transaction without a SUCCESS code.</description>
	<rule>
		<description>Email the status</description>
		<comment xml:space="preserve">If the status level does not equal
		SUCCESS, send an email alert to xxx@xxx.gsu.edu.</comment> <comment
		name="author" xml:space="preserve">Jeff Johnson</comment> <comment
		name="version" xml:space="preserve">1.0</comment> <comment
		name="lastchanged" xml:space="preserve">08-05-04</comment> <conditions>
			<and>
				<if-operation op="equal">status</if-operation> <if-xpath
				op="true">@level!='success'</if-xpath>
			</and>
		</conditions>
		<actions>
			<do-send-email server="xxx.gsu.edu" type="text">
				<arg-string name="to">
					<token-text
					xml:space="preserve">xxxx@xxxx.gsu.edu</token-text>
				</arg-string>
				<arg-string name="subject">
					<token-text xml:space="preserve">IDM ALERT</token-text>
				</arg-string>
				<arg-string name="message">
					<token-xpath expression="@level"/>
					<token-text xml:space="preserve"> has occurred on </token-text>
					<token-xpath expression="object-dn"/>
				</arg-string>
			</do-send-email>
		</actions>
	</rule>
</policy>

Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

© 2013 Novell