HTML templtes - Assigning some values from template to flow service

Hi All,

Is there any way to assign some values from templates to flow service pipeline variable.

for Example, i am loop overing the document from HTML template, and based on if condition i have to set some status back to pipeline…

That Status value i wished to use after calling runStringTemplate service.

Please advise, what should be the syntax for assigning value to pipeline from html templates code.

Thanks in advance…