Solved

Creating schedule with manual schedule using Java SDK

  • 21 July 2020
  • 1 reply
  • 153 views

Hello.

How to create a schedule with a manual option using Java SDK rather than cron? Could you please share sample code/Documentation around this?

Thank you.

Cody

icon

Best answer by Boris 22 July 2020, 17:10

View original

1 reply

Userlevel 2

Hello Cody,

You can create a schedule that will be triggered manually by using the function createSchedule, but using null instead of the CRON expression.

processService.createSchedule(project, new Schedule(process, "myGraph.grf", ""));

You can also trigger the execution via API, without creating the schedule at all, by simply calling ProcessExectuion function

ProcessExecution exec = new ProcessExecution(process, "myGraph.grf");

you can find more examples here.

Reply