+ bpmConfNodeId;
}
@RequestMapping("bpm-conf-form-remove")
public String remove(@RequestParam("id") Long id) {
BpmConfForm bpmConfForm = bpmConfFormManager.get(id);
Long bpmConfNodeId = bpmConfForm.getBpmConfNode().getId();
if (bpmConfForm.getStatus() == 0) {
bpmConfForm.setStatus(2);
bpmConfFormManager.save(bpmConfForm);
} else if (bpmConfForm.getStatus() == 2) {
bpmConfForm.setStatus(1);
bpmConfFormManager.save(bpmConfForm);
} else if (bpmConfForm.getStatus() == 1) {
if (bpmConfForm.getOriginValue() == null) {
bpmConfFormManager.remove(bpmConfForm);
} else {
bpmConfForm.setStatus(0);
bpmConfForm.setValue(bpmConfForm.getOriginValue());
bpmConfForm.setType(bpmConfForm.getOriginType());
bpmConfFormManager.save(bpmConfForm);
}
}
return "redirect:/bpm/bpm-conf-form-list.do?bpmConfNodeId="