Sun Identity Manager Deployment Reference

Using map of options with Checkout and Checkin Calls

Determining which options you can use as optional arguments for these check out and check in calls can be challenging. These optional arguments are defined as part of the UserViewConstants class. The Javadocs list options in this format:




Instead of hard-coding these literal strings in your code when checking for options, we define constants that can be used throughout the code base to represent a string. While this is a good coding practice, you cannot reference a static field, such as OP_TARGET_RESOURCES, through XPRESS or workflow.

To identify valid strings that you can pass in the correct value, you can write a test rule that reveals the true string. For example, the following rule returns TargetResources.

   <set name=’wf_srv’>
      <new class=’com.waveset.provision.WorkflowServices’/>

      var wfSvc = env.get( ’wf_srv’ );
      var constant = wfSvc.OP_TARGETS;

Although handy for finding out a string, this rule does not lend itself to production deployment because it returns the same string for every call made to it.

One you’ve identified valid strings, you can update your checkout view call as follows. The following code checks out a view that only propagate changes to Identity Manager and AD.

<Action id=’-1’ application=’com.waveset.session.WorkflowServices’>
   <Argument name=’op’ value=’checkoutView’/>
   <Argument name=’type’ value=’User’/>
   <Argument name=’id’ value=’mfairfield’/>
   <Argument name=’options’>
<Variable name=’view’/>
<Return from=’view’ to=’user’/>