Row was not updated in Operation scripts

Hi,

I'm trying to use script to update the value in my Task's Operations. But whenever I submit the task, it's just never works.  Suppose I want to set the value not based on User's input, but on computed value, how exactly can I do that?

Any examples? Thanks!

Hello,

could you please give us a bit more of context? What is your Bonita version? 

Can you please share a screenshot of your operation, your process definition and the script? 

Thank you

I'm trying to follow the Getting started tutorials.

 

In the task:

1. I have defined the Contract that will update the data I want to update

2. In the Operations, I use the following:

      - Operations type: Use java method

      - In "Edit expression", I use script that simply `return true`

3. The task then ended.

 

In the task form, I set a button that if clicked should submit the Task (and hoping that it will set the value above). Is there anything else need to be done?

Did you see logs?

In help menu -> Bonita Engine log

I am not sure what happen, but after recreating the process diagram, it works as expected. Thanks!