View Complete Post
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
I have a list workflow for SP 2010 that was previoulsy working this morning and decided to "Fail on Start" at some point. I have done nothing to the list or workflow settings, I have just been working in SP Designer 2010 creating the WF. I have
searched high and low and have found all of the same answers that get me no where. The suggestions include comparing the Workflow.xml and/or feature.xml to the name .dll in the GAC.
I have no workflow.xml or feature .xml files other than what I find in my Visual Studio folders from workflows past. This time I am
not using Visual Studio. I am using SPD 2010, does it keep those files? Secondly, I find only one of my workflowname.dll's in the GAC, also from an old VS workflow. My current workflow.xml, feature.xml and currentworkflow.dll
files do not exist on my workstation or server. WHAT am I missing here??? :-(
I have Sharepoint Foundation 2010 installed and Sharepoint Designer. When I create a Site workflow there are 2 Start Options grayed out, 1) Start this workflow to approve publishing a major version of an item. 2) Start this workflow when an item is changed.
Is there an onther setting to prior to creating the workflow to turn these option on or are these 2 options not available in Sharepoint Foundation 2010?
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
We've been using the BizTalk SharePoint Adapter to load various different contents into a MOSS 2007 Document Library. The library has a MicrosoftÃÂ Office SharePoint Designer 2007 workflowÃÂ (sequential workflow created in Designer) which starts automatically when a new item is added to the Document Library. Or, at least, it eventually starts automatically.
For some unknown reason--and this is what we're hoping some of you may have some ideas on--the workflow fails to start on the first try, producing the "Failed to Start (retrying)" message. When the timer job comes back the second time, the workflow starts successfully, but this causes us to loose five minutes of potential work time (not to mention making us look bad to the VPs and CTO because they see the failure message).
In checking the log, I find the following pair of error messages each time the "Failed to Start (retrying)" status occurs:
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