Set image dynamic
My situation is
1 - I create an attribute for my entity master of process that calls 'BoletoImageTeste' and your type is 'Image'.
2- I create 2 tasks in my process, the task1 and task2.
3 - In the task1 the client put your data and click next
4 - I made an Component Library that that take this data and transform in image. So my function basically return an image.
5- In the task2, I put in the forms the control BoletoImageTeste.
6- When enter in the task2 I set in the rules the follow code:
<CompraeVenda.BoletoImageTeste> = BoletoLibrary.BoletoClass.ConvertHtmlToImage(teste);
ps: where BoletoLibrary.BoletoClass.ConvertHtmlToImage return the image
When I will test all things works but when enter in the task2 my BoletoImageTeste is not the image that I make. Have nothing.
My question is, if I made and function that return an image, How I set this Image to my image attribute?