process states SUCCEEDED and FAILED getting set
ProcessUtil.wait() for "busy waiting" (lapse) and refactored
RegisterProcess success