From cad13bc9dbd2eaebf91fcde1a0aa03dc179f4795 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Wed, 26 Sep 2018 16:50:18 +0100 Subject: Fix boolean constants in examples When the checkstyle changes were made in the java code the .TRUE and .FALSE values were changed to .isTrue and .isFalse to comply with checkstyle. THis change needs to be propogated into example scripts. Issue-ID: POLICY-103 Change-Id: I419b5f398ef4f43b1b877d52bbe4ec638870f31d Signed-off-by: liamfallon --- src/site-docs/adoc/fragments/howto-write-logic/task-logic.adoc | 2 +- .../adoc/fragments/howto-write-logic/task-selection-logic.adoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/site-docs') diff --git a/src/site-docs/adoc/fragments/howto-write-logic/task-logic.adoc b/src/site-docs/adoc/fragments/howto-write-logic/task-logic.adoc index 23a05024d..e014a9e9c 100644 --- a/src/site-docs/adoc/fragments/howto-write-logic/task-logic.adoc +++ b/src/site-docs/adoc/fragments/howto-write-logic/task-logic.adoc @@ -124,7 +124,7 @@ executor.logger.info("Executing task: " *Example:* [source,javascript,options="nowrap"] ---- -var returnValue = executor.TRUE; +var returnValue = executor.isTrue; // functionally equivalent to: var returnValueType = Java.type("java.lang.Boolean"); var returnValue = new returnValueType(true); diff --git a/src/site-docs/adoc/fragments/howto-write-logic/task-selection-logic.adoc b/src/site-docs/adoc/fragments/howto-write-logic/task-selection-logic.adoc index 9225ac310..5e9dd8965 100644 --- a/src/site-docs/adoc/fragments/howto-write-logic/task-selection-logic.adoc +++ b/src/site-docs/adoc/fragments/howto-write-logic/task-selection-logic.adoc @@ -113,7 +113,7 @@ executor.logger.info("Executing TSL: " *Example:* [source,javascript,options="nowrap"] ---- -var returnValue = executor.TRUE; +var returnValue = executor.isTrue; // functionally equivalent to: var returnValueType = Java.type("java.lang.Boolean"); var returnValue = new returnValueType(true); -- cgit 1.2.3-korg