Can I use a button only to change the value of a variable?

Hi all

I am a newbie at Bonita 7.2.0, and have some doubts.

I only want to change some value, but I don’t know how to do it, because I have mandatory to choose one option between, send task, init process, HTTP Request, Post, Get, or Add or Delete from a collection.
I think there is no way, because now I have choosen Send task, and this changes the value, but it shows an warning. Saying Error trying to execute the task. But It makes what I want.
Other way is making this with a radio button and I think it will not show any error, but this isn’t what I want to show, isn’t my design.

Thank you very much.

Any assistance would be greatly appreciated.

Kind regards,
Héctor

Maybe try to create a custom widget
(check /designer/#/en/widget/pbButton and use the Save As button to copy the original widget from Bonita).

Then you surely can add everything you want in the properties to change the value of a binded variable.

can u send a process , or screen captur

When you're using buttons as control variables within your code, the type of button you make depends on what action you want to perform when that button is clicked. But let's look at some examples where the type of button makes no difference and answers the question. Here you check this building washing auckland and get more new things for roof cleaning. I was trying to learn how to use JavaScript and I noticed that there are some functions that allow you to change the value of a variable. I asked in the forum but did not get any help.