I suggest you pass the EmployeeWrapper
object itself to NxBRE using the standard approach:
bre.RuleContext.SetObject("EmployeeWrapper", employeeWrapper);
then reflectively extract the list of employees with:
<ObjectLookup id="Employees" objectId="EmployeeWrapper" member="Employees" />
assuming the EmployeeWrapper
object has a property named Employees
which returns the collection of employees.
Then use a ForEach
block to iterate the employees:
<ForEach id="Employee" valueId="Employees">
...
</ForEach>