Quantcast
Channel: Nintex Connect: Active Threads
Viewing all articles
Browse latest Browse all 4245

Leave Request - add holiday-days to collection

$
0
0

Hi everybody,

I am creating a leave request that is a little bit "bigger" than the one Nintex uses in their videos on youtube.

So what I do is that I want to know all the days the user wants to be away so that I can find out if anybody else is on holiday the same time. Then, if there are too many users away that belong to the same team the CEO can react quickly.

Here you can see how this part of the workflow looks like:

http://s1.directupload.net/file/d/3469/94adc5ga_gif.htm

So I am asking the user about the first date and the last date of his leave and then I am writing the first day of the leave in the collection, count +1, and ask if the variable is bigger than the last date. If not, write the next day into the collection, and so on...

2 Questions about that:

  •  it takes a lot time to write down all the days since the timer job is only working every 5 minutes. I even deactivated the safe looping but it took also that long. So with every timer job running it will write down one date. Example: Leave from the 24.12.-31.12. First loop writes into the collection 24.12. Than it takes 5 minutes and the collection has 24.12. and 25.12. Then another 5 minutes.... So for this leave the workflow will need 35 Minutes (7 loops times 5 minutes) until it finished. Is there a better way?
  • Sometimes the loop writes down the 24.12., starts a loop, writes down the 25.12. and then I get an error "workflow failed to run"! Anybody an idea why?

Kind regards

Christian


Viewing all articles
Browse latest Browse all 4245

Trending Articles