--- /dev/null
+/* Copyright (c) 2019 AT&T Intellectual Property. #\r
+# #\r
+# Licensed under the Apache License, Version 2.0 (the "License"); #\r
+# you may not use this file except in compliance with the License. #\r
+# You may obtain a copy of the License at #\r
+# #\r
+# http://www.apache.org/licenses/LICENSE-2.0 #\r
+# #\r
+# Unless required by applicable law or agreed to in writing, software #\r
+# distributed under the License is distributed on an "AS IS" BASIS, #\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #\r
+# See the License for the specific language governing permissions and #\r
+# limitations under the License. #\r
+##############################################################################*/\r
+\r
+\r
+package org.oran.otf.camunda.model;\r
+\r
+public class ExecutionConstants {\r
+ public class TestResult {\r
+ public static final String STARTED = "STARTED";\r
+ public static final String COMPLETED = "COMPLETED";\r
+ //remore redundent test results\r
+// public static final String FAILURE = "FAILURE";\r
+ public static final String FAILED = "FAILED";\r
+ public static final String STOPPED = "STOPPED";\r
+ public static final String SUCCESS = "SUCCESS";\r
+ public static final String TERMINATED = "TERMINATED";\r
+ public static final String UNAUTHORIZED = "UNAUTHORIZED";\r
+ public static final String DOES_NOT_EXIST = "DOES_NOT_EXIST";\r
+ public static final String UNKNOWN = "UNKNOWN";\r
+ // error can be assignned in a workflow. if user uses workflow error reassign to error\r
+ public static final String ERROR = "ERROR";\r
+ // workflow error is only used for exceptions and bugs\r
+ public static final String WORKFLOW_ERROR = "WORKFLOW_ERROR";\r
+ public static final String OTHER = "OTHER";\r
+ }\r
+\r
+ public class ExecutionVariable {\r
+ public static final String TEST_EXECUTION = "otf-execution-testExecution";\r
+ public static final String TEST_EXECUTION_ENCRYPTED = "otf-execution-encrypted";\r
+ public static final String PFLO_INPUT = "pfloInput";\r
+ public static final String TEST_DATA = "testData";\r
+ public static final String TEST_DETAILS = "testDetails";\r
+ public static final String TEST_RESULT = "testResult";\r
+ public static final String VTH_INPUT = "vthInput";\r
+ public static final String TEST_RESULT_MESSAGE = "testResultMessage";\r
+ }\r
+\r
+ public static String [] getAllTestResultStr(){\r
+ return new String[] {TestResult.STARTED,TestResult.COMPLETED,TestResult.FAILED,\r
+ TestResult.STOPPED,TestResult.SUCCESS,TestResult.TERMINATED,\r
+ TestResult.UNAUTHORIZED,TestResult.DOES_NOT_EXIST,TestResult.UNKNOWN,\r
+ TestResult.ERROR,TestResult.OTHER};\r
+ }\r
+}\r