String relativePath, ExecutionFlowDescriptor efd)
throws RepositoryException {
Node flowNode = null;
String relativePath, ExecutionFlowDescriptor efd)
throws RepositoryException {
Node flowNode = null;
// create intermediary paths
Node currNode = moduleNode;
while (names.hasNext()) {
// create intermediary paths
Node currNode = moduleNode;
while (names.hasNext()) {
flowNode.setProperty(Property.JCR_TITLE, endName);
if (efd.getDescription() != null
&& !efd.getDescription().trim().equals("")) {
flowNode.setProperty(Property.JCR_TITLE, endName);
if (efd.getDescription() != null
&& !efd.getDescription().trim().equals("")) {
for (String attr : efd.getValues().keySet()) {
ExecutionSpecAttribute esa = executionSpec.getAttributes()
.get(attr);
if (esa instanceof PrimitiveSpecAttribute) {
PrimitiveSpecAttribute psa = (PrimitiveSpecAttribute) esa;
for (String attr : efd.getValues().keySet()) {
ExecutionSpecAttribute esa = executionSpec.getAttributes()
.get(attr);
if (esa instanceof PrimitiveSpecAttribute) {
PrimitiveSpecAttribute psa = (PrimitiveSpecAttribute) esa;
valueNode.setProperty(SLC_TYPE, psa.getType());
SlcJcrUtils.setPrimitiveAsProperty(valueNode, SLC_VALUE,
(PrimitiveValue) efd.getValues().get(attr));
valueNode.setProperty(SLC_TYPE, psa.getType());
SlcJcrUtils.setPrimitiveAsProperty(valueNode, SLC_VALUE,
(PrimitiveValue) efd.getValues().get(attr));