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 #1

Updated by Peter Štrunc about 4 years ago

  • Description updated (diff)
Actions #2

Updated by Vít Švanda about 4 years ago

  • Target version changed from 10.7.0 to 10.8.0
Actions #3

Updated by Vít Švanda almost 4 years ago

  • Assignee changed from Vít Švanda to Ondrej Husník
Actions #4

Updated by Vít Švanda almost 4 years ago

  • Status changed from New to In Progress
  • Assignee changed from Ondrej Husník to Vít Švanda
Actions #5

Updated by Vít Švanda almost 4 years ago

  • % Done changed from 0 to 90

Solved within AD wizard #2627.

Solved problem with removing "attributeValue/context" varialbes form script for basic ACM.

Commit: https://github.com/bcvsolutions/CzechIdMng/commit/11f6900001d269d8d62fb13e86babc4e2b4a4031

Actions #6

Updated by Vít Švanda almost 4 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Vít Švanda to Radek Tomiška
Actions #7

Updated by Radek Tomiška almost 4 years ago

  • Related to Task #1296: Script - support one script in more categories added
Actions #8

Updated by Radek Tomiška almost 4 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Radek Tomiška to Vít Švanda
  • % Done changed from 90 to 100

I did test and code review, ''context'' attribute is added, when selected script is in "Transformation to a system" category, thx!

I added category into selectbox option:
https://github.com/bcvsolutions/CzechIdMng/commit/5177fe798c823ca4ec82c5a117620812e6f37135

Actions #9

Updated by Radek Tomiška almost 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF