Package org.jbpm.pvm.impl

Examples of org.jbpm.pvm.impl.ExecutionImpl


  }

  // JDBC - object translation
 
  public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException {
    ExecutionImpl execution = createExecution(owner);
    String nodeName = rs.getString(names[0]);
    NodeImpl node = (NodeImpl) execution.getProcessDefinition().getNode(nodeName);
    execution.setNode(node);
    return execution;
  }
View Full Code Here


    execution.setNode(node);
    return execution;
  }

  private ExecutionImpl createExecution(Object owner) {
    ExecutionImpl execution = new ExecutionImpl();
    execution.setProcess(getProcessDefinition(owner));
    return execution;
  }
View Full Code Here

    return processDefinition;
  }

  public void nullSafeSet(PreparedStatement st, Object owner, int index) throws HibernateException, SQLException {
    if (owner!=null) {
      ExecutionImpl execution = (ExecutionImpl) owner;
      String nodeName = execution.getNode().getName();
      log.finest("binding 'execution-state{"+nodeName+"}' to parameter: "+index);
      st.setString(index, nodeName);
    }
  }
View Full Code Here

  public Object deepCopy(Object object) throws HibernateException {
    if (object==null) {
      return null;
    }
   
    ExecutionImpl original = (ExecutionImpl) object;

    NodeImpl node = new NodeImpl();
    node.setName(original.getNode().getName());
   
    ExecutionImpl copy = new ExecutionImpl();
    copy.setNode(node);

    return copy;
  }
View Full Code Here

  }

  public boolean equals(Object arg0, Object arg1) throws HibernateException {
    if ( (arg0==null) || (arg1==null)) return false;
   
    ExecutionImpl execution0 = (ExecutionImpl) arg0;
    ExecutionImpl execution1 = (ExecutionImpl) arg1;
   
    String nodeName0 = execution0.getNode().getName();
    String nodeName1 = execution1.getNode().getName();
   
    return nodeName0.equals(nodeName1);
  }
View Full Code Here

      processDefinition = pvmDbSession.findProcessDefinition(processDefinitionName);
    } else {
      processDefinition = pvmDbSession.get(ProcessDefinitionImpl.class, processDefinitionDbid);
    }
   
    ExecutionImpl execution = (ExecutionImpl) processDefinition.startExecution(key, variables);
   
    pvmDbSession.save(execution);
    return execution;
  }
View Full Code Here

TOP

Related Classes of org.jbpm.pvm.impl.ExecutionImpl

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.