/root> #-------------------------------------------------------------------------------
/root> # ============LICENSE_START=======================================================
/root> #  Copyright (C) 2023 Nordix Foundation. All rights reserved.
/root> # ================================================================================
/root> # Licensed under the Apache License, Version 2.0 (the "License");
/root> # you may not use this file except in compliance with the License.
/root> # You may obtain a copy of the License at
/root> #
/root> #      http://www.apache.org/licenses/LICENSE-2.0
/root> #
/root> # Unless required by applicable law or agreed to in writing, software
/root> # distributed under the License is distributed on an "AS IS" BASIS,
/root> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
/root> # See the License for the specific language governing permissions and
/root> # limitations under the License.
/root> #
/root> # SPDX-License-Identifier: Apache-2.0
/root> # ============LICENSE_END=========================================================
/root> #-------------------------------------------------------------------------------
/root> 
/root> model create name=DecisionMakerPolicyModelTwo
result: SUCCESS

/root> 
/root> schema create name=SimpleStringType  flavour=Java schema=java.lang.String
result: SUCCESS

/root> schema create name=SimpleIntegerType flavour=Java schema=java.lang.Integer
result: SUCCESS

/root> 
/root> album create name=AnswerAlbum scope=policy writable=true schemaName=SimpleStringType
result: SUCCESS

/root> album create name=LastAnswerAlbum scope=policy writable=true schemaName=SimpleIntegerType
result: SUCCESS

/root> 
/root> event create name=MakeDecisionEvent nameSpace=org.onap.policy.apex.domains.decisionmaker source=DCAE target=apex
result: SUCCESS

/root> event parameter create name=MakeDecisionEvent parName=mode schemaName=SimpleStringType
result: SUCCESS

/root> 
/root> event create name=DecisionEvent nameSpace=org.onap.policy.apex.domains.decisionmaker source=DCAE target=apex
result: SUCCESS

/root> event parameter create name=DecisionEvent parName=decision schemaName=SimpleStringType
result: SUCCESS

/root> 
/root> task create name=RandomAnswerTask
result: SUCCESS

/root> 
/root> task inputfield create name=RandomAnswerTask fieldName=mode schemaName=SimpleStringType
result: SUCCESS
inputFields and outputFields are deprecated from Task definition and will be removed. Instead, inputEvent and outputEvents are automatically populated to Tasks based on State definition

/root> 
/root> task outputfield create name=RandomAnswerTask fieldName=decision schemaName=SimpleStringType
result: SUCCESS
inputFields and outputFields are deprecated from Task definition and will be removed. Instead, inputEvent and outputEvents are automatically populated to Tasks based on State definition

/root> 
/root> task contextref create name=RandomAnswerTask albumName=AnswerAlbum
result: SUCCESS

/root> 
/root> task logic create name=RandomAnswerTask logicFlavour=JAVASCRIPT logic=LS
file "/w/workspace/policy-apex-pdp-sonar/src/main/resources/logic/RandomAnswerTask.js" specified in Macro File Tag not found
LE
result: SUCCESS