package processing;

import com.bea.jpd.ProcessDefinition;

import com.bea.jpd.JpdContext;

import controls.ApplicationFile;

@com.bea.wli.jpd.Process(process = "<process name=\"CreateApplicationFile\">"
		+ "  <clientRequest name=\"Client Request with Return\" method=\"createApplicationFile\" returnMethod=\"clientReturn\">"
		+ "    <controlSend name=\"createApplicationFile\" method=\"applicationFileCreateApplicationFile\"/>"
		+ "  </clientRequest>" + "</process>")
public class CreateApplicationFile implements ProcessDefinition {

	public org.openuri.temp.exampleApp.application.InternalApplicationDocument application;

	public java.lang.String number;

	@com.bea.wli.jpd.Context
	JpdContext context;

	@org.apache.beehive.controls.api.bean.Control
	private ApplicationFile applicationFile;

	static final long serialVersionUID = 1;

	public java.lang.String clientReturn() {
		// #START: CODE GENERATED - PROTECTED SECTION - you can safely add code
		// above this comment in this method. #//
		// return
		return number;
		// #END : CODE GENERATED - PROTECTED SECTION - you can safely add code
		// below this comment in this method. #//
	}

	public void applicationFileCreateApplicationFile() throws Exception {
		// #START: CODE GENERATED - PROTECTED SECTION - you can safely add code
		// above this comment in this method. #//
		// input transform
		// method call
		applicationFile.createApplicationFile(this.number, this.application);
		// output transform
		// output assignments
		// #END : CODE GENERATED - PROTECTED SECTION - you can safely add code
		// below this comment in this method. #//
	}

	public void createApplicationFile(
			java.lang.String caseNumber,
			org.openuri.temp.exampleApp.application.InternalApplicationDocument application) {
		// #START: CODE GENERATED - PROTECTED SECTION - you can safely add code
		// above this comment in this method. #//
		// input transform
		// parameter assignment
		this.number = caseNumber;
		this.application = application;
		// #END : CODE GENERATED - PROTECTED SECTION - you can safely add code
		// below this comment in this method. #//
	}
}
