How to check if a value is present in a Property Local List?

Requirement: From an activity or Data Transform before set a value to a property need to check if that value is present in the Property's Local list else for not matching values validation error will occur.

Steps:

  1. Add a Obj-Open step

No alt text provided for this image

Here OpenClass = "Rule-Obj-Property"

.pyClassName = Class where property is defined.

.pyPropertyName = Property Name (without .)

2. When condition to check if the value present in the local list

@Utilities.IsInPropertyList(Param.ValueToCheck,.pyTableList)

3. If the when returns true then we can set that value to property.

Many thanks for liking this ??

回复

要查看或添加评论,请登录

Priyabrata Biswas, Ph.D的更多文章

社区洞察

其他会员也浏览了