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

cancel
Showing results for 
Search instead for 
Did you mean: 
shmalik
Active Member II

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

Jump to solution

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 Solution

Accepted Solutions
sanjaybandhniya
Intermediate

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

Jump to solution

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

This will work.

View solution in original post

2 Replies
sanjaybandhniya
Intermediate

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

Jump to solution

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

This will work.

shmalik
Active Member II

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

Jump to solution

Hi Sanjay,

thank you for the quick reply! That was the solution.

Best Regards,

shmalik