Health Notifier
This section explains how custom applications can notify a robot about its health status and prevents the robot to take any further requests until the application performs self-healing steps. HealthNotifier is a property in the IRPAHelper interface. Custom application implements the IRPAHelper interface and uses the HealthNotifier property for the health notifications.
The custom application has the following method which raises an event notification to Robot.
public void RaiseUpdateHealthStatusEvent(object sender, HealthStatusArgs healthStatus); HealthStatusArgs class: public class HealthStatusArgs : EventArgs { string senderName; public string SenderName { get { return senderName; } set { senderName = value; } } HealthStatus status; public HealthStatus Status { get { return status; } set { status = value; } } } public enum HealthStatus { Ready, Busy, Error } |
When a custom application raises a healthNotifier with HealthStatus as Error, robot gets into an error state and does not accept any new requests. The same custom application raises the HealthStatus as Ready for the robot to start accepting requests.