Replace Procedure ABC (IN STEP_ID INTEGER)
Declare RESUME_NEXT Varchar(10)
BEGIN
SET RESUME_NEXT = 'false';
IF (RESUME_NEXT = 'true' OR STEP_ID = 51) THEN
INSERT INTO ....
SET RESUME_NEXT = 'true';
END IF;
IF (RESUME_NEXT = 'true' OR STEP_ID = 53) THEN
UPDATE ....
SET RESUME_NEXT = 'true';
END IF;
Following might help you
PS: Please bear with syntax.