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.
Solved! Go to Solution.
<<if [senstitiveflag==true]>>it is Confidential, <<else>> Not Confidential <</if>>
This will work.
<<if [senstitiveflag==true]>>it is Confidential, <<else>> Not Confidential <</if>>
This will work.
Hi Sanjay,
thank you for the quick reply! That was the solution.
Best Regards,
shmalik
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.