There is no COTS handler to validate status of a workflow reference attachment. I see two options
Option1. Move all the references to targets and validate all the targets attachments using EPM-check-target-object rule handler
Option 2. Custom rule handler to validate the reference attachments
I succeed using an EPM-create-sub-process and as you suggest I put a check-target-object in it.
My last issue is that indeed the check is done and when the status are not present, I have an error message and the subprocess is stopped but the main workflow is still proceeding.
Do you know how can I make the main workflow stop when the subprocess stop ?
I tried using the -dependency argument with this value :
Name of the main process:Start::Name of the subprocess:Finish
(To prevent the main to start if the subprocess isn"t done)
So far it's not working, do you have another idea or am I doing a mistake.
Thank you for your help Mahendra, you are really helpful :)
Have you tried without specifiying either of the task names for the dependency argument
-dependency = ::
If your subprocess is a quick workflow (no subtasks) to validate the targets, then try adding a subtask and make sure the subprocess is started.
Sorry for the delay...
I tried with a quick workflow and it worked. It blocked my main workflow before the end.
But I thought that the dependency also implied an abort of the workflow if the subprocess is abort.
That's the behaviour I was looking for. Do you know if it's possible ?
Thank you in advance,