package org.jbpm.process;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.drools.definition.KnowledgePackage;
import org.drools.definition.process.Process;
import org.drools.definition.rule.Rule;

public class ProcessPackage implements KnowledgePackage {

	private String name;
	private List<Process> processes = new ArrayList<Process>();
	
	public ProcessPackage(String name) {
		this.name = name;
	}
	
	public String getName() {
		return name;
	}

	public Collection<Rule> getRules() {
		return null;
	}

	public void addProcess(Process process) {
		processes.add(process);
	}
	
	public Collection<Process> getProcesses() {
		return processes;
	}

}

@@ -228,19 +228,146 @@
 on.rule.
-Rul
+Global;%0Aimport org.drools.definition.rule.Query;%0Aimport org.drools.definition.rule.Rule;%0Aimport org.drools.definition.type.FactTyp
 e;%0A%0Apubl
@@ -815,10 +815,319 @@
 es;%0A%09%7D%0A%0A
+    public Collection%3CFactType%3E getFactTypes() %7B%0A        return null;%0A    %7D%0A%0A    public Collection%3CQuery%3E getQueries() %7B%0A        return null;%0A    %7D%0A%0A    public Collection%3CString%3E getFunctionNames() %7B%0A        return null;%0A    %7D%0A%0A    public Collection%3CGlobal%3E getGlobalVariables() %7B%0A        return null;%0A    %7D%0A%0A
 %7D%0A

add (empty) implementation for new methods in KnowledgePackage interface