Start a workflow using a javascript

Avatar

Avatar
Level 1
noemielebaut
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
noemielebaut
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
noemielebaut
Level 1

03-01-2020

Hello, 

 

The objective is to create a technical workflow with a query box that selects specific workflows in status Paused or Finished. And then the idea would be to have a JS code which Start or Restart the workflows (probably using a loop, one workflow at a time). 

 

I would like to get the correct JS code to use. 

 

Can you help?

 

Thank you !

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 4
badr_eddine
Level 4

Likes

42 likes

Total Posts

41 posts

Correct reply

12 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
badr_eddine
Level 4

Likes

42 likes

Total Posts

41 posts

Correct reply

12 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
badr_eddine
Level 4

03-01-2020

Hello, 

 

After generating the condition when your workflow needs to be restarted, you can use this JS code: 

xtk.workflow.Restart(id)

 

id : the id number of the workflow that you want to restart.

 

Regards, 

Badr.

Answers (0)