Hello everyone!
I have a mapping table with 3 “Source-Columns” and one Destination-Column. Column A, B, C are source, D is destination.
I use the element www.netiq.com/.../token-map.html with several “token-map-source-col” elements to customize it.
Example of the mapping table (not the whole one)
Bukrs | Group | Name | Active |
5555 | LEADER | Z | 1 |
5555 | LEADERSUB | Z | 1 |
5555 | CORE | Z | 0 |
5555 | SUB | Z | 0 |
Screenshot of the mapping table:
The token-map looks like this:
<do-set-local-variable name="lv.group.create" scope="policy"> <arg-node-set> <token-map default-value="-1" dest="Active" source="Buchungskreis" table="..\..\customer_mapping-tables\mappingTableName" type="AND"> <token-map-source-col name="Buchungskreis"> <token-local-variable name="lv.o.bukrs"/> </token-map-source-col> <token-map-source-col name="GroupType"> <token-local-variable name="lv.check.groupType"/> </token-map-source-col> <token-map-source-col name="OrgType"> <token-local-variable name="lv.group.type"/> </token-map-source-col> </token-map> </arg-node-set> </do-set-local-variable>
Example from a trace file:
[12/06/24 15:42:36.715]:NULL_GROUPMANAGEMENT ST: Applying rule 'create group - SUB'. [12/06/24 15:42:36.715]:NULL_GROUPMANAGEMENT ST: Action: do-set-local-variable("lv.check.groupType",scope="policy","SUB"). [12/06/24 15:42:36.715]:NULL_GROUPMANAGEMENT ST: arg-string("SUB") [12/06/24 15:42:36.715]:NULL_GROUPMANAGEMENT ST: token-text("SUB") [12/06/24 15:42:36.715]:NULL_GROUPMANAGEMENT ST: Arg Value: "SUB". [12/06/24 15:42:36.715]:NULL_GROUPMANAGEMENT ST: Action: do-set-local-variable("lv.group.description",scope="policy","v "+token-local-variable("lv.group.name")). [12/06/24 15:42:36.716]:NULL_GROUPMANAGEMENT ST: arg-string("v "+token-local-variable("lv.group.name")) [12/06/24 15:42:36.716]:NULL_GROUPMANAGEMENT ST: token-text("v ") [12/06/24 15:42:36.716]:NULL_GROUPMANAGEMENT ST: token-local-variable("lv.group.name") [12/06/24 15:42:36.716]:NULL_GROUPMANAGEMENT ST: Token Value: "Customerdata". [12/06/24 15:42:36.717]:NULL_GROUPMANAGEMENT ST: Arg Value: "v customerdata". [12/06/24 15:42:36.717]:NULL_GROUPMANAGEMENT ST: Action: do-set-local-variable("lv.group.create",scope="policy",arg-node-set(token-map("..\..\customerMappingTable\customerMappingTable","Active",default-value="-1",source="Buchungskreis",type="AND",token-map-source-col("Buchun gskreis",token-local-variable("lv.o.bukrs"))+token-map-source-col("GroupType",token-local-variable("lv.check.groupType"))+token-map-source-col("OrgType",token-local-variable("lv.group.type"))))). [12/06/24 15:42:36.718]:NULL_GROUPMANAGEMENT ST: arg-node-set(token-map("..\..\customerMappingTable\customerMappingTable","Active",default-value="-1",source="Buchungskreis",type="AND",token-map-source-col("Buchungskreis",token-local-variable("lv.o.bukrs"))+token-map-source -col("GroupType",token-local-variable("lv.check.groupType"))+token-map-source-col("OrgType",token-local-variable("lv.group.type")))) [12/06/24 15:42:36.719]:NULL_GROUPMANAGEMENT ST: token-map("..\..\customerMappingTable\customerMappingTable","Active",default-value="-1",source="Buchungskreis",type="AND",token-map-source-col("Buchungskreis",token-local-variable("lv.o.bukrs"))+token-map-source-col("Group Type",token-local-variable("lv.check.groupType"))+token-map-source-col("OrgType",token-local-variable("lv.group.type"))) [12/06/24 15:42:36.719]:NULL_GROUPMANAGEMENT ST: token-map("..\..\customer_mapping-tables\customerMappingTable","Active",default-value="-1",source="Buchungskreis",type="AND",token-map-source-col("Buchungskreis",token-local-variable("lv.o.bukrs"))+token-map-source-col("Gro upType",token-local-variable("lv.check.groupType"))+token-map-source-col("OrgType",token-local-variable("lv.group.type"))) [12/06/24 15:42:36.720]:NULL_GROUPMANAGEMENT ST: token-map-source-col("Buchungskreis",token-local-variable("lv.o.bukrs")) [12/06/24 15:42:36.721]:NULL_GROUPMANAGEMENT ST: token-map-source-col("Buchungskreis",token-local-variable("lv.o.bukrs")) [12/06/24 15:42:36.721]:NULL_GROUPMANAGEMENT ST: token-local-variable("lv.o.bukrs") [12/06/24 15:42:36.721]:NULL_GROUPMANAGEMENT ST: Token Value: "5555". [12/06/24 15:42:36.721]:NULL_GROUPMANAGEMENT ST: Arg Value: "5555". [12/06/24 15:42:36.721]:NULL_GROUPMANAGEMENT ST: Token Value: "[Buchungskreis, 5555]". [12/06/24 15:42:36.722]:NULL_GROUPMANAGEMENT ST: token-map-source-col("GroupType",token-local-variable("lv.check.groupType")) [12/06/24 15:42:36.722]:NULL_GROUPMANAGEMENT ST: token-map-source-col("GroupType",token-local-variable("lv.check.groupType")) [12/06/24 15:42:36.722]:NULL_GROUPMANAGEMENT ST: token-local-variable("lv.check.groupType") [12/06/24 15:42:36.722]:NULL_GROUPMANAGEMENT ST: Token Value: "SUB". [12/06/24 15:42:36.723]:NULL_GROUPMANAGEMENT ST: Arg Value: "SUB". [12/06/24 15:42:36.723]:NULL_GROUPMANAGEMENT ST: Token Value: "[GroupType, SUB]". [12/06/24 15:42:36.723]:NULL_GROUPMANAGEMENT ST: token-map-source-col("OrgType",token-local-variable("lv.group.type")) [12/06/24 15:42:36.723]:NULL_GROUPMANAGEMENT ST: token-map-source-col("OrgType",token-local-variable("lv.group.type")) [12/06/24 15:42:36.723]:NULL_GROUPMANAGEMENT ST: token-local-variable("lv.group.type") [12/06/24 15:42:36.724]:NULL_GROUPMANAGEMENT ST: Token Value: "Z". [12/06/24 15:42:36.724]:NULL_GROUPMANAGEMENT ST: Arg Value: "Z". [12/06/24 15:42:36.724]:NULL_GROUPMANAGEMENT ST: Token Value: "[OrgType, Z]". [12/06/24 15:42:36.724]:NULL_GROUPMANAGEMENT ST: Arg Value: "[Buchungskreis, 5555],[GroupType, SUB],[OrgType, Z]". [12/06/24 15:42:36.724]:NULL_GROUPMANAGEMENT ST: Token Value: {"1","0"}. [12/06/24 15:42:36.725]:NULL_GROUPMANAGEMENT ST: Arg Value: {"1","0"}. [12/06/24 15:42:36.725]:NULL_GROUPMANAGEMENT ST: Action: do-if(). [12/06/24 15:42:36.725]:NULL_GROUPMANAGEMENT ST: Evaluating conditions.
Example "arg-value" for the search from the logs
Arg Value: "[Bukrs, 5555],[Group, SUB],[Name, Z]".
Result:
Arg Value: {"1","0"}.
Correct result should be only "0"
I defnied the variable as a nodeset, to see if I really get multiple matches and I don't know why I got multiple matches.
I also set the parameter 'type="AND">' on the "token-map" element with no success.
Does anyone has an idea why I got multiple matches? For me it seems likem that the matching in the mapping table is not working correctly.
IDM Version is 4.9
BR
Tobias
Edit: 09.12: Initials Post extended by further useful information.