Python Programming) Process Node

I want to input Work Time(50s) in Process Node

process_controller = sim.ProcessController
transport_system = process_controller.TransportSystem
nodes = transport_system.Nodes
node = nodes[1]

def OnRun():
def product_arrived_handler(product, link, event_data):
delay (50)
node.OnProductArriving = product_arrived_handler

But, Part don’t stop in Process Node.
How do I modify to stop Part?
Thank you in advance

The product must be coming to that process in the first place, but in addition you will need to mark it as handled in the event_data object.