Hi!
I am new to SharePoint with WorkFlow Foundation, i created a workflow and bind it to list. When the list item is created i am adding a Task to some user using CreateTaskWithContentType Activity. I have assigned a new token, a content type and also taskID and taskProperties to that Createtask Activity.
In The MethodInvoking event of Create Task Activity taskProperties is returned as null.
Please Help...
Code:
Shabih
I am new to SharePoint with WorkFlow Foundation, i created a workflow and bind it to list. When the list item is created i am adding a Task to some user using CreateTaskWithContentType Activity. I have assigned a new token, a content type and also taskID and taskProperties to that Createtask Activity.
In The MethodInvoking event of Create Task Activity taskProperties is returned as null.
Please Help...
Code:
private void createTask_MethodInvoking(object sender, EventArgs e) |
{ |
TaskId = new Guid(); |
taskProperties.TaskType = 1; |
taskProperties.Title = "Task Assigned"; |
taskProperties.StartDate = DateTime.Today; |
taskProperties.PercentComplete = 0.0f; |
taskProperties.AssignedTo = "someuser"; |
} |
Shabih