Continue with Workflow execution after form assignment

Options
claudio_sp
claudio_sp Member

Hi,

I'ts there a way that a workflow execution can continue with next step after assign a form?

For example, if I need to assign a form to 10 persons, the workflow assings the first one and wait until complets (form submit) to continue with the assignment to the rest of the users in the list.

Thanks in advance.

Tagged:

Best Answer

  • JosephMeyers
    JosephMeyers Domo Employee
    Answer ✓
    Options

    Because of the parallel gate it will assign one form which will wait but then also go through the loop on the other path and assign the next person which will also wait and then loop and assign the next person and so on. Once the loop finishes it will end that path but the workflow itself is still in progress because it is waiting on responses from each person for each of the forms that were sent out:

Answers

  • JosephMeyers
    JosephMeyers Domo Employee
    edited May 21
    Options

    There are probably other ways to do this but you would want your loop that goes through the list of persons to go into a parallel gate that has one path going to the form and a second path that re-enters your loop. This is a crude layout of kind of what you are looking to make:

    A more fleshed out workflow using only Global Packages is a little more complicated. In this example I use the length as the index (which is why I subtract 1 before entering the loop) as well as the counter (so I had to change the conditional gate). This example also takes in a list of userIds as text since the length function takes in a list of text and then I have to convert from text type to person type to assign the form out. Making your own custom functions will help reduce the extra tasks and steps and you can handle your inputs/outputs and variables differently depending on the rest of your workflow and what else you are doing with it.

  • claudio_sp
    Options

    Thank you Joseph.

    I already have a loop using dataset lenght and index, just like you suggest.

    Now I'm thinking what happends when the form assignment step is reached once (keeps pending, right?) and then a second time to assign the same form to other user, and so on…

    I'm afraid that the form assignation step remains pending, waiting for the first user submit and doesn't make a new assignation to the the next user in the list

  • JosephMeyers
    JosephMeyers Domo Employee
    Answer ✓
    Options

    Because of the parallel gate it will assign one form which will wait but then also go through the loop on the other path and assign the next person which will also wait and then loop and assign the next person and so on. Once the loop finishes it will end that path but the workflow itself is still in progress because it is waiting on responses from each person for each of the forms that were sent out:

  • claudio_sp
    Options

    Good! I'll give a shot today and then and let you know the results. Thanks again.