|
|
@@ -329,12 +329,25 @@ public class BpmClientFlowStartAction extends RequestAbs {
|
|
|
TacheModel tacheModel = (TacheModel) nextTacheInstance.get("tacheModel");
|
|
|
List<SystemGroupUser> users = (List<SystemGroupUser>) nextTacheInstance.get("users");
|
|
|
String nextTmodelId = tacheModel.getTmodelId();
|
|
|
- for (SystemGroupUser user : users) {
|
|
|
+ String isCheck = nextTacheInstance.get("isCheck").toString();
|
|
|
+ if (isCheck.equals("true")) {
|
|
|
+ if(users != null && users.size() >0){
|
|
|
+ for (SystemGroupUser user : users) {
|
|
|
+ TacheInstance tache = new TacheInstance();
|
|
|
+ tache.getTmodelId().setTmodelId(nextTmodelId);
|
|
|
+ tache.getGroupxuserid().setId(user.getId());
|
|
|
+ nextTinstanceList.add(tache);
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ TacheInstance tache = new TacheInstance();
|
|
|
+ tache.getTmodelId().setTmodelId(nextTmodelId);
|
|
|
+ nextTinstanceList.add(tache);
|
|
|
+ }
|
|
|
+ }else {
|
|
|
TacheInstance tache = new TacheInstance();
|
|
|
tache.getTmodelId().setTmodelId(nextTmodelId);
|
|
|
- tache.getGroupxuserid().setId(user.getId());
|
|
|
nextTinstanceList.add(tache);
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|