/**
 * SetContentPathVariable.java
 * Created on Jun 26, 2008
 * (C) Copyright TANDBERG Television Ltd.
 */
package com.tandbergtv.watchpoint.pmm.action.asset.distribution.ftp;

import org.jbpm.graph.def.ActionHandler;
import org.jbpm.graph.exe.ExecutionContext;

/**
 * This class sets the variable 'pathVariableName' in the context for package
 * file path retrieval. 
 * Wish there was a way to set constants in the template. In that
 * case would not need this silly action class.
 * 
 * @author spuranik
 */
public class SetContentPathVariable implements ActionHandler {

	private static final long serialVersionUID = 1L;
	private static final String PATH_VAR_NAME_PROPERTY = "pathVariableName";
	private static final String PATH_VAR_NAME= "tarFilepath";
	
	/* (non-Javadoc)
	 * @see org.jbpm.graph.def.ActionHandler#execute(org.jbpm.graph.exe.ExecutionContext)
	 */
	public void execute(ExecutionContext context) throws Exception {
		context.setVariable(PATH_VAR_NAME_PROPERTY, PATH_VAR_NAME);
	}

}
