cancel
Showing results for 
Search instead for 
Did you mean: 

Generate Document Task - Template Checkbox value - running always <<else>> case

shmalik
Confirmed Champ
Confirmed Champ

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.

1 ACCEPTED ANSWER

sanjaybandhaniya
Elite Collaborator
Elite Collaborator

<<if [senstitiveflag==true]>>it is Confidential, <<else>> Not Confidential <</if>>

This will work.

View answer in original post

2 REPLIES 2

sanjaybandhaniya
Elite Collaborator
Elite Collaborator

<<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