03-01-2021 04:56 AM
Hello,
I am using Alfresco Process Services Trial Version 1.11 and modeled a Generate Document Task. I have a form with a checkbox and depending on whether it is checked or not checked a specific sentence should be printed in the generated document. I followed the syntax as in this link: https://docs.alfresco.com/process-services/latest/develop/dev-ext/#document-templates
In particular this:
<<if [senstitiveflag=="true"]>>it is Confidential, <<else>> Not Confidential \<</if>>
In my case it prints always the <<else>> phrase, no matter if the checkbox is checked or not and no matter if I type “true” or “false”. As I assume that “true” is a value and not the Boolean expression, I also tried it with <<[variableid==”Checked”]>> and <<[variableid==”Unchecked”]>> and in my german version (my user interface is in german) with <<[variableid==”Markiert”]>> and <<[variableid==”Nicht markiert”]>>. I thought, that maybe the value of the checkbox might be one of the words, but still it always jumps into the <<else>> case.
Can anybody help me and knows what I am doing wrong?
Thanks.
03-02-2021 03:58 AM
<<if [senstitiveflag==true]>>it is Confidential, <<else>> Not Confidential <</if>>
This will work.
03-02-2021 03:58 AM
<<if [senstitiveflag==true]>>it is Confidential, <<else>> Not Confidential <</if>>
This will work.
03-02-2021 12:09 PM
Hi Sanjay,
thank you for the quick reply! That was the solution.
Best Regards,
shmalik
Explore our Alfresco products with the links below. Use labels to filter content by product module.