summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorEddy Hautot <eh552t@intl.att.com>2018-03-02 10:39:57 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-02 10:39:57 +0000
commitb79ce61729c0422ab9d3909439538b000157f721 (patch)
tree90f53d7376fc957d99801da9d47f9bb958a29fa4 /src/main
parentf9121f131d1ee833eef18789a7c6f459efd788d4 (diff)
parent4af9896f7e0f54ba9c7c95ee2366a7fb14ef8c42 (diff)
Merge "Fix issue with bmpnText"
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/clamp/clds/service/CldsService.java21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/main/java/org/onap/clamp/clds/service/CldsService.java b/src/main/java/org/onap/clamp/clds/service/CldsService.java
index 02b4d5f45..a9b1b771a 100644
--- a/src/main/java/org/onap/clamp/clds/service/CldsService.java
+++ b/src/main/java/org/onap/clamp/clds/service/CldsService.java
@@ -34,9 +34,7 @@ import java.io.InputStream;
import java.security.GeneralSecurityException;
import java.util.ArrayList;
import java.util.Date;
-import java.util.HashMap;
import java.util.List;
-import java.util.Map;
import java.util.Properties;
import java.util.UUID;
import java.util.concurrent.TimeUnit;
@@ -348,6 +346,9 @@ public class CldsService extends SecureServiceBase {
if (template != null) {
cldsModel.setTemplateId(template.getId());
cldsModel.setDocText(template.getPropText());
+ // This is to provide the Bpmn XML when Template part in UI is
+ // disabled
+ cldsModel.setBpmnText(template.getBpmnText());
}
}
cldsModel.save(cldsDao, getUserId());
@@ -428,6 +429,9 @@ public class CldsService extends SecureServiceBase {
if (template != null) {
model.setTemplateId(template.getId());
model.setDocText(template.getPropText());
+ // This is to provide the Bpmn XML when Template part in UI is
+ // disabled
+ model.setBpmnText(template.getBpmnText());
}
}
// save model to db
@@ -462,21 +466,8 @@ public class CldsService extends SecureServiceBase {
logger.info("PUT isInsertTestEvent={}", isInsertTestEvent);
// determine if requested action is permitted
model.validateAction(actionCd);
- // input variables for Camel process
- Map<String, Object> variables = new HashMap<>();
- variables.put("actionCd", actionCd);
- variables.put("modelProp", prop.getBytes());
- variables.put("modelBpmnProp", bpmnJson);
- variables.put("modelName", modelName);
- variables.put("controlName", controlName);
- variables.put("docText", docText.getBytes());
- variables.put("isTest", isTest);
- variables.put("userid", userId);
- variables.put("isInsertTestEvent", isInsertTestEvent);
logger.info("modelProp - " + prop);
logger.info("docText - " + docText);
- // ModelProperties modelProperties = new ModelProperties(modelName,
- // controlName, actionCd, isTest, modelBpmnProp, modelProp);
try {
String result = camelProxy.submit(actionCd, prop, bpmnJson, modelName, controlName, docText, isTest, userId,
isInsertTestEvent);