Transaction t = this.service.currentTransaction();
try {
t.begin();
DOBO boService = DOBO.getDOBOByName("do_service");
BOInstance biService = boService.getCorrInstance();
BOInstance paras = new BOInstance();
paras.putValue("serviceUid", biService.getUid());
paras.putValue("onlyRun", "1");
paras.putValue("condition", "true");
paras.putValue("conditionType", "1");//1 代表script
paras.putValue("name", "Rule_" + biService.getValue("name"));
paras.putValue("l10n", "Rule_" + biService.getValue("l10n"));
paras.putValue("salience", "5");
paras.putValue("bouid", biService.getValue("bouid"));
this.service.invokeUpdate(paras);
t.end();
} catch (Exception e) {
t.rollback();
e.printStackTrace();