You can get workout step data from Activity.WorkoutStep:
// WORKOUT
curWOStep = Activity.getCurrentWorkoutStep();
if ( curWOStep != null ) {
var stepInfo = curWOStep.step;
stepDurationType = stepInfo.durationType; // 0...toTime 1...toDistance 2... lessThan 3...moreThan 4...toCalories 5...Open(Lap)
stepDuration = stepInfo.durationValue;
stepTargetType = stepInfo.targetType;
stepTargetValueH = stepInfo.targetValueHigh;
stepTargetValueL = stepInfo.targetValueLow;
// code...
}
(...sorry - Forum does not allow me to insert code...)