Topic
2 replies Latest Post - ‏2013-10-04T06:32:59Z by willor
willor
willor
12 Posts
ACCEPTED ANSWER

Pinned topic ITIM: Get data value from Workflow

‏2013-10-04T04:40:59Z |

Hi All,

Currently I wish to get value from the account which is erCreateDate, from Workflow

I can seen it from ldap but the current javascript functionality display the value as undefined

 

var test = entity.get().getProperty("ercreatedate")[0];

Enrole.log("script", "ERCREATEDATE" + test);

 

anyone knows how can i get this account attribute?

Updated on 2013-10-04T06:34:55Z at 2013-10-04T06:34:55Z by willor
  • franzw
    franzw
    326 Posts
    ACCEPTED ANSWER

    Re: [ISIM 6.0] Get erCreateDate from Account Entity

    ‏2013-10-04T06:21:50Z  in response to willor

    You will need to use the com.ibm.itim.dataservices.model.domain.Account class to get to the date - the attribute name for the date is defined as constant there :

    ACCOUNT_ATTR_CREATION_DATE

    public static final java.lang.String ACCOUNT_ATTR_CREATION_DATE
    String constant for the creation date attribute name.

    To go to the Account object using (internal) APIs is basically done like this :

    raw DN (string) -> DistinguishedName -> AccountSearch.lookup() -> AccountEntity.getDirectoryObject() -> Account

    There are basically 2 ways you can do this - you can add the com.ibm.itim.dataservices.model.domain and com.ibm.itim.dataservices.model to your workflow (scriptFramework.properties) or wrap up a new JavaScript extension to do it. The latter is the recommended way as you do not open up any security holes as you may do by the first.

    I have not submitted any pseudo code on purpose - if you are not able to do this from this description you should really not do it - but find another way to solve your problem. Working with the APIs are not for the fainthearted :-)

    HTH

    Regards

    Franz Wolfhagen

    • willor
      willor
      12 Posts
      ACCEPTED ANSWER

      Re: [ISIM 6.0] Get erCreateDate from Account Entity

      ‏2013-10-04T06:32:59Z  in response to franzw

      Hi, Thanks Franz for prompt reply

      I will try to create new javascript extension to do this.

       

      Best Regards,

      William