sailpoint-oss / rule-development-kit

A development environment setup for creating rules.
MIT License
7 stars 25 forks source link

[BUG] Include various sailpoint.connector classes in the RDK #2

Closed drosenbauer closed 1 year ago

drosenbauer commented 1 year ago

One of the example rules is as follows:

 import sailpoint.connector.DelimitedFileConnector;

 Map map = DelimitedFileConnector.defaultBuildMap( cols, record );
 String access = (String) map.get( "access" );
 String permission = (String) map.get( "permission" );

log.debug("Map log: " + map);

 if ( access != null && permission != null ) {
      map.remove("access");
      map.remove("permission");
      map.put("access", access + " - " + permission);
 }
 return map;

This will not currently run in the RDK and so cannot be tested, because sailpoint.connector.DelimitedFileConnector is not in the RDK codebase. Of course, developers can copy the connector bundles from their VA and do it that way, but it would be nice if these very common connector classes would be included.

github-actions[bot] commented 1 year ago

🎉 Thanks for opening your first issue here! Welcome to the community!

tyler-mairose-sp commented 1 year ago

Hey @drosenbauer, this is actually a bug. I included the DelimitedFileConnector in the rules jar so if it's not working for you I must have something cached where it's included. I'll look into this as soon as I can and get a fix in there.

tyler-mairose-sp commented 1 year ago

Just got the fix in for this with the following commit! https://github.com/sailpoint-oss/rule-development-kit/commit/de0e3dd447497535eee2cc6719e66ec7252c4351

If you pull the most recent changes and re-run a mvn clean install this will be fixed. If that doesn't work you may need to purge dependencies with mvn dependency:purge-local-repository and then run mvn clean install.