Task #2564
Updated by Peter Štrunc about 4 years ago
Provisioning context is not passed to a script in provisioning mapping. <pre> scriptEvaluator.evaluate( scriptEvaluator.newBuilder() .setScriptCode('SCRIPT') .addParameter('scriptEvaluator', scriptEvaluator) .addParameter('uid', uid) .addParameter('attributeValue', attributeValue) .addParameter('entity', entity) .addParameter('system', system) .build()); </pre> I propose that we should pass the context to scripts if it is defined for the given mapping. <pre> scriptEvaluator.evaluate( scriptEvaluator.newBuilder() .setScriptCode('SCRIPT') .setScriptCode('koopGolemGetGolemLogin') .addParameter('scriptEvaluator', scriptEvaluator) .addParameter('uid', uid) .addParameter('attributeValue', attributeValue) .addParameter('entity', entity) .addParameter('system', system) .addParameter('context', context) .build()); </pre>