1 package nl.hippo.cms.workflows.multiplesitessite; 2 3 import com.opensymphony.module.propertyset.PropertySet; 4 import com.opensymphony.workflow.WorkflowException; 5 import java.util.Map ; 6 import nl.hippo.cms.workflows.shared.FunctionProviderComponent; 7 8 public class StoreDocumentLocationFunction extends FunctionProviderComponent 9 { 10 11 public StoreDocumentLocationFunction() 12 { 13 super(); 14 } 15 16 public void executeImpl(Map transientVars, Map args, PropertySet ps) throws WorkflowException 17 { 18 String location = (String ) transientVars.get("documentLocation"); 19 ps.setString(MultipleSitesSiteConstants.LOCATION_KEY, location); 20 } 21 22 } 23 | Popular Tags |