OpenRPA Handling Payload from WorkItem Created by NodeRed

Hi everyone, I am having hard time to read/receive payload from workitem to my workflow in openRPA.
Here’s what i did:
In nodered, I have created a flow that receives data thru http in node then will create workitem with that data and this workitem as expected will execute the workflow and the issue is i am not receiving the payload of the workitem.

Context:
The workflow need to run as soon as it receives http request in nodered.
There could be a lot of http request that will trigger the workflow

How can I solve this? Should I instead use RPA node instead of workitem?

Thank you.

There is trigger functionality available in Node red using which you can start the bot

In Node-RED, use the HTTP In/Out nodes to create an endpoint. Between those you can then, add a work item and then use the RPA node to trigger a workflow that will “pop” the item.

This way, you get the “instant” feeling while keeping transaction security by using work items.

If a “delay” before processing is acceptable, you can also assign a robot and workflow to the work item queue. Then, OpenFlow will “ping” the robot every 60 seconds if there are unprocessed items in the queue.
You can increase or decrease this number under settings, but i do NOT recommend setting this to a very low number, so if fast reaction is needed i would recomend you do as i suggested above.

Thank you very much Allan for your response.

Just a quick follow up question. Can I access the payload of a workitem in a workflow without using popitem?

Yes, it’s just an object in the workitems collection, so you can query it like everything else ( using query/aggregate )

1 Like

Thank you Allan. Helped me a lot

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.