cancel
Showing results for 
Search instead for 
Did you mean: 

Loop condition in Workflow

Former Member
0 Kudos

Hi experts,

Can you set the looping frequency in Workflow, i.e. only loop after at a certain time or after some generated number or using a date?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

For this you have to use a task that will execute a method of waiting for certain time before the Loop. Inside the method put Code ``Wait upto 120 Seconds.```Use this method before your loop condition. or you can make use of deadlining also.

Thanks

Arghadip

Former Member
0 Kudos

Hi Arghadip,

the situation is i have to keep checking for the availability of certain documents and the workflow is not supposed to go to the next step untill all the documents are there. what you are saying will help to wait for the first time but how would i then repeat that procedure for the looping step?

Former Member
0 Kudos

Then you have to put this method inside a loop unless all the documents are there. This method will be executed depends upon you every 2 hours or 1 hour depending on the statistics. Or you can try to check some user Exit in the document transaction that will check whether all the documents are there and if it is there it should trigger a custom event and that event will be kept in the wait for event step.

It completey depends upon the business and the statistics and you what to do.

The second approach is the best but if you dont have option you should go for the first one.

Thanks

Arghadip

martin_nooteboom
Active Contributor
0 Kudos

Hi Thokozani,

How do you do the check for the documents? If you do this in a task you probably set a parameter if all the documents are there. Use this in the loop. You can set a requested start deadline on the task itself so it will only start after a certain time, this way you can check every certain amount of time. (If I understood your requirement correctly that is).

Regards,

Martin