سؤال

هل لدى أي شخص فكرة عن كيفية إيقاف سير عمل الموافقة المخصصة من التشغيل عند تشغيل "تعديل عنصر القائمة". لدي سير عمل موافقة مخصص كتبت باستخدام Visual Studio.يرتبط مع قائمة ويتم تشغيله عند تغيير أي عنصر في هذه القائمة. مشكلتي هي أنه عندما يفشل سير العمل (لأي سبب من الأسباب) ومستخدم مع حقوق المسؤول، يدويا يدويا على التغيير (وليس من خلال سير العمل)، يتم بدء تشغيل سير العمل مرة أخرى.هل يمكن لشخص ما أن يقترح وسيلة لمنع ذلك من القيام بذلك؟أو أفعل شيئا خاطئا؟

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

المحلول

Get the approval status early in the execution (during onworkflowactivated), the workflow only need to be executed fully if the target item Approval Status is still pending. Then right below the onworkflowactivated activity drag drop an if-else activity to check the Approval Status value. If it still pending then execute the rest of the workflow and if it is not pending, terminate the workflow. You can refer here for more details. Hope this helps

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