Project

General

Profile

Actions

Task #2564

closed

Pass provisioning context to scripts

Added by Peter Štrunc about 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Vít Švanda
Category:
Provisioning
Target version:
Start date:
11/06/2020
Due date:
% Done:

100%

Estimated time:
Owner:

Description

Provisioning context is not passed to a script in provisioning mapping.

scriptEvaluator.evaluate(
    scriptEvaluator.newBuilder()
        .setScriptCode('SCRIPT')
        .addParameter('scriptEvaluator', scriptEvaluator)
        .addParameter('uid', uid)
        .addParameter('attributeValue', attributeValue)
        .addParameter('entity', entity)
        .addParameter('system', system)
    .build());

I propose that we should pass the context to scripts if it is defined for the given mapping.

scriptEvaluator.evaluate(
    scriptEvaluator.newBuilder()
        .setScriptCode('SCRIPT')
        .addParameter('scriptEvaluator', scriptEvaluator)
        .addParameter('uid', uid)
        .addParameter('attributeValue', attributeValue)
        .addParameter('entity', entity)
        .addParameter('system', system)
        .addParameter('context', context)
    .build());

Related issues

Related to IdStory Identity Manager - Task #1296: Script - support one script in more categoriesNewRadek Tomiška10/04/2018

Actions
Actions

Also available in: Atom PDF