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

org.drools.xml.ProcessBuildData Maven / Gradle / Ivy

There is a newer version: 10.0.0
Show newest version
/**
 * 
 */
package org.drools.xml;

import java.util.HashMap;
import java.util.Map;

import org.drools.definition.process.Process;
import org.drools.workflow.core.Node;

public class ProcessBuildData {
    
    private Process process;
    private Map nodes = new HashMap();               
    
    public Process getProcess() {
        return process;
    }
    
    public void setProcess(Process process) {
        this.process = process;
    }
    
    public Map getNodes() {
        return nodes;
    }
    public boolean addNode(Node node) {
        return( this.nodes.put( node.getId(), node ) != null );
    }               
    
    public Node getNode(Long id) {
        return this.nodes.get( id );
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy