Avatar

Level 2

@Manoj_Kumar_, Thank you for reply.

 

I understood that Advanced JS can branch judgments.
Is usage of Advanced JS correct in the following?

 

 

//First call
if(Today is first Monday and business day){
 task.postEvent(task.transitionByName("ok"));
}else{
 task.postEvent(task.transitionByName("no"));
}
task.setCompleted();

//Next call
return 0;

 

 

And, Is there no choice but to start the scheduler every day and use JS to determine the business day?

Thanks.