سؤال

I have a .xamlx flowchart workflow that models an approval process. if the submitter changes the document before the flowchart has finished, I want the submitter to 'resubmit' the document. I thought I would just be able to call the first receive activity again, but I think the workflow is recognizing it is already further along and is exiting.

Do I need to 'cancel' the workflow before 'resubmitting'? Or perhaps I just need another method later in the flowchart that the submitter calls? Any help is appreciated.

هل كانت مفيدة؟

المحلول 2

@Maurice was correct MOL. I could copy the original Receive to a later place in the workflow. But in order for it to work correctly, the first receive needed both it CorrelatesOn and CorrelationInitializers set to the same Correlation Handle variable. The 'copy' only needed the CorrelatesOn property set. Thay may have been obvious but since I didn't know it, I'm documenting here in case anyone else gets the same issue.

نصائح أخرى

You can create any branch you want in a flowchart. So you can just loop back to the top of the workflow. You do need to model this explicitly in your workflow though.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top