Skip to main content
Nintex Community Menu Bar
Solved

How to Schedule a workflow to run periodically

  • September 13, 2018
  • 15 replies
  • 55 views

Hi all,

I created a workflow using k2 designer, and the workflow so far starts by a button click on the form. I need to schedule the workflow to run couple times a day, everyday without the button click.

 

Is there a way to do it either using k2 designer or k2 studio?

 

Thank your for your help.

Best answer by Mounir

Vernon
 
 
 
 

 Thank you so much, it's working now. the prb was with account services.

 

Thx again

15 replies

Vernon
Forum|alt.badge.img+14
  • Scout
  • September 13, 2018

  • Author
  • Rookie
  • September 13, 2018

I did try to schedule the workflow from K2 Management but it's not working. 

Attached is screen shot showing that schedule start instances of a workflow but Im not getting any results, Im suppose to update tables and get notification emails. 

 

Thanks



Forum|alt.badge.img+10
  • Scholar
  • September 13, 2018

Ensure that the K2 service account has start permissions on that process.  Then try it again.


  • Author
  • Rookie
  • September 13, 2018

Yes, I did that,  the service account has start permissions on  the process, but still I'm not getting any result.

 

That it has anything to do with the button click ??? because my workflow starts only if I click on a start button on the form.

 

Thanks

 

 


Vernon
Forum|alt.badge.img+14
  • Scout
  • September 13, 2018
On the schedule the WF should start, it might depend on what context the WF needs to complete successful meaning it might error. I see in the screenshot there was lots of start via the schedule can you check the Management site for that workflow errors? I suspect it starts then error.

  • Author
  • Rookie
  • September 13, 2018

I checked the K2 management there is no errors, and no instance started. 

 


Vernon
Forum|alt.badge.img+14
  • Scout
  • September 13, 2018
Thanks, any errors when the schedule fires in the HostServer Logs and K2 Event Log?
You can also check the Eventbus.ClientrecorderError table

  • Author
  • Rookie
  • September 17, 2018

I checked k2 Event Log and Eventbus.ClientrecorderError table there is no errors.

But I'm still wondering is it possible to start the scheduled workflow without the button click on my form ? or I need to eliminate the form integration first? 

Thanks 

 


Vernon
Forum|alt.badge.img+14
  • Scout
  • September 17, 2018
the click of button to start the Workflow just fires a rule to start the workflow.
Try creating a new Workflow, in this workflow drop a Call sub Workflow event and configure it to call the workflow you are trying to start via the scheduler. Add this new workflow in the Schedule en see if it starts this way.

  • Author
  • Rookie
  • September 18, 2018

Vernon, 

 

I did create a new workflow and I called the main workflow as a sub-workflow, but still it’s not working. On K2 management under scheduled workflow it’s showing active instances but I’m not getting any results.

 

Thanks for your help


Vernon
Forum|alt.badge.img+14
  • Scout
  • September 18, 2018
Thanks, I think the best action to take here is to open a K2 Support ticket to get supports eyes on the situation. Sorry we could not solve this via this forum.

  • Author
  • Rookie
  • September 18, 2018

Thank you so much for your help.


  • Author
  • Rookie
  • Answer
  • September 20, 2018
Vernon
 
 
 
 

 Thank you so much, it's working now. the prb was with account services.

 

Thx again


Vernon
Forum|alt.badge.img+14
  • Scout
  • September 20, 2018
Nice glad to hear it s all good now. Please check the previous posts if non of them can correlate tot he actual resolution can you please add a solution to this post? It might help someone in future.

Forum|alt.badge.img+6
  • Scholar
  • March 17, 2020

Hi.

 

I do have same issue. let me know how it got fixed for you.

 

Regards,

Thriveni