About making rules in Sailpoint

Anybody please help me to write a rule to get all the active users in sailpoint. Set them inactive.
import sailpoint.object.Identity;

Identity identity = context.getObjectByName(Identity.class, “employeeID”);
String empID = identity.getAttribute(“employeeID”);
String Status = identity.getAttribute(“status”);

//String Status = identity.getStringAttribute(“status”)
//tring idName = identity.getName(“employeeID”);

if  ((Status != null) && (Status = "Active")){
	return empID
	identity.SetInactive("status");
	
} 
return Status;
this is what I am doing till now.