module workflow.MyDslGenerator

import org.eclipse.emf.mwe.utils.*

var targetDir = "src-gen"
var fileEncoding = "Cp1254"
var modelPath = "src/model"

Workflow {

	component = org.eclipse.xtext.mwe.Reader {
		// lookup all resources on the classpath
		// useJavaClassPath = true

		// or define search scope explicitly
		path = modelPath

		// this class will be generated by the xtext generator 
		register = org.xtext.example.mydsl3.MyDslStandaloneSetup {}
		load = {
			slot = "slot1"
			type = "Plan"
		}
		load = {
			slot = "slot2"
			type = "SemanticWebAgent"
		}
		
		
	}

	component = org.eclipse.xpand2.Generator {
		expand = "templates::Template::main FOREACH {slot1,slot2}.flatten()"
		outlet = {
			path = targetDir
		}
		fileEncoding = fileEncoding
	}
}
