Questions Tagged With taskhttps://answers.axonivy.com/tags/task/?type=rss&user=hieulamquestions tagged <span class="tag">task</span>enFri, 18 Oct 2019 00:27:09 -0400Ivy task with start link Ivy is not persisted immediatelyhttps://answers.axonivy.com/questions/4112/ivy-task-with-start-link-ivy-is-not-persisted-immediately<p>Dear Ivy team.</p> <p>At the moment, we're facing the problem with start link ivy is marked as <strong>Persist task on creation</strong> come with some additional data what was set in <strong>customvarcharfield</strong>.</p> <p>We create a trigger in our ivy's database to listen to any changes in <code>iwa_task</code> table. We saw that whenever a user starts that ivy link. ivy will insert a new record in table <strong>iwa_task</strong> with a <em>taskid</em> but the value for <code>customvarchar1 is empty</code>, very quickly after that, ivy also performs another update on the same task to update data for customvarchar. After 2 updates in the iwa_task table, we have the correct data with a task that is created come with customvarcharfield.</p> <p>It works pretty well for single user because the delay time between 2 updates is very short and unnoticeable. But when there are many users are working at the same time, we got the problem. Because each user access the Portal's tasklist at the same time, so they will query the existing tasks in the system. But under some unluckily moment, the task is created (at the first stage without customvarchar) is queried and return to other user's results. Without customvarchar means the task data is not displayed properly.</p> <p>I just wonder is there any way to make "Persist task on creation" is persisted only once with full of data instead of creating an empty task and update data later?</p> <p>Thank in advanced.</p>hieulamFri, 18 Oct 2019 00:27:09 -0400https://answers.axonivy.com/questions/4112/ivy-task-with-start-link-ivy-is-not-persisted-immediatelytaskivy