I have a list of dictionaries that is created by my producer.robot.
I want to pass each dictionary to the consumer.robot to be processed individually.
Work items are really tripping me up here.
Here is my code for separating my list into work items:
One of my work items looks like this:
{‘workorder_id’: ‘34259’, ‘street’: ‘Test Street’, ‘city’: ‘Test City’, ‘state’: ‘TestState’, ‘zip’: ‘55555’, ‘event_type’: ‘Multi-day Travel’, ‘event_subtype’: ‘Multiple Jobs Travel’, ‘start_date’: ‘02/06/2023’, ‘end_date’: ‘02/17/2023’, ‘event_duration’: ‘=K2-J2’, ‘event_workorder_numbers’: ‘34178, 34180, 34182, 34189, 34199, 34200, 34201, 34202, 34203, 34204, 34206, 34208, 34209, 34210, 34211, 34212, 34213, 34218, 34219, 34221, 34222, 34223, 34224, 34225, 34226, 34229, 34230, 34232, 34233, 34234, 34235, 34236, 34237, 34238, 34255, 34248, 34256, 34257, 34258, 34259, 34260’}
Can someone explain to me like I’m dumb what tasks I should use to process each work item individually in the consumer locally.
Create Output Work Item seems like the first step to include in the producer but I can’t wrap my head around how work items are stored dynamically to be processed each time by the consumer.
I am familiar with the Dispatcher Performer in UiPath which is the exact same concept, I just am having trouble figuring out how to put this into practice.
For instance, if I wanted to log the workorder_id of a current work item in the consumer.robot, how would that be done?