Search in sources :

Example 1 with Variable

use of org.alien4cloud.tosca.variable.model.Variable in project alien4cloud by alien4cloud.

the class VariableExpressionService method getScopeVariableExpressionDTO.

private ScopeVariableExpressionDTO getScopeVariableExpressionDTO(String varName, String scopeId, String scopeName, Map<String, Object> variables) {
    ScopeVariableExpressionDTO dto = new ScopeVariableExpressionDTO();
    dto.setScopeId(scopeId);
    dto.setScopeName(scopeName);
    dto.setVariable(new Variable(varName, YamlParserUtil.dump(variables.get(varName))));
    return dto;
}
Also used : Variable(org.alien4cloud.tosca.variable.model.Variable) ScopeVariableExpressionDTO(org.alien4cloud.tosca.variable.ScopeVariableExpressionDTO)

Aggregations

ScopeVariableExpressionDTO (org.alien4cloud.tosca.variable.ScopeVariableExpressionDTO)1 Variable (org.alien4cloud.tosca.variable.model.Variable)1