cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow - Error if a created workflow

pat9rv3sousa
Champ on-the-rise
Champ on-the-rise
I have a custom workflow, but I want to start the workflow and if exists a currently workflow created (and not completed) in the same document that I try to create a workflow, give a warning message. Where I can put this and how can I make this verification?
3 REPLIES 3

adhi27
Champ in-the-making
Champ in-the-making
can you give warning message or give log

thx

yes but where? I don't know where I can do this in "start workflow" and when exists a workflow created in the same file.

darkredd
Star Contributor
Star Contributor
Hi,

You can put your code on your workflow start task, in that throw an exception that will display your warning massage.
So first, you need to check if the document attached is part of a workflow, if so check if it is on the workflow you are looking for.
Then you can throw the exception; all this has to be done on your start workflow service task.

Regards