1 /* Copyright (c) 2019 AT&T Intellectual Property. #
\r
3 # Licensed under the Apache License, Version 2.0 (the "License"); #
\r
4 # you may not use this file except in compliance with the License. #
\r
5 # You may obtain a copy of the License at #
\r
7 # http://www.apache.org/licenses/LICENSE-2.0 #
\r
9 # Unless required by applicable law or agreed to in writing, software #
\r
10 # distributed under the License is distributed on an "AS IS" BASIS, #
\r
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
\r
12 # See the License for the specific language governing permissions and #
\r
13 # limitations under the License. #
\r
14 ##############################################################################*/
\r
17 package org.oran.otf.camunda.model;
\r
19 public class ExecutionConstants {
\r
20 public class TestResult {
\r
21 public static final String STARTED = "STARTED";
\r
22 public static final String COMPLETED = "COMPLETED";
\r
23 //remore redundent test results
\r
24 // public static final String FAILURE = "FAILURE";
\r
25 public static final String FAILED = "FAILED";
\r
26 public static final String STOPPED = "STOPPED";
\r
27 public static final String SUCCESS = "SUCCESS";
\r
28 public static final String TERMINATED = "TERMINATED";
\r
29 public static final String UNAUTHORIZED = "UNAUTHORIZED";
\r
30 public static final String DOES_NOT_EXIST = "DOES_NOT_EXIST";
\r
31 public static final String UNKNOWN = "UNKNOWN";
\r
32 // error can be assignned in a workflow. if user uses workflow error reassign to error
\r
33 public static final String ERROR = "ERROR";
\r
34 // workflow error is only used for exceptions and bugs
\r
35 public static final String WORKFLOW_ERROR = "WORKFLOW_ERROR";
\r
36 public static final String OTHER = "OTHER";
\r
39 public class ExecutionVariable {
\r
40 public static final String TEST_EXECUTION = "otf-execution-testExecution";
\r
41 public static final String TEST_EXECUTION_ENCRYPTED = "otf-execution-encrypted";
\r
42 public static final String PFLO_INPUT = "pfloInput";
\r
43 public static final String TEST_DATA = "testData";
\r
44 public static final String TEST_DETAILS = "testDetails";
\r
45 public static final String TEST_RESULT = "testResult";
\r
46 public static final String VTH_INPUT = "vthInput";
\r
47 public static final String TEST_RESULT_MESSAGE = "testResultMessage";
\r
50 public static String [] getAllTestResultStr(){
\r
51 return new String[] {TestResult.STARTED,TestResult.COMPLETED,TestResult.FAILED,
\r
52 TestResult.STOPPED,TestResult.SUCCESS,TestResult.TERMINATED,
\r
53 TestResult.UNAUTHORIZED,TestResult.DOES_NOT_EXIST,TestResult.UNKNOWN,
\r
54 TestResult.ERROR,TestResult.OTHER};
\r