Hi, We are on Appian Cloud 7.6. I have following requirement:

Hi,
We are on Appian Cloud 7.6.

I have following requirement:

In our current portal version of task form, we have set up a hidden field, which will send an API call to our database with the task information as soon as user accepts the task. That was possible because task form in portal wasn't refreshing on moving between the components.

Now, we are on process of migrating to Tempo, and we want to create the same scenario in the Tempo. So, whenever user accepts the task, then and only in that case API call should be made. I tried following things:

(1) Having the API call in the load(). But that call will be made as soon as the form will be load, not after user accepts the task.
(2) Had a dummy task before the actual task, both of them are activity chained. So, whenever the actual task loads that API call is made. But, this is actually not preferred by our users and conflicts with our business need.

So, is there a way I can achieve the above mentioned...

OriginalPostID-125111

OriginalPostID-125111

  Discussion posts and replies are publicly visible

Parents
  • Hi Aleksi,

    Sorry, I might not be understanding it correctly. Following is what I have set up in the process model to test.

    I have two flows flowing from the Start Event. One is going to the User Task Form, and the other is going to the Rule node. Now,
    (1) I have scheduled the Task Form such that it will start only after 2 minutes.
    (2) And the Rule node has the expression count(getactivetaskidsforprocess(pp!id)) > 0; means, as soon as there is an Active (Assigned and/or Accepted) task, the flow will continue.

    So, when I start the process for debugging, the flow will be at Rule node and User Task Form. It won't flow ahead, because there won't be any active task available.

    Now, after two minutes, when the User Task is initiated (activated/assigned), the Rule's expression should evaluate to true, right? In this case, what happens is, the flow from the Rule node is not flowing ahead. It won't flow ahead until and unless I restart that node. So, my question is, is this an actual expected behavior? And if so, how can I set up a way so that the flow would continue as soon as the expression is true.

    Thanks again Aleksi for being patient.
Reply
  • Hi Aleksi,

    Sorry, I might not be understanding it correctly. Following is what I have set up in the process model to test.

    I have two flows flowing from the Start Event. One is going to the User Task Form, and the other is going to the Rule node. Now,
    (1) I have scheduled the Task Form such that it will start only after 2 minutes.
    (2) And the Rule node has the expression count(getactivetaskidsforprocess(pp!id)) > 0; means, as soon as there is an Active (Assigned and/or Accepted) task, the flow will continue.

    So, when I start the process for debugging, the flow will be at Rule node and User Task Form. It won't flow ahead, because there won't be any active task available.

    Now, after two minutes, when the User Task is initiated (activated/assigned), the Rule's expression should evaluate to true, right? In this case, what happens is, the flow from the Rule node is not flowing ahead. It won't flow ahead until and unless I restart that node. So, my question is, is this an actual expected behavior? And if so, how can I set up a way so that the flow would continue as soon as the expression is true.

    Thanks again Aleksi for being patient.
Children
No Data