想知道如何将两个包连接成一个字符串,每个包含一个数据元素。 stringConcatenate函数只接受字符串数据类型,而从PIP模块返回的数据值是bag类型。 ALFA中是否有字符串到包转换?扫描版本3规格我没有找到反函数,比如读取转换为字符串的包的第一个元素。是否有可用于XACML版本3和ALFA的解决方案来运行此数据类型调整并连接两个数据值?
示例:
obligations = "Invited to Work Request Policy - The user :{"
notificationRecipient = stringConcatenate(subjectAttributes.redSerialNumber,subjectAttributes.employeeCountryCode)
debugMsg2 = "}, was invited to XYZ."
答案 0 :(得分:1)
以下声明已在ALFA中验证:
obligation displayAttributes {
obligations = "Invited to Work Request Policy - The user :{"
notificationRecipient = stringConcatenate(stringOneAndOnly(subjectAttributes.redSerialNumber),stringOneAndOnly(subjectAttributes.employeeCountryCode))
debugMsg2 = "}, was invited to XYZ."
}