View Javadoc
1   /*
2    * Copyright (C) 2007-2012 Argeo GmbH
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *         http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.argeo.slc.core.execution.generator;
17  
18  import java.util.Map;
19  
20  /**
21   * Storage class for information required to call a flow 
22   * of the Spring execution context: 
23   * bean name of the flow,
24   * variables to add to the Execution Context before the call 
25   * and variables (context values) to add to a Map 
26   * potentially referenced by the called flow 
27   */
28  public class RunnableCall {
29  	
30  	/**
31  	 * Bean name of the flow to call
32  	 */
33  	private String beanName;
34  	
35  	/**
36  	 * Variables to add to the execution context before the call
37  	 */
38  	private Map<String, Object> executionVariables;
39  	
40  	/**
41  	 * Variables to add to the Map potentially referenced by
42  	 * the called flow
43  	 */
44  	private Map<String, Object> contextValues;
45  
46  	public String getBeanName() {
47  		return beanName;
48  	}
49  
50  	public void setBeanName(String beanName) {
51  		this.beanName = beanName;
52  	}
53  
54  	public Map<String, Object> getExecutionVariables() {
55  		return executionVariables;
56  	}
57  
58  	public void setExecutionVariables(Map<String, Object> executionVariables) {
59  		this.executionVariables = executionVariables;
60  	}
61  
62  	public Map<String, Object> getContextValues() {
63  		return contextValues;
64  	}
65  
66  	public void setContextValues(Map<String, Object> contextValues) {
67  		this.contextValues = contextValues;
68  	}
69  
70  }