From f510cb87ff738bddc29fd852286f2ba399b65b45 Mon Sep 17 00:00:00 2001 From: Ralph Soika Date: Mon, 30 Dec 2024 16:13:12 +0100 Subject: [PATCH] docu --- .../markdown/engine/plugins/ruleplugin.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/site/markdown/engine/plugins/ruleplugin.md b/src/site/markdown/engine/plugins/ruleplugin.md index f5e58e54..31100207 100644 --- a/src/site/markdown/engine/plugins/ruleplugin.md +++ b/src/site/markdown/engine/plugins/ruleplugin.md @@ -93,12 +93,12 @@ If no errorCode is defined the default errorCode `VALIDATION_ERROR` will be set. ```javaScript if (workitem.getItemValueDouble('budget')>10000) { var result={ - 'isValid':false, - 'errorMessage':[ - 'Something go wrong!', - 'Something else go wrong!' - ] - }; + 'isValid':false, + 'errorMessage':[ + 'Something go wrong!', + 'Something else go wrong!' + ] + }; } ``` @@ -114,8 +114,8 @@ See the following example which creates a new single item name 'some_item' with ```javaScript var result={ - isValid=true, - some_item: 'Hello World' + isValid=true, + some_item: 'Hello World' }; ``` @@ -124,8 +124,8 @@ A property of the result object may also contain multi-values which have to be s ```javaScript var result={ - isValid: true, - multi_item: [ 'Hello World', 'Hello Imixs'] + isValid: true, + multi_item: [ 'Hello World', 'Hello Imixs'] }; ```