Package org.jbpm.pvm.internal.history.model

Examples of org.jbpm.pvm.internal.history.model.HistoryTaskInstanceImpl


  }

  public void process() {
    Session session = Environment.getFromCurrent(Session.class);
    Long historyActivityInstanceDbId = execution.getHistoryActivityInstanceDbid();
    HistoryTaskInstanceImpl historyTaskInstance = (HistoryTaskInstanceImpl)
        session.load(HistoryTaskInstanceImpl.class, historyActivityInstanceDbId);
    historyTaskInstance.setEndTime(Clock.getCurrentTime());
    historyTaskInstance.setTransitionName(outcome);

    HistoryTaskImpl historyTask = historyTaskInstance.getHistoryTask();
    historyTask.setOutcome(outcome);
    historyTask.setEndTime(Clock.getCurrentTime());
    historyTask.setState(HistoryTask.STATE_COMPLETED);

    session.update(historyTaskInstance);
View Full Code Here


   
    HistoryTaskImpl historyTask = new HistoryTaskImpl(task);
    historyTask.setExecutionId(execution.getId());
   
    HistoryActivityInstanceImpl historyActivityInstance =
        new HistoryTaskInstanceImpl(historyProcessInstance, execution, historyTask);
   
    String activityType = execution.getActivity().getType();
    historyActivityInstance.setType(activityType);
   
    dbSession.save(historyActivityInstance);
   
    execution.setHistoryActivityInstanceDbid(historyActivityInstance.getDbid());
  }
View Full Code Here

      
    /* Every row is one queue element with jbpm task as first column and process instance as second */
       for(Object[] resultRow: queueResults)
       {
        
         HistoryTaskInstanceImpl taskInstance = (HistoryTaskInstanceImpl)resultRow[0];
         ProcessInstance processInstance = (ProcessInstance)resultRow[1];
        
         /* Map process and jbpm task to system's bpm task */
         BpmTask task = taskFactory.create(taskInstance, processInstance);
        
View Full Code Here

  }

  public void process() {
    Session session = EnvironmentImpl.getFromCurrent(Session.class);
    Long historyActivityInstanceDbId = execution.getHistoryActivityInstanceDbid();
    HistoryTaskInstanceImpl historyTaskInstance = (HistoryTaskInstanceImpl)
        session.load(HistoryTaskInstanceImpl.class, historyActivityInstanceDbId);
    historyTaskInstance.setEndTime(Clock.getCurrentTime());
    historyTaskInstance.setTransitionName(outcome);

    HistoryTaskImpl historyTask = historyTaskInstance.getHistoryTask();
    historyTask.setOutcome(outcome);
    historyTask.setEndTime(Clock.getCurrentTime());
    historyTask.setState(HistoryTask.STATE_COMPLETED);

    session.update(historyTaskInstance);
View Full Code Here

   
    HistoryTaskImpl historyTask = new HistoryTaskImpl(task);
    historyTask.setExecutionId(execution.getId());
   
    HistoryActivityInstanceImpl historyActivityInstance =
        new HistoryTaskInstanceImpl(historyProcessInstance, execution, historyTask);
   
    String activityType = execution.getActivity().getType();
    historyActivityInstance.setType(activityType);
   
    dbSession.save(historyActivityInstance);
   
    execution.setHistoryActivityInstanceDbid(historyActivityInstance.getDbid());
  }
View Full Code Here

TOP

Related Classes of org.jbpm.pvm.internal.history.model.HistoryTaskInstanceImpl

Copyright © 2018 www.massapicom. 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.