All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jbpm.sim.datasource.ProcessDataSource Maven / Gradle / Ivy

There is a newer version: 3.2.19.ayg
Show newest version
package org.jbpm.sim.datasource;

import org.jbpm.graph.exe.ExecutionContext;

/**
 * A VariableSource implementation generates process variables
 * for simulation runs. The simulation just queries the process variables
 * it needs and create the next one as soon the next process instance
 * is created.
 * 
 * 
 * @author [email protected]
 */
public interface ProcessDataSource {

  /**
   * adds the next generated data of the data source
   * to the process context
   * 
   * @param ctx
   */
  public void addNextData(ExecutionContext ctx);
  
  public void reset();

  /**
   * if false, no more data can be queried from this data source
   * 
   * TODO: It should be possible, that the simulation ends 
   *       when the data source stops sending data 
   */
  public boolean hasNext();
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy