I have developed a custom sequential WF in VS 2010 using custom WorkFlow Content Type and ASPX forms.
Requirements are as below:
1.WF creates an approval task for User A. If User A rejects,then WF completes.
2.If User A approves,task is assigned to User B. If User B approves,then WF completes.
3.Is User A approves and User B rejects,then I need to ReAssign the task to User A.
I am facing problems in the 3rd point above.
I have a while loop having a Sequence Activity and the activities: CreateTaskWithContentType,onTaskChanged and CompleteTask are inside the Sequence Activity.
I am aware that the Correlation Token has to be set at design time in the VS 2010 WF Designer.
The issue is of dynamically assigning Correlation Tokens(Task Tokens) to the activities: CreateTaskWithContentType,onTaskChanged and CompleteTask which are inside Sequence Activity(Inside While Loop).
CorrelationToken C_Token =
createTaskWithContentType1.CorrelationToken = C_Token;
I get the error:"This operation can not be performed at runtime" when trying to assign Correlation Token dynamically as above.
Can anyone please hel
View Complete Post