Skip to main content

NetIQ IDM - Start workflow from policy and catch error



Those who want to avoid slowness of designer UI, use XML editor for fast delivery of code by providing following xml stub for start workflow :-)



<do-start-workflow id="$local.sub.etp.resource.UserId$" time-out="30000" url="$local.sub.etp.resource.Endpoint$" workflow-id="$workflow-ldap-dn$"> <arg-password> <token-local-variable name="local.sub.etp.resource.Password" /> </arg-password> <arg-dn> <token-local-variable name="lv.user.ldap.DN" /> </arg-dn> <arg-string name="Product"> <token-local-variable name="lv.group.ldap.DN" /> </arg-string> <arg-string name="Accounts"> <token-local-variable name="lv.user.ldap.DN" /> </arg-string> <arg-string name="Subscriptions"> <token-local-variable name="local.sub.ctp.Subscriptions" /> </arg-string> <arg-string name="IssueTicket"> <token-text xml:space="preserve">N/A</token-text> </arg-string> </do-start-workflow>


to catch the error use following condition with local variable  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>

Comments

Popular posts from this blog

NetIQ IDM - Adding operation-data to subscriber command transformaiton custom commands

Recently i had to execute EOL cmdlets using psexecute though new NetIQ azure ad driver, since this operation is fire and forget in nature, i would like to track whole request and response for my own generated commands from subscriber command transofrmaiton policy, so i solved it by following policy: < do-set-dest-attr-value direct = "true" name = "psexecute" > < arg-association > < token-resolve datastore = "src" > < arg-dn > < token-text xml:space = "preserve" > {userref} </ token-text > </ arg-dn > </ token-resolve > </ arg-association > < arg-value type = "string" > < token-local-variable name = "cmdlet" /> </ arg-value > </ do-set-dest-attr-value > < do-append-xml-element expression = "../modify[@direct]" na...

NetIQ IDM - SOAP driver -- Handling SOAP service response and manufacturing user association without XSLT

Always pain working with SOAP service and its handling of service response on Query(matching) for user to work with matching policies? Here is the quick wins; without reading  those long lengthy & boring useless SOAP driver blog series at netIQ forums; 1. Make sure you have mapped User class in the schema map with some service attributes 2. Make sure Input and Output policy is registered with all the namespaces you have in your request/response soap messages, example <policy xmlns:soap="http://www.w3.org/2003/05/soap-envelope" 3. I have added operation-data (which is being generated from the Output policy) as part of the SOAP query, but you can skip it if you do not need this. src-dn and association are important to indicate engine for building association.  Operation data will help you to identify operation type and you can carry actions according to it. Inject this on Output ( To support user matching) to send service request: < rule > ...

Digging IDMUnit - IdMUnit a must-have automated testing tool that integrates with Designer for Novell Identity Manager

Good news, The IDMUnit 2.0 is out ( http://www.idmunit.org/web/guest/idmunit20 )!.. and I just couldn't wait to try the tool and do some hands on with it. Now it comes with a documentaiton and a WebMinar which helps a lot to understand how it works and how it integerates with the Novell Designer. The Webminar is encoded with the "G2M3" encoding, so you need a decoder in order to see both video and audio. I downloaded it from the web : https://www2.gotomeeting.com/codec I started with installing the tool on my PC Windows Vista 32bit OS. I have the following setup: Novell Designer Version: 3.5, Build id: 20090916 Novell Identity Manager 3.6.1 Windows Server 2003 SP3 Novell eDirectory 8.8.x The first thing the IDMUnit documentation says to apply so called "Eclipse Overlay", i downloaded " Eclipse IDE for Java Developers (92 MB) " that from the URL " http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo...