View Complete Post
In this article, the author covers the new features in SharePoint 2010 geared for workflow developers and thenÃÂ walks the readerÃÂ through a couple of new user scenarios.
MSDN Magazine November 2009
In SharePoint 2010, I'm starting workflow #2 programatically from my workflow #1. See code below:
SPList currentList = web.Lists[new Guid(ListId)];
SPListItem currentListItem = currentList.GetItemById(ListItem);
//resolve any lookup parameters
string workflowId = base.ProcessStringField(WorkflowIdentifier);
//find workflow association by name
SPWorkflowAssociation workflowAssoc = currentList.WorkflowAssociations.GetAssociationByName(workflowId, Thread.CurrentThread.CurrentCulture);
if (workflowAssoc != null)
//start the workflow
SPWorkflow workflow = site.WorkflowManager.StartWorkflow(currentListItem, workflowAssoc, workflowAssoc.AssociationData, SPWorkflowRunOptions.Synchronous);
And workflow #2 will hang with Starting status (1-10 minutes), Then the workflow #2 status would be modified to Completed.
I couldn't find how to start the workflow # 2 immediately and complete immediately without several minutes delay
In SharePoint 2007 Designer, I have used the Hyperlink column to store the link "http://www.sharepoint.com/Default.aspx, Details". The details text will be shown in the Hyperlink column. Everything works fine in sharepoint 2007 Designer workflow.
In SharePoint Designer 2010 Workflow, I used the same method but the hyperlink column is displaying the full text "http://www.sharepoint.com/Default.aspx, Details" instead of only Details