Row was not updated in Operation scripts

1
0
-1

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!

Comments

Submitted by delphine.coille on Wed, 08/18/2021 - 10:43

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

Submitted by yosi.p on Thu, 08/19/2021 - 04:40

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?

Submitted by nasrin788_1384620 on Mon, 08/23/2021 - 09:08

Did you see logs?

In help menu -> Bonita Engine log

Submitted by yosi.p on Tue, 08/24/2021 - 10:12

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

No answers yet.
Notifications