Examples of execute()


Examples of org.jbpm.process.instance.impl.AssignmentAction.execute()

    private void handleAssignment(Assignment assignment) {
      AssignmentAction action = (AssignmentAction) assignment.getMetaData("Action");
    try {
        ProcessContext context = new ProcessContext(getProcessInstance().getKnowledgeRuntime());
        context.setNodeInstance(this);
          action.execute(getWorkItem(), context);       
    } catch (Exception e) {
        throw new RuntimeException("unable to execute Assignment", e);
    }
    }
View Full Code Here

Examples of org.jbpm.pvm.Activity.execute()

            Activity activity = eventListenerReference.get();
           
            log.finest("executing "+activity+" for "+event);
            try {
              this.userCodeType = UserCodeType.EVENT_ACTIVITY;
              activity.execute(this);
            } catch (Exception e) {
              log.finest("exception during action: "+e);
              handleException((ObservableElementImpl) observableElement, event, eventListenerReference, e, "couldn't run action "+activity);
            } finally {
              this.userCodeType = null;
View Full Code Here

Examples of org.jbpm.pvm.internal.cmd.CommandService.execute()

    if (userId!=null) {
      environment.setUserId(userId);
    }
    try {
      CommandService commandService = environment.get(CommandService.class);
      commandService.execute(command);
    } finally {
      if (userId!=null) {
        environment.setUserId(null);
      }
    }
View Full Code Here

Examples of org.jbpm.pvm.internal.cmd.ExecuteJobCmd.execute()

        );
        query.setLong("executionDbid", executionDbid);
        query.setMaxResults(1);
        Long messageDbid = (Long) query.uniqueResult();
        ExecuteJobCmd executeJobCommand = new ExecuteJobCmd(messageDbid);
        Job job = executeJobCommand.execute(environment);
        return job.getExecution();
      }
    });
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.identity.cmd.FindGroupsCmd.execute()

  public List<String> execute(Environment environment) throws Exception {
    List<String> groupIds = new ArrayList<String>();
   
    FindGroupsCmd findGroupsCmd = new FindGroupsCmd(userId);
    List<Group> groups = findGroupsCmd.execute(environment);
    for (Group group: groups) {
      groupIds.add(group.getId());
    }
   
    return groupIds;
View Full Code Here

Examples of org.jbpm.pvm.internal.job.TimerImpl.execute()

    TimerImpl timerImpl = dbSession.get(TimerImpl.class, timerDbid);
    if (timerImpl == null) {
      log.debug("timer not found: " + timerDbid);
      return null; // i.e. delete this timer
    }
    return timerImpl.execute(environment) ? null : timerImpl.getDueDate();
  }

  public String toString() {
    return ExecuteTimerCmd.class.getSimpleName() + '(' + timerDbid + ')';
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.model.ExecutionImpl.execute()

      }
     
      for (Activity startActivity: startActivities) {
        ExecutionImpl concurrentExecution = concurrentRoot.createExecution();
        concurrentExecution.setState(Execution.STATE_ACTIVE_CONCURRENT);
        concurrentExecution.execute(startActivity);
      }
    }
  }

  private List<Activity> findStartActivities(Activity activity) {
View Full Code Here

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

Examples of org.jbpm.pvm.internal.xml.Parse.execute()

        byte[] bytes = deployment.getBytes(resourceName);
        InputStream inputStream = new ByteArrayInputStream(bytes);
        Parse parse = jpdlParser.createParse();
        parse.setProblems(deployment.getProblems());
        parse.setInputStream(inputStream);
        parse.execute();
        JpdlProcessDefinition processDefinition = (JpdlProcessDefinition) parse.getDocumentObject();
        if ((processDefinition != null) && (processDefinition.getName() != null)) {
          String processDefinitionName = processDefinition.getName();
         
          processDefinition.setSuspended(deployment.isSuspended());
View Full Code Here

Examples of org.jbpm.scheduler.exe.Timer.execute()

        // if this timer is due
        if (timer.isDue()) {
          log.debug("executing timer '"+timer+"'");
           
          // execute
          timer.execute();
         
          // save the process instance
          jbpmContext.save(timer.getProcessInstance());
           
          // notify the listeners (e.g. the scheduler servlet)
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.