How to pass success status from one robot to another robot
You mean to say in orchestrator or in code
You can use boolean Asset, and keep the status as false initially.
When First bot completes execution successfully then you can set the value to True using Set Asset activity. Second Bot can refer the status.