Package org.jbpm.pvm.internal.query

Examples of org.jbpm.pvm.internal.query.AbstractQuery.execute()


               hql.append(" as task  ");
               hql.append("order by task.id DESC");
               return hql.toString();
             }
           };
           return (List<Task>) q.execute(environment);
         }
       };
       List<Task> tasks = getProcessEngine(ctx).execute(cmd);
       return findProcessInstancesForTasks(tasks, ctx);
     }
View Full Code Here


               .append(" where participation.task = task ")
               .append(" and task.executionId = :executionId ");
               return hql.toString();
             }
           };
           return (List<Task>) q.execute(environment);
         }
       };
       List<Task> tasks = getProcessEngine(ctx).execute(cmd);
       return findProcessInstancesForTasks(tasks, ctx);
     }
View Full Code Here

                                   .append(" and act.executionId = :internalIds ")
                                   .append(" order by act.endTime asc ");
                           return hql.toString();
                       }
                   };
                   return (List<HistoryActivityInstance>) q.execute(environment);
               }
           };

           List<HistoryActivityInstance> pastTasks = getProcessEngine(ctx).execute(cmd);
           if (!pastTasks.isEmpty()) {
View Full Code Here

               .append(" and proc.processInstanceId = :internalIds ")
               .append(" order by act.endTime desc ");
               return hql.toString();
             }
           };
           return (List<HistoryActivityInstance>) q.execute(environment);
         }
       };

       List<HistoryActivityInstance> tasks = getProcessEngine(ctx).execute(cmd);
           if (tasks.isEmpty()) {
View Full Code Here

                            hql.append("and task.id = :taskId");
                        }
                        return hql.toString();
                    }
                };
                return (List<Task>) q.execute(environment);
            }
        };
        List<Task> taskList = processEngine.execute(cmd);
        if (taskList.isEmpty()) {
            loger.warning("No tasks found in queue: " + pq.getName());
View Full Code Here

                               hql.append("and task.name in (:taskNames) ");
                           }
                           return hql.toString();
                       }
                   };
                   return (List<Task>) q.execute(environment);
               }
           };
           List<Task> tasks = getProcessEngine(ctx).execute(cmd);
           return collectTasks(tasks, pi, ctx);
       }
View Full Code Here

               hql.append("where executionId in (:executionId) ");
               hql.append("and task.assignee in (:assignee) ");
               return hql.toString();
             }
           };
           return (List<Task>) q.execute(environment);
         }
       };
       List<Task> tasks = getProcessEngine(ctx).execute(cmd);
      
       long duration = System.currentTimeMillis() - start;
View Full Code Here

               hql.append("where executionId in (:executionId) ");
               hql.append("and task.assignee in (:assignee) ");
               return hql.toString();
             }
           };
           return (List<Task>) q.execute(environment);
         }
       };
       List<Task> tasks = getProcessEngine(ctx).execute(cmd);
       return collectTasks(tasks, processInstance, ctx);
     }
View Full Code Here

                            return hql.toString();

                        }
                    };
                    return (List<User>) q.execute(environment);
                }
            };
            List<User> users = getProcessEngine(ProcessToolContext.Util.getThreadProcessToolContext()).execute(cmd);
            List<String> res = new ArrayList<String>();
            for (User u : users) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.