4 Replies Latest reply on Feb 4, 2016 9:22 AM by ravishpatel

    How to add a delay upto next day 9 AM

    ravishpatel

      Hello,

      I want to add a delay between two service tasks. The flow is:

      Step 1:

      Service Task: Send message 2

      Step 2:

      Timer: Wait till next day 9 AM

      Step 3:

      Service Task: Send Message 2

       

      There is no specific date that we have for next day. Whenever the instance of workflow has been started, it should send message 2 on next day at 9 AM.

        • 1. Re: How to add a delay upto next day 9 AM
          ravishpatel

          Please help me on this. There is a workaround where I create timer triggers which gets terminated in subprocess but thats not idea.

          • 2. Re: How to add a delay upto next day 9 AM
            ravishpatel

            Can someone please help me?

            • 3. Re: How to add a delay upto next day 9 AM
              siplo

              Hi,

               

              according documentationChapter 6. Processes it is possible configure timer with process variable and you can specify amount of time. It means service task will compute amount of time till next day 9 or realize date of next day and timer will be set to this value.

              • 4. Re: How to add a delay upto next day 9 AM
                ravishpatel

                Thanks for the response.

                 

                Yes, it is possible to give specific date as variable. But, I am trying to find an efficient solution for below scenerio:

                 

                Step Send  mandatory eMails at 9AM, 12PM, 4PM & 8PM for 30 days with different content.

                If the system is down from 3PM to 5 PM then skip 4 PM email.

                 

                Now all this happens for 30 days. I am changing the subject and content of the email based on the day variables. If I have to keep date for each execution it will end up being a huge 30*4 step process instead of loop for 30 times with 4 steps.

                 

                The other way I am doing is have a script task before the timer and compute the next date for trigger and increment the day count.

                 

                But was wondering of a way wherein I can wait till 9 AM next day just for once.