3 Replies Latest reply on Jan 20, 2016 3:48 AM by jimmy001

    skip task via script task

    hnandarusdy

      Hi, is there anyone know how to skip a human task via script task?

       

      cheers.

        • 1. Re: skip task via script task
          jimmy001

          If I may ask: Why would you want to do this?

          • 2. Re: skip task via script task
            hnandarusdy

            There is a scenario that I can do this particular task(lets say task "E") in the earliest stage.

             

            So, if the user chooses to complete that task early, I don't need to do it anylonger in the end.

            for example:

             

            I have "Task A" -> task "B" <XOR> -> task "E" -> Task C -> task D -> Task E

             

            in the middle, user can choose whether he wants to complete task E or not. if they do, I want to skip task E in the end of the process.

             

            Thanks Jim

            • 3. Re: skip task via script task
              jimmy001

              You could go something like this: When in early branch set a process variable to remember you went early route and later have a gateway check this variable and bypass "E" if the variable is set.