Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

About the logic of my workflow

$
0
0

Hello,

I have a workflow that is attached to the first SPList ("Problem"). When a new item is added to the list, the workflow checks one of the field called"Application name" from that same list ("Problem") if it exists in a second List("Assigned Application") and if it exists, checks if the application is assigned to an user.

If it it assigned, the workflow still progress. If not, a specify user will be notified and will have to edit the SPField from the SPList"Problem" and assign the problem item to an user, and then the workflow will automatically add the application to this user in the"Assigned Application" List. 

However I am not sure if it is the right solution. at first in my first workflow, a task with a form was sent to the specify user in order to assign the application to an user. However, if he edit it directly through the SPList"Problem" and add an user from that item, the workflow will be stuck because the workflows waits for the specify user to fill the form through the onTaskChanged. So I removed the task part and use onWorkflowItemChanged instead so he directly edit the problem item.

The second problem is if the specify user add a new item directly into the Assigned ApplicationList, I do not think there is a solution for the workflow to detect that someone has added the Application to the list... maybe I should add an itemeventreceiver in theAssigned Application List ?


Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>