diff options
author | 2017-07-31 08:47:35 +0000 | |
---|---|---|
committer | 2017-07-31 15:51:10 -0400 | |
commit | 073cc188efe9abb4c010cf674e34e2cf46ef1c52 (patch) | |
tree | 155c23fbdf3a838ecb5f4183fc3bb6b09aac41eb /PolicyEngineClient/src/main/java/org/openecomp/policyEngine/ImportBRMSTemplate.java | |
parent | 4ca818fdfb9b807562166800a086b413593d6894 (diff) |
[POLICY-73] replace openecomp for policy-engine
Change-Id: I54072f6bcd388c0e05562614ee89b4ae7ad67004
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'PolicyEngineClient/src/main/java/org/openecomp/policyEngine/ImportBRMSTemplate.java')
-rw-r--r-- | PolicyEngineClient/src/main/java/org/openecomp/policyEngine/ImportBRMSTemplate.java | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/PolicyEngineClient/src/main/java/org/openecomp/policyEngine/ImportBRMSTemplate.java b/PolicyEngineClient/src/main/java/org/openecomp/policyEngine/ImportBRMSTemplate.java deleted file mode 100644 index bb34c4985..000000000 --- a/PolicyEngineClient/src/main/java/org/openecomp/policyEngine/ImportBRMSTemplate.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.openecomp.policyEngine; - -import java.io.File; -import java.util.UUID; - -import org.openecomp.policy.api.ImportParameters; -import org.openecomp.policy.api.PolicyChangeResponse; -import org.openecomp.policy.api.PolicyEngine; -import org.openecomp.policy.api.ImportParameters.IMPORT_TYPE; - -public class ImportBRMSTemplate { - public static void main(String[] args) { - try{ - PolicyEngine policyEngine = new PolicyEngine("config.properties"); - ImportParameters importParameters = new ImportParameters(); - importParameters.setFilePath("testResources"+File.separator+"test.drl"); - importParameters.setServiceName("testTemplate"); - importParameters.setRequestID(UUID.randomUUID()); - importParameters.setServiceType(IMPORT_TYPE.BRMSPARAM); - - // API method to create Policy or update policy - PolicyChangeResponse response = null; - response = policyEngine.policyEngineImport(importParameters); - System.out.println(response.getResponseMessage()); - - } catch (Exception e) { - System.err.println(e.getMessage()); - } - } -} |