*/
public List<IWorkItem> assignToActors(List<String> ids) throws EngineException, KernelException {
//task应该有一个标志(asignToEveryone),表明asign的规则 (?)
List<IWorkItem> workItemList = new ArrayList<IWorkItem>();
for (int i = 0; ids != null && i < ids.size(); i++) {
ITaskInstanceManager taskInstanceMgr = this.rtCtx.getTaskInstanceManager();
WorkItem wi = taskInstanceMgr.createWorkItem(this.workflowSession,this.getAliveProcessInstance(),this, ids.get(i));
wi.setCurrentWorkflowSession(workflowSession);
workItemList.add(wi);
}
return workItemList;
}