|
public static void businessActivity1AfterAdvance() {
ProcessControl flowControl=(ProcessControl)ContextHelper.getActionContext().getParameter("control");
for (ProcessControlItem to : flowControl.getFlowTos()){
for (OrgUnit ect : to.getExecutors()){
String name=ect.getFName();
int one = name.lastIndexOf("/");
String name123=name.substring((one+1),name.length());
String ksql = "SELECT o.sMobilePhone FROM SA_OPPerson o WHERE o.sName like '"+name123+"'" ;
Table table = KSQL.select(ksql, null, "/system/data", null);
Iterator<Row> rows = table.iterator();
Row row = rows.next();
String phone123=row.getString("sMobilePhone");
System.out.println("phone:"+phone123);
throw new RuntimeException("已发短信给: " + name123+phone123);
String sb4 = new String("123"); 这里报错,导致我连最简单的应用都无法做,只能想办法把电话号码调出去用,可是方法外根本不能使用,该怎么办呢?高手来帮帮忙啦
}
} |
|