3 Replies Latest reply: May 9, 2012 5:17 PM by arjun.sengupta RSS

    How to Call checkoutView method for user without using workflow services

    935732
      hi All,

      I am using the following piece of code for checking out the user on specific resource, i guess by calling checkoutView method we will get the userview for the particular resource but in my case userview is coming as null,\i dont want to use workflow services


      pls find the code below and log for the same , both the resouce GE_Resource_IDM and user:123 are present in my local system

      <set name='myObject'>
      <invoke name='checkoutView'>
      <set name='context'>
      <invoke name='getAuthenticatedContext'>
      <ref>in</ref>
      <s>configurator</s>
      </invoke>
      </set>
      <concat>
      <s>user</s>
      <s>123</s>
      </concat>
      <Map>
      <MapEntry key='OP_TARGETS'>
      <List>
      <String>GE_Resource_IDM</String>
      </List>
      </MapEntry>
      </Map>
      </invoke>
      </set>
      <ref>myObject</ref>


      following is the Trace for above code:


      <set name='myObject'>
      <invoke name='checkoutView'>
      <set name='context'>
      <invoke name='getAuthenticatedContext'>
      <ref>in</ref> --> com.waveset.server.InternalSession@970110
      <s>configurator</s> --> configurator
      </invoke> --> com.waveset.server.InternalSession@36d036
      </set> --> null
      <concat>
      <s>user</s> --> user
      <s>123</s> --> 123
      </concat> --> user123
      <o>{OP_TARGETS=[GE_Resource_IDM]}</o> --> {OP_TARGETS=[GE_Resource_IDM]}
      </invoke> --> null
      </set> --> null
      <ref>myObject</ref> --> null


      any help is appreciated

      Edited by: 932729 on May 8, 2012 2:02 AM