Combine by Label

Combine by Label

25850334
Community Visitor Community Visitor
118 Views
2 Replies
Message 1 of 3

Combine by Label

25850334
Community Visitor
Community Visitor

Hi everyone, 

 

In my model, I am simulating an automobile service center. At the separator, vehicles and customers are separated. My problem is that I then need to join the correct vehicle to the appropriate customer at the end of the process, using the combiner. I am attempting to combine via the label "Vehicle_ID", to match the customer to the vehicle, but it does not seem to be working. 

 

If anyone has alternative suggestions, or can see the issue with my current model, your assistance would be greatly appreciated. 

 

0 Likes
Accepted solutions (1)
119 Views
2 Replies
Replies (2)
Message 2 of 3

moehlmann_fe
Enthusiast
Enthusiast
Accepted solution

The Pull Requirement should only be used when an item is received through the second port. The combiner can receive anything through port 1. And you need to compare the label of the potentially received item with that of the item already on the combiner, not with itself.

if(port == 2)
{
	return item.Vehicle_ID == current.first.Vehicle_ID;
}

return 1;
Message 3 of 3

25850334
Community Visitor
Community Visitor

Thank you so much!

0 Likes