Hi Team,
I have written following delimited buidlmap rule for populating new field but code is not resulting in creating new column. Could anyone help me in this like what are the steps to be followed in writing build map rule?
{
"description": "A BuildMap rule is used to manipulate the raw input data (provided via the rows and columns in the file) and build a map out of the incoming data.",
"type": "BuildMap",
"signature": {
"input": [
{
"name": "col",
"description": "An ordered list of the column names from the fileβs header record or specified Columns list.",
"type": null
},
{
"name": "record",
"description": "An ordered list of the values for the current record (parsed based on the specified delimiter)",
"type": null
},
{
"name": "application",
"description": "The source object sent to the connector from IdentityNow.",
"type": null
},
{
"name": "schema",
"description": "A reference to the Schema object for the Delimited File source being read.",
"type": null
}
],
"output": null
},
"sourceCode": {
"version": "1.0",
"script": "\n\n \n\n import sailpoint.connector.DelimitedFileConnector;\n\n\timport java.util.Map;\n\n Map map = DelimitedFileConnector.defaultBuildMap( cols, record );\n\n String resourceName = (String) map.get( \"Resource Name\" );\n\n String accountName = (String) map.get( \"Account Name\" );\n\n String PasswdIntAccessType1 = (String) map.get( \"PasswdIntAccessType1\" );\n \n\n\tList ResourceAccountNameRule = new ArrayList();\n\n if ( resourceName != null && accountName != null && PasswdIntAccessType1!= null) {\n\n ResourceAccountNameRule.add(resourceName);\n \n ResourceAccountNameRule.add(\" - \");\n\n ResourceAccountNameRule.add(accountName);\n\t\t \n\t\t ResourceAccountNameRule.add(\" - \");\n\t\t \n\t\t ResourceAccountNameRule.add(PasswdIntAccessType1);\n\n map.put(\"ResourceAccountNameRule\", ResourceAccountNameRule);\n\n }\n\n return map;\n\n \n\n "
},
"attributes": {
"sourceVersion": "1.0"
},
"id": "42d093f426874bceb",
"name": "Rule - BuildMap - Sample",
"created": "2023-05-09T06:09:16.123Z",
"modified": "2023-05-09T06:11:00.160Z"
}
Thanks
Kalyan