Get DB data from a form called in a long process seems not working

Certified Senior Developer

Hi,

I have a long process (long running task) which calls a User Input Task to display a Main form with a text field.

In that Interface I have a Related Action which calls a process to display a modal form, and when it is submitted, this later saves a new Text value in DB.

When the modal form is closed, and I get back to the main form, my text field is not refreshed with the new data.

So I've tried this little test in the Main form  :

- On the saveInto of my textField I've added a writeRecords smartService to save data in the DB, and I've added a "GET" Button to get Data from DB (dynamicLink).

If I enter a new value in my TextField, I can see that WriteRecords works fine, and the new value is well saved in DB (viewing it in phpMyAdmin),

Then, if I click on the GET button, the underlying Expression Rule (EXPR1) gets some old data (why ? if the DB shows me correct data)

If I execute the same EXPR1 outside of my execution process form (from Appian Designer), the retrieved DATA are correct (the new value)

(for this test, I did not used Rule Input, I'm just using testing local variables). 

Why I cannot get my Data directly from DB?
What am I missing ?

----

This subject is linked to this previous thread

Appian Community

  Discussion posts and replies are publicly visible

Parents Reply Children