diff options
author | Dinh Danh Le <dinh.danh.le@ericsson.com> | 2018-08-23 00:41:47 +0100 |
---|---|---|
committer | Dinh Danh Le <dinh.danh.le@ericsson.com> | 2018-08-23 16:56:04 +0100 |
commit | 6a2abc8402af63dd8941b4652278a6df404d781a (patch) | |
tree | d806687cf4621527e471730192f2f26c256ac311 /examples/examples-decisionmaker/src | |
parent | a4a992216c40138cda8501ee9bed971038b530a9 (diff) |
Add docs for the examples package
This review is big because it contains examples for the whole project.
The big size is mainly due to the site.xml, logos and css files which
are repeatedly created, and more aciidoc files are needed. The pom.xml
files are changed properly.
Change-Id: I42a94e4d898529f9249ef03de908c8b1a0142c7f
Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-867
Diffstat (limited to 'examples/examples-decisionmaker/src')
35 files changed, 690 insertions, 0 deletions
diff --git a/examples/examples-decisionmaker/src/site-docs/adoc/fragments/AnswerInitTask.adoc b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/AnswerInitTask.adoc new file mode 100644 index 000000000..802fe7fb4 --- /dev/null +++ b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/AnswerInitTask.adoc @@ -0,0 +1,20 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +== Task Logic: Answer Init + +.Task Logic, Answer Init +[source,javascript,options="nowrap"] +---- +include::{adsite-examples-decisionmaker-dir}/main/resources/logic/AnswerInitTask.js[Task Logic: Answer Init] +----
\ No newline at end of file diff --git a/examples/examples-decisionmaker/src/site-docs/adoc/fragments/AnswerInitiationEvents.adoc b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/AnswerInitiationEvents.adoc new file mode 100644 index 000000000..98a876a1a --- /dev/null +++ b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/AnswerInitiationEvents.adoc @@ -0,0 +1,20 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +== Initiation Events + +.Initiation Events +[source,json,options="nowrap"] +---- +include::{adsite-examples-decisionmaker-dir}/main/resources/config/AnswerInitiationEvents.txt[Initiation Events] +----
\ No newline at end of file diff --git a/examples/examples-decisionmaker/src/site-docs/adoc/fragments/ApexConfigRESTClient.adoc b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/ApexConfigRESTClient.adoc new file mode 100644 index 000000000..51d0139d7 --- /dev/null +++ b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/ApexConfigRESTClient.adoc @@ -0,0 +1,20 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +== APEX Configuration: Rest Client + +.Config REst Client +[source,json,options="nowrap"] +---- +include::{adsite-examples-decisionmaker-dir}/main/resources/config/ApexConfigRESTClient.json[Config Rest Client] +----
\ No newline at end of file diff --git a/examples/examples-decisionmaker/src/site-docs/adoc/fragments/ApexConfigRESTServer.adoc b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/ApexConfigRESTServer.adoc new file mode 100644 index 000000000..28051195c --- /dev/null +++ b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/ApexConfigRESTServer.adoc @@ -0,0 +1,20 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +== APEX Config: REST Server + +.Config REST Server +[source,json,options="nowrap"] +---- +include::{adsite-examples-decisionmaker-dir}/main/resources/config/ApexConfigRESTServer.json[Config REST Server] +----
\ No newline at end of file diff --git a/examples/examples-decisionmaker/src/site-docs/adoc/fragments/DecisionMakerPolicyModel.adoc b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/DecisionMakerPolicyModel.adoc new file mode 100644 index 000000000..7051abc7d --- /dev/null +++ b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/DecisionMakerPolicyModel.adoc @@ -0,0 +1,20 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +== APEX Model (Policies) + +.APEX Model, Policies +[source,bash,options="nowrap"] +---- +include::{adsite-examples-decisionmaker-dir}/main/resources/policy/DecisionMakerPolicyModel.apex[APEX Model, Policies] +----
\ No newline at end of file diff --git a/examples/examples-decisionmaker/src/site-docs/adoc/fragments/DitheringAnswerTask.adoc b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/DitheringAnswerTask.adoc new file mode 100644 index 000000000..c9322f837 --- /dev/null +++ b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/DitheringAnswerTask.adoc @@ -0,0 +1,20 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +== Task Logic: Dithering Answer + +.Task Logic, Dithering Answer +[source,javascript,options="nowrap"] +---- +include::{adsite-examples-decisionmaker-dir}/main/resources/logic/DitheringAnswerTask.js[Task Logic: Dithering Answer] +----
\ No newline at end of file diff --git a/examples/examples-decisionmaker/src/site-docs/adoc/fragments/MakeDecisionExtraMode_Client.adoc b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/MakeDecisionExtraMode_Client.adoc new file mode 100644 index 000000000..ee962481d --- /dev/null +++ b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/MakeDecisionExtraMode_Client.adoc @@ -0,0 +1,20 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +== HTML Client: Extra Mode + +.HTML Client, Extra Mode +[source,html,options="nowrap"] +---- +include::{adsite-examples-decisionmaker-dir}/main/resources/html/MakeDecisionExtraMode_Client.html[HTML Client, Extra Mode] +----
\ No newline at end of file diff --git a/examples/examples-decisionmaker/src/site-docs/adoc/fragments/MakeDecisionExtraMode_Server.adoc b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/MakeDecisionExtraMode_Server.adoc new file mode 100644 index 000000000..035e855ca --- /dev/null +++ b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/MakeDecisionExtraMode_Server.adoc @@ -0,0 +1,20 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +== HTML Server: Extra Mode + +.HTML Server, Extra Mode +[source,html,options="nowrap"] +---- +include::{adsite-examples-decisionmaker-dir}/main/resources/html/MakeDecisionExtraMode_Server.html[HTML Server, Extra Mode] +----
\ No newline at end of file diff --git a/examples/examples-decisionmaker/src/site-docs/adoc/fragments/MakeDecisionStateTSL.adoc b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/MakeDecisionStateTSL.adoc new file mode 100644 index 000000000..a74cc929d --- /dev/null +++ b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/MakeDecisionStateTSL.adoc @@ -0,0 +1,20 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +== Task Selection Logic: Make Decision State + +.Task Selection Logic, Make Decision State +[source,javascript,options="nowrap"] +---- +include::{adsite-examples-decisionmaker-dir}/main/resources/logic/MakeDecisionStateTSL.js[Task Selection Logic: Make Decision State] +----
\ No newline at end of file diff --git a/examples/examples-decisionmaker/src/site-docs/adoc/fragments/MakeDecision_Client.adoc b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/MakeDecision_Client.adoc new file mode 100644 index 000000000..deab6a86e --- /dev/null +++ b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/MakeDecision_Client.adoc @@ -0,0 +1,20 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +== HTML Client + +.HTML Client +[source,html,options="nowrap"] +---- +include::{adsite-examples-decisionmaker-dir}/main/resources/html/MakeDecision_Client.html[HTML Client] +----
\ No newline at end of file diff --git a/examples/examples-decisionmaker/src/site-docs/adoc/fragments/MakeDecision_Server.adoc b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/MakeDecision_Server.adoc new file mode 100644 index 000000000..25e624a19 --- /dev/null +++ b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/MakeDecision_Server.adoc @@ -0,0 +1,20 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +== HTML Server + +.HTML Server +[source,html,options="nowrap"] +---- +include::{adsite-examples-decisionmaker-dir}/main/resources/html/MakeDecision_Server.html[HTML Server] +----
\ No newline at end of file diff --git a/examples/examples-decisionmaker/src/site-docs/adoc/fragments/OptimisticAnswerTask.adoc b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/OptimisticAnswerTask.adoc new file mode 100644 index 000000000..8e889ed78 --- /dev/null +++ b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/OptimisticAnswerTask.adoc @@ -0,0 +1,20 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +== Task Logic: Optimistic Answer + +.Task Logic, Optimistic Answer +[source,javascript,options="nowrap"] +---- +include::{adsite-examples-decisionmaker-dir}/main/resources/logic/OptimisticAnswerTask.js[Task Logic: Optimistic Answer] +----
\ No newline at end of file diff --git a/examples/examples-decisionmaker/src/site-docs/adoc/fragments/PessimisticAnswerTask.adoc b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/PessimisticAnswerTask.adoc new file mode 100644 index 000000000..8bb8c8a08 --- /dev/null +++ b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/PessimisticAnswerTask.adoc @@ -0,0 +1,20 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +== Task Logic: Pessimistic Answer + +.Task Logic, Pessimistic Answer +[source,javascript,options="nowrap"] +---- +include::{adsite-examples-decisionmaker-dir}/main/resources/logic/PessimisticAnswerTask.js[Task Logic: Pessimistic Answer] +----
\ No newline at end of file diff --git a/examples/examples-decisionmaker/src/site-docs/adoc/fragments/RandomAnswerTask.adoc b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/RandomAnswerTask.adoc new file mode 100644 index 000000000..e75102e8d --- /dev/null +++ b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/RandomAnswerTask.adoc @@ -0,0 +1,20 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +== Task Logic: Random Answer + +.Task Logic, Random Answer +[source,javascript,options="nowrap"] +---- +include::{adsite-examples-decisionmaker-dir}/main/resources/logic/RandomAnswerTask.js[Task Logic: Random Answer] +----
\ No newline at end of file diff --git a/examples/examples-decisionmaker/src/site-docs/adoc/fragments/RoundRobinAnswerTask.adoc b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/RoundRobinAnswerTask.adoc new file mode 100644 index 000000000..f25e74c0a --- /dev/null +++ b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/RoundRobinAnswerTask.adoc @@ -0,0 +1,20 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +== Task Logic: RoundRobin Answer + +.Task Logic, RoundRobin Answer +[source,javascript,options="nowrap"] +---- +include::{adsite-examples-decisionmaker-dir}/main/resources/logic/RoundRobinAnswerTask.js[Task Logic: RoundRobin Answer] +----
\ No newline at end of file diff --git a/examples/examples-decisionmaker/src/site-docs/adoc/fragments/dockerfile.adoc b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/dockerfile.adoc new file mode 100644 index 000000000..14e40b2c2 --- /dev/null +++ b/examples/examples-decisionmaker/src/site-docs/adoc/fragments/dockerfile.adoc @@ -0,0 +1,20 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +== Dockerfile + +.Dockerfile +[source,bash,options="nowrap"] +---- +include::{adsite-examples-decisionmaker-dir}/../Dockerfile[Dockerfile] +----
\ No newline at end of file diff --git a/examples/examples-decisionmaker/src/site/asciidoc/AnswerInitTask.adoc b/examples/examples-decisionmaker/src/site/asciidoc/AnswerInitTask.adoc new file mode 100644 index 000000000..65eae44bd --- /dev/null +++ b/examples/examples-decisionmaker/src/site/asciidoc/AnswerInitTask.adoc @@ -0,0 +1,14 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +include::{adsite-examples-decisionmaker-dir}/site-docs/adoc/fragments/AnswerInitTask.adoc[] diff --git a/examples/examples-decisionmaker/src/site/asciidoc/AnswerInitiationEvents.adoc b/examples/examples-decisionmaker/src/site/asciidoc/AnswerInitiationEvents.adoc new file mode 100644 index 000000000..bf92e0f95 --- /dev/null +++ b/examples/examples-decisionmaker/src/site/asciidoc/AnswerInitiationEvents.adoc @@ -0,0 +1,14 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +include::{adsite-examples-decisionmaker-dir}/site-docs/adoc/fragments/AnswerInitiationEvents.adoc[] diff --git a/examples/examples-decisionmaker/src/site/asciidoc/ApexConfigRESTClient.adoc b/examples/examples-decisionmaker/src/site/asciidoc/ApexConfigRESTClient.adoc new file mode 100644 index 000000000..82edf2a9a --- /dev/null +++ b/examples/examples-decisionmaker/src/site/asciidoc/ApexConfigRESTClient.adoc @@ -0,0 +1,14 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +include::{adsite-examples-decisionmaker-dir}/site-docs/adoc/fragments/ApexConfigRESTClient.adoc[] diff --git a/examples/examples-decisionmaker/src/site/asciidoc/ApexConfigRESTServer.adoc b/examples/examples-decisionmaker/src/site/asciidoc/ApexConfigRESTServer.adoc new file mode 100644 index 000000000..3b3609a54 --- /dev/null +++ b/examples/examples-decisionmaker/src/site/asciidoc/ApexConfigRESTServer.adoc @@ -0,0 +1,14 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +include::{adsite-examples-decisionmaker-dir}/site-docs/adoc/fragments/ApexConfigRESTServer.adoc[] diff --git a/examples/examples-decisionmaker/src/site/asciidoc/DecisionMakerPolicyModel.adoc b/examples/examples-decisionmaker/src/site/asciidoc/DecisionMakerPolicyModel.adoc new file mode 100644 index 000000000..30c65ba4a --- /dev/null +++ b/examples/examples-decisionmaker/src/site/asciidoc/DecisionMakerPolicyModel.adoc @@ -0,0 +1,14 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +include::{adsite-examples-decisionmaker-dir}/site-docs/adoc/fragments/DecisionMakerPolicyModel.adoc[] diff --git a/examples/examples-decisionmaker/src/site/asciidoc/DitheringAnswerTask.adoc b/examples/examples-decisionmaker/src/site/asciidoc/DitheringAnswerTask.adoc new file mode 100644 index 000000000..3a6b03c67 --- /dev/null +++ b/examples/examples-decisionmaker/src/site/asciidoc/DitheringAnswerTask.adoc @@ -0,0 +1,14 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +include::{adsite-examples-decisionmaker-dir}/site-docs/adoc/fragments/DitheringAnswerTask.adoc[] diff --git a/examples/examples-decisionmaker/src/site/asciidoc/MakeDecisionExtraMode_Client.adoc b/examples/examples-decisionmaker/src/site/asciidoc/MakeDecisionExtraMode_Client.adoc new file mode 100644 index 000000000..9271a7c74 --- /dev/null +++ b/examples/examples-decisionmaker/src/site/asciidoc/MakeDecisionExtraMode_Client.adoc @@ -0,0 +1,14 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +include::{adsite-examples-decisionmaker-dir}/site-docs/adoc/fragments/MakeDecisionExtraMode_Client.adoc[] diff --git a/examples/examples-decisionmaker/src/site/asciidoc/MakeDecisionExtraMode_Server.adoc b/examples/examples-decisionmaker/src/site/asciidoc/MakeDecisionExtraMode_Server.adoc new file mode 100644 index 000000000..c00131280 --- /dev/null +++ b/examples/examples-decisionmaker/src/site/asciidoc/MakeDecisionExtraMode_Server.adoc @@ -0,0 +1,14 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +include::{adsite-examples-decisionmaker-dir}/site-docs/adoc/fragments/MakeDecisionExtraMode_Server.adoc[] diff --git a/examples/examples-decisionmaker/src/site/asciidoc/MakeDecisionStateTSL.adoc b/examples/examples-decisionmaker/src/site/asciidoc/MakeDecisionStateTSL.adoc new file mode 100644 index 000000000..ec45f45ee --- /dev/null +++ b/examples/examples-decisionmaker/src/site/asciidoc/MakeDecisionStateTSL.adoc @@ -0,0 +1,14 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +include::{adsite-examples-decisionmaker-dir}/site-docs/adoc/fragments/MakeDecisionStateTSL.adoc[] diff --git a/examples/examples-decisionmaker/src/site/asciidoc/MakeDecision_Client.adoc b/examples/examples-decisionmaker/src/site/asciidoc/MakeDecision_Client.adoc new file mode 100644 index 000000000..19999abf9 --- /dev/null +++ b/examples/examples-decisionmaker/src/site/asciidoc/MakeDecision_Client.adoc @@ -0,0 +1,14 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +include::{adsite-examples-decisionmaker-dir}/site-docs/adoc/fragments/MakeDecision_Client.adoc[] diff --git a/examples/examples-decisionmaker/src/site/asciidoc/MakeDecision_Server.adoc b/examples/examples-decisionmaker/src/site/asciidoc/MakeDecision_Server.adoc new file mode 100644 index 000000000..cf45fead6 --- /dev/null +++ b/examples/examples-decisionmaker/src/site/asciidoc/MakeDecision_Server.adoc @@ -0,0 +1,14 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +include::{adsite-examples-decisionmaker-dir}/site-docs/adoc/fragments/MakeDecision_Server.adoc[] diff --git a/examples/examples-decisionmaker/src/site/asciidoc/OptimisticAnswerTask.adoc b/examples/examples-decisionmaker/src/site/asciidoc/OptimisticAnswerTask.adoc new file mode 100644 index 000000000..4bc4e4f07 --- /dev/null +++ b/examples/examples-decisionmaker/src/site/asciidoc/OptimisticAnswerTask.adoc @@ -0,0 +1,14 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +include::{adsite-examples-decisionmaker-dir}/site-docs/adoc/fragments/OptimisticAnswerTask.adoc[] diff --git a/examples/examples-decisionmaker/src/site/asciidoc/PessimisticAnswerTask.adoc b/examples/examples-decisionmaker/src/site/asciidoc/PessimisticAnswerTask.adoc new file mode 100644 index 000000000..2a252b326 --- /dev/null +++ b/examples/examples-decisionmaker/src/site/asciidoc/PessimisticAnswerTask.adoc @@ -0,0 +1,14 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +include::{adsite-examples-decisionmaker-dir}/site-docs/adoc/fragments/PessimisticAnswerTask.adoc[] diff --git a/examples/examples-decisionmaker/src/site/asciidoc/RandomAnswerTask.adoc b/examples/examples-decisionmaker/src/site/asciidoc/RandomAnswerTask.adoc new file mode 100644 index 000000000..d63d41176 --- /dev/null +++ b/examples/examples-decisionmaker/src/site/asciidoc/RandomAnswerTask.adoc @@ -0,0 +1,14 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +include::{adsite-examples-decisionmaker-dir}/site-docs/adoc/fragments/RandomAnswerTask.adoc[] diff --git a/examples/examples-decisionmaker/src/site/asciidoc/RoundRobinAnswerTask.adoc b/examples/examples-decisionmaker/src/site/asciidoc/RoundRobinAnswerTask.adoc new file mode 100644 index 000000000..ddb789dc9 --- /dev/null +++ b/examples/examples-decisionmaker/src/site/asciidoc/RoundRobinAnswerTask.adoc @@ -0,0 +1,14 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +include::{adsite-examples-decisionmaker-dir}/site-docs/adoc/fragments/RoundRobinAnswerTask.adoc[] diff --git a/examples/examples-decisionmaker/src/site/asciidoc/dockerfile.adoc b/examples/examples-decisionmaker/src/site/asciidoc/dockerfile.adoc new file mode 100644 index 000000000..be86a7439 --- /dev/null +++ b/examples/examples-decisionmaker/src/site/asciidoc/dockerfile.adoc @@ -0,0 +1,14 @@ +// +// ============LICENSE_START======================================================= +// 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 +// +// SPDX-License-Identifier: CC-BY-4.0 +// ============LICENSE_END========================================================= +// +// @author Sven van der Meer (sven.van.der.meer@ericsson.com) +// + +include::{adsite-examples-decisionmaker-dir}/site-docs/adoc/fragments/dockerfile.adoc[] diff --git a/examples/examples-decisionmaker/src/site/css/site.css b/examples/examples-decisionmaker/src/site/css/site.css new file mode 100644 index 000000000..ef8bd4d15 --- /dev/null +++ b/examples/examples-decisionmaker/src/site/css/site.css @@ -0,0 +1,100 @@ +/* + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +@import url(http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.0/css/font-awesome.css); + + +/*************** Table definitions *******************/ + +tableblock > .title, .tableblock > caption { line-height: 1.4; color: #7a2518; font-weight: 300; margin-top: 0.2em; margin-bottom: 0.5em; } + +.tableblock > caption { text-align: left; font-weight: bold; white-space: nowrap; overflow: visible; max-width: 0; } + +table.tableblock { background: white; margin-bottom: 1.25em; border: solid 1px #dddddd; } +table.tableblock thead, table.tableblock tfoot { background: whitesmoke; font-weight: bold; } +table.tableblock thead tr th, table.tableblock thead tr td, table tfoot tr th, table tfoot tr td { padding: 0.5em 0.625em 0.625em; font-size: inherit; color: #222222; text-align: left; } +table.tableblock tr th, table.tableblock tr td { padding: 0.5625em 0.625em; font-size: inherit; color: #222222; } +table.tableblock tr.even, table.tableblock tr.alt, table.tableblock tr:nth-of-type(even) { background: #f9f9f9; } +table.tableblock thead tr th, table.tableblock tfoot tr th, table.tableblock tbody tr td, table.tableblock tr td, table.tableblock tfoot tr td { display: table-cell; line-height: 1.6; } + +table.tableblock #preamble > .sectionbody > .paragraph:first-of-type p { font-size: inherit; } + +table.tableblock.grid-all { border-collapse: separate; border-spacing: 1px; -webkit-border-radius: 4px; border-radius: 4px; border-top: 1px solid #dddddd; border-bottom: 1px solid #dddddd; } + +table.tableblock.frame-topbot, table.tableblock.frame-none { border-left: 0; border-right: 0; } + +table.tableblock.frame-sides, table.tableblock.frame-none { border-top: 0; border-bottom: 0; } + +table.tableblock td .paragraph:last-child p, table.tableblock td > p:last-child { margin-bottom: 0; } + +th.tableblock.halign-left, td.tableblock.halign-left { text-align: left; } + +th.tableblock.halign-right, td.tableblock.halign-right { text-align: right; } + +th.tableblock.halign-center, td.tableblock.halign-center { text-align: center; } + +th.tableblock.valign-top, td.tableblock.valign-top { vertical-align: top; } + +th.tableblock.valign-bottom, td.tableblock.valign-bottom { vertical-align: bottom; } + +th.tableblock.valign-middle, td.tableblock.valign-middle { vertical-align: middle; } + +p.tableblock.header { color: #222222; font-weight: bold; } + + + +/*************** KBD Macro definitions *******************/ + +kbd.keyseq { color: #555555; } + +kbd:not(.keyseq) { display: inline-block; color: #222222; font-size: 0.75em; line-height: 1.4; background-color: #F7F7F7; border: 1px solid #ccc; -webkit-border-radius: 3px; border-radius: 3px; -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px white inset; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px white inset; margin: -0.15em 0.15em 0 0.15em; padding: 0.2em 0.6em 0.2em 0.5em; vertical-align: middle; white-space: nowrap; } + +kbd kbd:first-child { margin-left: 0; } + +kbd kbd:last-child { margin-right: 0; } + + +/*************** Admontion Blocks definitions *******************/ +.admonitionblock td.content > .title, .exampleblock > .title, .imageblock > .title, .videoblock > .title, .listingblock > .title, .literalblock > .title, .openblock > .title, .paragraph > .title, .quoteblock > .title, .sidebarblock > .title, .tableblock > .title, .verseblock > .title, .dlist > .title, .olist > .title, .ulist > .title, .qlist > .title, .hdlist > .title { text-align: left; font-weight: bold; } + +.admonitionblock > table { border: 0; background: none; width: 100%; margin-top: 1em; margin-bottom: 1em;} +.admonitionblock > table td.icon { text-align: center; width: 80px; } +.admonitionblock > table td.icon img { max-width: none; } +.admonitionblock > table td.icon .title { font-weight: bold; text-transform: uppercase; } +.admonitionblock > table td.content { padding-left: 1.125em; padding-right: 1.25em; border-left: 1px solid #dddddd; color: #6f6f6f; } +.admonitionblock > table td.content > :last-child > :last-child { margin-bottom: 0; } + +.admonitionblock td.icon [class^="fa icon-"]:before {font-size:2.5em;text-shadow:1px 1px 2px rgba(0,0,0,.5);cursor:default} +.admonitionblock td.icon .icon-note:before { content: "\f05a"; color: #005498; color: #003f72; } +.admonitionblock td.icon .icon-tip:before { content: "\f0eb"; text-shadow: 1px 1px 2px rgba(155, 155, 0, 0.8); color: #111; } +.admonitionblock td.icon .icon-warning:before { content: "\f071"; color: #bf6900; } +.admonitionblock td.icon .icon-caution:before { content: "\f06d"; color: #bf3400; } +.admonitionblock td.icon .icon-important:before { content: "\f06a"; color: #bf0000; } + + + +/*************** Misc definitions *******************/ + +*:not(pre) > code { font-size: 0.9375em; padding: 1px 3px 0; white-space: nowrap; background-color: #f2f2f2; border: 1px solid #cccccc; -webkit-border-radius: 4px; border-radius: 4px; text-shadow: none; } + +pre, pre > code { line-height: 1.4; color: inherit; font-family: Consolas, "Liberation Mono", Courier, monospace; font-weight: normal; } + +code { font-family: Consolas, "Liberation Mono", Courier, monospace; font-weight: normal; color: #6d180b; } + diff --git a/examples/examples-decisionmaker/src/site/images/logos.png b/examples/examples-decisionmaker/src/site/images/logos.png Binary files differnew file mode 100644 index 000000000..915d6e59d --- /dev/null +++ b/examples/examples-decisionmaker/src/site/images/logos.png diff --git a/examples/examples-decisionmaker/src/site/site.xml b/examples/examples-decisionmaker/src/site/site.xml new file mode 100644 index 000000000..63631c843 --- /dev/null +++ b/examples/examples-decisionmaker/src/site/site.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ============LICENSE_START======================================================= + 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 + + SPDX-License-Identifier: CC-BY-4.0 + ============LICENSE_END========================================================= + + @author Sven van der Meer (sven.van.der.meer@ericsson.com) + +--> + +<project name="APEX Examples Decision Maker"> + <body> + <menu name="APEX Examples Decision Maker"> + <item href="ApexConfigRESTClient.html" name="Config: REST Client" /> + <item href="ApexConfigRESTServer.html" name="Config: REST Server" /> + <item href="AnswerInitiationEvents.html" name="Inititation Events" /> + <item href="MakeDecision_Client.html" name="HTML Client" /> + <item href="MakeDecision_Server.html" name="HTML Server" /> + <item href="MakeDecisionExtraMode_Client.html" name="HTML Client (Extra)" /> + <item href="MakeDecisionExtraMode_Server.html" name="HTML Server (Extra)" /> + <item href="DecisionMakerPolicyModel.html" name="APEX Model (Policy)" + collapse="true"> + <item href="AnswerInitTask.html" name="Task Logic: Answer Init" /> + <item href="DitheringAnswerTask.html" name="Task Logic: Dithering Answer" /> + <item href="MakeDecisionStateTSL.html" name="Task Selection Logic: Make Decision State" /> + <item href="OptimisticAnswerTask.html" name="Task Logic: Optimistic Answer" /> + <item href="PessimisticAnswerTask.html" name="Task Logic: Pessimistic Answer" /> + <item href="RandomAnswerTask.html" name="Task Logic: Random Answer" /> + <item href="RoundRobinAnswerTask.html" name="Task Logic: RoundRobin Answer" /> + </item> + <item href="dockerfile.html" name="Dockerfile" /> + + </menu> + <menu ref="reports" inherit="top" /> + <menu ref="modules" /> + + <breadcrumbs> + <item name="Decision Maker" href="index.html" /> + </breadcrumbs> + </body> +</project>
\ No newline at end of file |