Stop one workflow in the application server

Avatar

Avatar

gigi_jin

Avatar

gigi_jin

gigi_jin

18-05-2018

Hi guys - is there a way to stop one particular workflow from the applications server? Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

gigi_jin

Avatar

gigi_jin

gigi_jin

07-09-2018

Thanks all for taking your time to respond to this question.

Just a follow-up here: I've managed to delete the workflow in question by using SQL code activity in a workflow.

It worked like a charm

Answers (5)

Answers (5)

Avatar

Avatar

Amit_Kumar

MVP

Avatar

Amit_Kumar

MVP

Amit_Kumar
MVP

04-07-2018

Use xtk.worfklow.Stop.Kill it will solve your problem.

Avatar

Avatar

Adhiyan

Employee

Avatar

Adhiyan

Employee

Adhiyan
Employee

04-07-2018

HI Gigi,

In Such cases , the best way is to kill it on the Database directly. You need to get the pid for the query and then stop / kill that pid from the Database.

If the instance is hosted by Adobe , raise a support ticket , else ask your DBA to kill the workflow but providing the primary keys.

Regards,

Adhiyan

Avatar

Avatar

Gaurang

Community Manager

Avatar

Gaurang

Community Manager

Gaurang
Community Manager

04-07-2018

Hi,

Were you able to find something relevant for your query here?

Gaurang

Avatar

Avatar

gigi_jin

Avatar

gigi_jin

gigi_jin

19-05-2018

Thanks for your help.

Basically this workflow is on pause status and the workflow supervisors have been receiving notification emails everyday. So they wanted to shut this workflow down completely.

Option 1 and 2 are not working in my case, because whenever the workflow is selected it crashes the client console. Hence I have to do it from the backend.

I also used xtk.worfklow.Stop but it didn't work because the workflow status was changed from 'paused' to 'stop requested' and then back to 'pause' again.

Avatar

Avatar

pradyumns539618

Avatar

pradyumns539618

pradyumns539618

19-05-2018

Hi,

You can stop a workflow by many ways :

  • By manual
  • Unconditional stop(Only use the unconditional stop if you are sure there are no actual workflow jobs in progress)
  • From back end (to do this you should know the value of Stop attribute of the workflow schema )
  • Using Java Script (xtk.workflow.Stop(WorkFlowId)

Thanks !