Skip to content
  • Categories
  • Recent
  • Popular
Collapse
Brand Logo
  1. Home
  2. Categories
  3. Technical subjects
  4. Have a workflow launch another workflow that will run and when it is finished it will continue the same workflow

Have a workflow launch another workflow that will run and when it is finished it will continue the same workflow

Scheduled Pinned Locked Moved Technical subjects
4 Posts 3 Posters 127 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Miguel
    wrote on last edited by
    #1

    Hi,

    Is it possible to have a workflow launch another workflow that will run and when it is finished it will continue the same workflow? If yes how?

    Thank you.

    Kind regards

    Léa AngellozL 1 Reply Last reply
    0
    • M Miguel

      Hi,

      Is it possible to have a workflow launch another workflow that will run and when it is finished it will continue the same workflow? If yes how?

      Thank you.

      Kind regards

      Léa AngellozL Offline
      Léa AngellozL Offline
      Léa Angelloz
      wrote on last edited by
      #2

      @Miguel

      Dear Miguel,

      It's an interesting idea. Could you provide me with a working case to better understand your request?

      Kind regards

      Léa Angelloz

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Miguel
        wrote on last edited by
        #3

        Dear @Léa-Angelloz,

        We initiate a sequential workflow and after one of the sequential tasks another workflow is launched as a task. Only after this other workflow is finished does the first workflow continue.

        Thank you.

        Kind regards,
        Miguel SIMOES

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Raphaël Badawi
          DEV
          wrote on last edited by
          #4

          Hello Miguel,

          I hope you're fine. From what I understand it's a matter of workflow modelization.

          Indeed you can run another workflow after a task as a subprocess, and the same way you can send data to the subprocess when initializing it, you can also receive data when the subprocess has ended. So it's possible to map this data to some control variables (e. g. a boolean is_ongoing which would be set to true when we receive some data when the subprocess ends, or a map of booleans { subprocess_id => is_ongoing }).

          So in your workflow diagram right after the subprocess call you may create some kind of loop, like we go to a timer running every 5mn or so, after the timer has run we check whether the subprocess has finished : if the subprocess has finished we go to the next task, otherwise we loop back to the timer.

          There may be other ways to achieve this, but this is what comes to my mind at first glance.

          Best regards,
          Raphaël.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Search
          • First post
            Last post
          0
          • Categories
          • Recent
          • Popular
          • Search