String escalationTime = request.getParameter("escalationTime");
WorkflowAPI wapi = APILocator.getWorkflowAPI();
boolean stepResolved = request.getParameter("stepResolved") != null;
int order = 0;
try {
WorkflowStep step = wapi.findStep(stepId);
if(step.isNew()){
writeError(response, "Cannot-edit-step");
return;
}
if(enableEscalation) {
step.setEnableEscalation(true);
step.setEscalationAction(escalationAction);
step.setEscalationTime(Integer.parseInt(escalationTime));
}
else {
step.setEnableEscalation(false);
step.setEscalationAction(null);
step.setEscalationTime(0);
}
step.setName(stepName);
step.setResolved(stepResolved);
order = step.getMyOrder();
try{
order = Integer.parseInt(o);
wapi.reorderStep(step, order );
}
catch(Exception e1){