commit | 8f8df7ee1ddb20b03cedb17dccdc79fc291cc678 | [log] [tgz] |
---|---|---|
author | a.sreekumar <ajith.sreekumar@est.tech> | Thu Feb 13 11:17:54 2020 +0000 |
committer | a.sreekumar <ajith.sreekumar@est.tech> | Thu Feb 20 17:03:05 2020 +0000 |
tree | 6ed8b1ebb110992c5e7985100478ab5b216d185d | |
parent | 8d22852d50a9b76dd05f68fef2717bb37f3b5bc6 [diff] |
Passing taskParameters from ApexConfig to policy logic TaskParameters can be used to pass parameters from ApexConfig to the policy logic. In the config, these are optional. Usage as below: { "engineParameters": { "taskParameters": [ { "key": "ParameterKey1", "value": "ParameterValue1" }, { "taskId": "TaskIdVal", "key": "ParameterKey2", "value": "ParameterValue2" } ] } } In the taskLogic, taskParameters can be accessed as below: eg: executor.parameters.get("ParameterKey1")) If taskId is provided in ApexConfig for an entry, then that parameter is updated only for that particular task. Otherwise, the task parameter is added to all tasks. Change-Id: I9e1b3d3697428309e7d86db40b63ffe822935b69 Issue-ID: POLICY-2364 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
Copyright (C) 2016-2018 Ericsson. All rights reserved. This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE Full license text at https://creativecommons.org/licenses/by/4.0/legalcode
This source repository contains the ONAP Policy APEX PDP Engine code. The settings file only needs to support the standard Maven repositories (e.g. central = http://repo1.maven.org/maven2/), and any proxy settings needed in your environment.
To build it using Maven 3, run: mvn clean install