]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/generator/RunnableCall.java
Execution attribute of type ref now supported (break data model)
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / core / execution / generator / RunnableCall.java
1 /*
2 * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
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
17 package org.argeo.slc.core.execution.generator;
18
19 import java.util.Map;
20
21 /**
22 * Storage class for information required to call a flow
23 * of the Spring execution context:
24 * bean name of the flow,
25 * variables to add to the Execution Context before the call
26 * and variables (context values) to add to a Map
27 * potentially referenced by the called flow
28 */
29 public class RunnableCall {
30
31 /**
32 * Bean name of the flow to call
33 */
34 private String beanName;
35
36 /**
37 * Variables to add to the execution context before the call
38 */
39 private Map<String, Object> executionVariables;
40
41 /**
42 * Variables to add to the Map potentially referenced by
43 * the called flow
44 */
45 private Map<String, Object> contextValues;
46
47 public String getBeanName() {
48 return beanName;
49 }
50
51 public void setBeanName(String beanName) {
52 this.beanName = beanName;
53 }
54
55 public Map<String, Object> getExecutionVariables() {
56 return executionVariables;
57 }
58
59 public void setExecutionVariables(Map<String, Object> executionVariables) {
60 this.executionVariables = executionVariables;
61 }
62
63 public Map<String, Object> getContextValues() {
64 return contextValues;
65 }
66
67 public void setContextValues(Map<String, Object> contextValues) {
68 this.contextValues = contextValues;
69 }
70
71 }