Showing results for 
Search instead for 
Do you mean 
Reply

Check the status of Items that are in attachment "reference"

Hello,

 

I want to ask the workflows to verify that the status of itemsrev that are in attachment "target" AND "reference" are in status XX otherwise an error message appears.

 

Is it possible ?

 

Best regards,

4 REPLIES

Re: Check the status of Items that are in attachment "reference"

Dear Benjamin,

 

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

 

Mahendra

Re: Check the status of Items that are in attachment "reference"

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 processSmiley Frustratedtart::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 Smiley Happy

 

Benjamin

Re: Check the status of Items that are in attachment "reference"

Dear Benjamin,

 

Have you tried without specifiying either of the task names for the dependency argument

something like.

 

-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.

 

Regards

Mahendra

Re: Check the status of Items that are in attachment "reference"

Dear Mahendra,

 

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,

 

Best regards,

 

Benjamin