public void processForm(UserTask userTask, BpmConfNode bpmConfNode) {
if (userTask.getFormKey() == null) {
return;
}
BpmConfFormManager bpmConfFormManager = getBpmConfFormManager();
BpmConfForm bpmConfForm = bpmConfFormManager.findUnique(
"from BpmConfForm where bpmConfNode=?", bpmConfNode);
if (bpmConfForm == null) {
bpmConfForm = new BpmConfForm();
bpmConfForm.setValue(userTask.getFormKey());
bpmConfForm.setType(0);
bpmConfForm.setOriginValue(userTask.getFormKey());
bpmConfForm.setOriginType(0);
bpmConfForm.setStatus(0);
bpmConfForm.setBpmConfNode(bpmConfNode);
bpmConfFormManager.save(bpmConfForm);
}
}