So of course the docs should mention that there are error variables?

They do, it is just buried and not obvious.

Right after a do-start-workflow event, if there is an error, the error variable, "error.do-start-workflow" will have a value. The DirXML Example Code below will catch when there is a value for Error.do-start-workflow:

<do-if>
	<arg-conditions>
		<and>
			<if-local-variable mode="regex" name="error.do-start-workflow" op="equal">.+</if-local-variable>
		</and>
	</arg-conditions>
	<arg-actions>
		<do-trace-message level="3">
			<arg-string>
				<token-text xml:space="preserve">Workflow Error Detected PLACEHOLDER</token-text>
			</arg-string>
		</do-trace-message>
	</arg-actions>
	<arg-actions/>
</do-if>
This will catch it. Do inside the IF what you desire.

Alas, Find Matching stores it as funny values of the dest-dn, strange Unicode values.

DIR-XML-Error-Variables#

Many thanks to Geoffrey Carman for this and all of His fine IDM work

More Information#

There might be more information for this subject on one of the following:

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-5) was last changed on 31-Jul-2014 12:39 by jim