Example process Istance Execute timed functions
Istance process
JPolling.get("process1").start(300, myBeforefunction, 120000, mySecondfunction);
Let's analyze in detail the instruction above.
the get method takes a parameter, the unique name of the process,
if passed a process with that name will be created, otherwise it will be assigned a name automatically
to retrieve the automatically created name,
example:
var process = JPolling.get ("process1"). start (300, myBeforefunction, 120000, mySecondfunction);
Process Name = process.getId ()
Good thing and always assign a unique process name.
Now let's see in detail the start method.
The start method accepts 4 parameters
1) execution time before declared function
2) first function
3) execution time according to declared function or total duration of the process
4) second function