aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn/MSOCommonBPMN/src/main/groovy
diff options
context:
space:
mode:
authorElena Kuleshov <ek1439@att.com>2018-03-28 11:25:31 -0400
committerRob Daugherty <rd472p@att.com>2018-03-28 13:56:23 -0400
commit19efd68c8f8babdaf8a2eb7f78b4522940339da2 (patch)
tree3dccdd401467d51e2c1eb182b9bec07b18fdc84c /bpmn/MSOCommonBPMN/src/main/groovy
parent35a1423d200962910d508a8f9a0daba9d6c668d2 (diff)
ControllerType update for CM flows
Change-Id: I42c60ba45baaf29fa5fe54a8bb7ffc0aab5622c7 Signed-off-by: Elena Kuleshov <ek1439@att.com> Issue-ID: SO-526
Diffstat (limited to 'bpmn/MSOCommonBPMN/src/main/groovy')
-rw-r--r--bpmn/MSOCommonBPMN/src/main/groovy/org/openecomp/mso/bpmn/common/scripts/AppCClient.groovy7
1 files changed, 5 insertions, 2 deletions
diff --git a/bpmn/MSOCommonBPMN/src/main/groovy/org/openecomp/mso/bpmn/common/scripts/AppCClient.groovy b/bpmn/MSOCommonBPMN/src/main/groovy/org/openecomp/mso/bpmn/common/scripts/AppCClient.groovy
index 8df6af7adb..ca7eef8aa1 100644
--- a/bpmn/MSOCommonBPMN/src/main/groovy/org/openecomp/mso/bpmn/common/scripts/AppCClient.groovy
+++ b/bpmn/MSOCommonBPMN/src/main/groovy/org/openecomp/mso/bpmn/common/scripts/AppCClient.groovy
@@ -27,6 +27,8 @@ import java.util.UUID;
* @param - vnfId
* @param - action
* @param - payload
+ * @param - vnfName
+ * @param - controllerType
*
* Outputs:
* @param - errorcode
@@ -72,7 +74,8 @@ public class AppCClient extends AbstractServiceTaskProcessor{
String vnfHostIpAddress = execution.getVariable('vnfHostIpAddress')
String vmIdList = execution.getVariable("vmIdList")
String identityUrl = execution.getVariable("identityUrl")
- HashMap<String, String> payloadInfo = new HashMap<String, String>();
+ String controllerType = execution.getVariable("controllerType")
+ HashMap<String, String> payloadInfo = new HashMap<String, String>();
payloadInfo.put("vnfName", vnfName)
payloadInfo.put("aicIdentity", aicIdentity)
payloadInfo.put("vnfHostIpAddress", vnfHostIpAddress)
@@ -96,7 +99,7 @@ public class AppCClient extends AbstractServiceTaskProcessor{
ApplicationControllerAction client = new ApplicationControllerAction()
utils.log("DEBUG", "Created Application Controller Action Object", isDebugLogEnabled)
//PayloadInfo contains extra information that adds on to payload before making request to appc
- client.runAppCCommand(action, msoRequestId, vnfId, payload, payloadInfo)
+ client.runAppCCommand(action, msoRequestId, vnfId, payload, payloadInfo, controllerType)
utils.log("DEBUG", "ran through the main method for Application Contoller", isDebugLogEnabled)
appcCode = client.getErrorCode()
appcMessage = client.getErrorMessage()