Gartner predicts global spending on Robotic Process Automation (RPA) will reach $2.4 billion in 2022, up from $680 million in 2018.