流程提交代码记录
This commit is contained in:
parent
eff3960271
commit
899dee9d1f
|
@ -1,9 +1,15 @@
|
||||||
package shkd.todotask;
|
package shkd.todotask;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import kd.bos.algo.DataSet;
|
||||||
import kd.bos.dataentity.entity.DynamicObject;
|
import kd.bos.dataentity.entity.DynamicObject;
|
||||||
|
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
||||||
|
import kd.bos.db.DB;
|
||||||
|
import kd.bos.db.DBRoute;
|
||||||
import kd.bos.logging.Log;
|
import kd.bos.logging.Log;
|
||||||
import kd.bos.logging.LogFactory;
|
import kd.bos.logging.LogFactory;
|
||||||
|
import kd.bos.orm.ORM;
|
||||||
|
import kd.bos.orm.query.QFilter;
|
||||||
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||||
import kd.bos.servicehelper.user.UserServiceHelper;
|
import kd.bos.servicehelper.user.UserServiceHelper;
|
||||||
import kd.bos.util.StringUtils;
|
import kd.bos.util.StringUtils;
|
||||||
|
@ -49,6 +55,37 @@ public class todoZyTaskServiceHandler extends AbstractMessageServiceHandler {
|
||||||
return approvers;
|
return approvers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void startProcessInstance(MessageContext messageContext, Long proceInstanceId) {
|
||||||
|
super.startProcessInstance(messageContext, proceInstanceId);
|
||||||
|
// JSONObject jsonObject = null;
|
||||||
|
// String sql="SELECT a.fcontent as fcontect FROM t_wf_gebytearray a inner JOIN T_WF_PROCDEF b on a.fid=b.fresourceid inner join T_WF_hiprocinst c on c.fprocdefid = b.fid where c.fbusinesskey='"
|
||||||
|
// +messageContext.getBusinessKey()+"'";
|
||||||
|
// DataSet rows = DB.queryDataSet(this.getClass().getName(), DBRoute.of("sys"), sql);
|
||||||
|
// DynamicObjectCollection collection= ORM.create().toPlainDynamicObjectCollection(rows);
|
||||||
|
// if(collection!=null&&collection.size()>0){
|
||||||
|
// String content= (String) collection.get(0).get(0);
|
||||||
|
// jsonObject = JSONObject.parseObject(content);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
//// System.out.println("startProcessInstance");
|
||||||
|
//// System.out.println("startProcessInstance");
|
||||||
|
//
|
||||||
|
// //获取流程实例ID
|
||||||
|
// Long processInstanceId = messageContext.getProcessInstanceId();
|
||||||
|
// //获取任务步骤
|
||||||
|
// Long executionId = messageContext.getExecutionId(); // 节点ID
|
||||||
|
// //获取当前任务ID
|
||||||
|
// Long taskId = messageContext.getTaskId();
|
||||||
|
// //获取单据编码
|
||||||
|
// String billNo = messageContext.getBillNo();
|
||||||
|
//// String entityNumber = messageContext.getEntityNumber();
|
||||||
|
//// QFilter qFilter = new QFilter("billno","=",billNo);
|
||||||
|
//// BusinessDataServiceHelper.load(entityNumber,"",qFilter.toArray());'
|
||||||
|
// DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(messageContext.getStartUserId(), "bos_user");
|
||||||
|
// System.out.println("startProcessInstance");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void createToDo(MessageContext messageContext, ToDoInfo toDoInfo) {
|
public void createToDo(MessageContext messageContext, ToDoInfo toDoInfo) {
|
||||||
System.out.println("createToDo");
|
System.out.println("createToDo");
|
||||||
|
|
Loading…
Reference in New Issue