Examples of HistoryProcessInstanceImpl


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

  public void process() {
    DbSession dbSession = Environment.getFromCurrent(DbSession.class);
   
    dbSession.save(variable);

    HistoryProcessInstanceImpl historyProcessInstance = null;
    ExecutionImpl processInstance = variable.getProcessInstance();
    if (processInstance!=null) {
      long processInstanceDbid = processInstance.getDbid();
      historyProcessInstance = (HistoryProcessInstanceImpl)
          dbSession.get(HistoryProcessInstanceImpl.class, processInstanceDbid);
View Full Code Here

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

  private static final long serialVersionUID = 1L;

  public void process() {
    Session session = Environment.getFromCurrent(Session.class);
    HistoryProcessInstanceImpl historyProcessInstanceImpl = (HistoryProcessInstanceImpl)
        session.load(HistoryProcessInstanceImpl.class, execution.getDbid());
    historyProcessInstanceImpl.setEndTime(Clock.getCurrentTime());
    historyProcessInstanceImpl.setState(execution.getState());
    historyProcessInstanceImpl.setEndActivityName(execution.getActivityName());
  }
View Full Code Here

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

public class ProcessInstanceCreate extends HistoryEvent implements Serializable {

  private static final long serialVersionUID = 1L;
 
  public void process() {
    HistoryProcessInstance historyProcessInstanceImpl = new HistoryProcessInstanceImpl(execution);
    Session session = Environment.getFromCurrent(Session.class);
    session.save(historyProcessInstanceImpl);
  }
View Full Code Here

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

    // if history should be deleted
    if ( deleteHistory
         && (isHistoryEnabled())
       ) {
      // try to get the history
      HistoryProcessInstanceImpl historyProcessInstance = findHistoryProcessInstanceById(processInstanceId);
 
      // if there is a history process instance in the db
      if (historyProcessInstance!=null) {
        if (log.isDebugEnabled()) {
          log.debug("deleting history process instance "+processInstanceId);
View Full Code Here

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

  private static final long serialVersionUID = 1L;

  public void process() {
    Session session = EnvironmentImpl.getFromCurrent(Session.class);
    HistoryProcessInstanceImpl historyProcessInstanceImpl = (HistoryProcessInstanceImpl)
        session.load(HistoryProcessInstanceImpl.class, execution.getDbid());
    historyProcessInstanceImpl.setEndTime(Clock.getCurrentTime());
    historyProcessInstanceImpl.setState(execution.getState());
    historyProcessInstanceImpl.setEndActivityName(execution.getActivityName());
  }
View Full Code Here

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

    // if history should be deleted
    if ( deleteHistory
         && (isHistoryEnabled())
       ) {
      // try to get the history
      HistoryProcessInstanceImpl historyProcessInstance = findHistoryProcessInstanceById(processInstanceId);
 
      // if there is a history process instance in the db
      if (historyProcessInstance!=null) {
        if (log.isDebugEnabled()) {
          log.debug("deleting history process instance "+processInstanceId);
View Full Code Here

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

public class ProcessInstanceCreate extends HistoryEvent implements Serializable {

  private static final long serialVersionUID = 1L;
 
  public void process() {
    HistoryProcessInstance historyProcessInstanceImpl = new HistoryProcessInstanceImpl(execution);
    Session session = EnvironmentImpl.getFromCurrent(Session.class);
    session.save(historyProcessInstanceImpl);
  }
View Full Code Here

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

   
    if (processDefinition == null || processInstance == null || !(processInstance instanceof ExecutionImpl)) return;
   
    DbSession dbSession = EnvironmentImpl.getFromCurrent(DbSession.class);

    HistoryProcessInstanceImpl historyProcessInstance = null;
    long processInstanceDbid = ((ExecutionImpl)processInstance).getDbid();
    historyProcessInstance = (HistoryProcessInstanceImpl)dbSession.get(HistoryProcessInstanceImpl.class, processInstanceDbid);
    if (historyProcessInstance == null) return;
   
    String oldVersion = historyProcessInstance.getProcessDefinitionId();
    String newVersion = processDefinition.getId();
   
    historyProcessInstance.setProcessDefinitionId(newVersion);
    HistoryProcessInstanceMigrationImpl historyProcessInstanceMigration =
        new HistoryProcessInstanceMigrationImpl(oldVersion, newVersion);
    historyProcessInstance.addDetail(historyProcessInstanceMigration);
   
   
    dbSession.save(historyProcessInstanceMigration);
  }
View Full Code Here

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

  public void process() {
    DbSession dbSession = EnvironmentImpl.getFromCurrent(DbSession.class);
   
    dbSession.save(variable);

    HistoryProcessInstanceImpl historyProcessInstance = null;
    ExecutionImpl processInstance = variable.getProcessInstance();
    if (processInstance!=null) {
      long processInstanceDbid = processInstance.getDbid();
      historyProcessInstance = (HistoryProcessInstanceImpl)
          dbSession.get(HistoryProcessInstanceImpl.class, processInstanceDbid);
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.