Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Is it possible to control Scheduler activity with Javascript?

Avatar

Avatar
Validate 1
Level 1
uz2020
Level 1

Likes

0 likes

Total Posts

32 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
uz2020
Level 1

Likes

0 likes

Total Posts

32 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
uz2020
Level 1

12-03-2021

Hello.

Is it possible to control Scheduler activity with Javascript?

 

Example: Use Javascript to get the first Monday (Javascript is prepared) and reflect them in the scheduler.

Example: Use Javascript to get business or non-business days from your company's own calendar (Javascript is prepared) and reflect them in the scheduler.

 

If Javascript condition is met, the transition will be enabled, otherwise it will be disabled.

Thank you.

View Entire Topic

Avatar

Avatar
Validate 1
Level 1
uz2020
Level 1

Likes

0 likes

Total Posts

32 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
uz2020
Level 1

Likes

0 likes

Total Posts

32 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
uz2020
Level 1

15-03-2021

@_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.