Alana


Hey,

I've created a list which has 2 workflows running off it.

The 2nd workflow I have placed an action on it saying to wait until 1st workflow is equal to completed. and then to start.

However, when the first workflow finishes and status says 'completed' the 2nd workflow won't start. The Workflow History report tells me that its still waiting for the first workflow.

Can anyone tell me what I am doing wrong

Thanks.



Re: workflow not starting

iCLM


Hi Alana,

Is your second workflow reading a column in your list to determine that the first workflow has completed If it's a column you are reading, check to make sure you have the actual column name that SharePoint gives it. You can see it by doing a view source on the list page.

Did you write this with Sharepoint designer or in Visual Studio

Good Luck,





Re: workflow not starting

Alana

Hi,

Thanks. yep - my second workflow is reading off a column in the list and yep, the name I have given it is correct (well actually - I'm using designer and it gives me a drop down list of columns to choose from, and I have chosen the right column).

Got any other ideas

Thanks.






Re: workflow not starting

Phyllis T Genszler

did you resolve this - I have a sililar issue - when the workflow waits, it never restarts




Re: workflow not starting

Alana

Unfortunately no.



Re: workflow not starting

Phyllis T Genszler

Alana replied that this was not the problem - do you have any other ideas

I have a similar issue where a workflow is put in wait and never picks up when the condition it is waiting for is satisfied. This is a workflow generated in SharePoint Designer.






Re: workflow not starting

leonwoo

May be using the "InvokeWorkflow" activity at the end of the first workflow will help

cheers.





Re: workflow not starting

Phyllis T Genszler

I don't see an Invoke workflow activity - how did you get it




Re: workflow not starting

leonwoo

Hi,

You will see one at the MS IDE "Toolbox" when you switch to desinger mode. If you dont see it, then you have to add it into the toolbox by seleting "System.Workflow.Activities.InvokeWorkflow".

cheers.





Re: workflow not starting

Phyllis T Genszler

Are these instructions for the SharePoint Designer






Re: workflow not starting

William Heurdier

Hi Phylis,

Why don't you create an extra column, let's say "WorkflowsState", default empty value.

When 1st workflow starts, you set this value to "Workflow 1 running"

When 1st workflow starts, you set this value to "Workflow 1 done"

Then, as the first step of Workflow 2, you check

" If WorkflowsState=Workflow 1 done", you set the WorkflowsState value to Workflow 2 running.

This should allow your workflows to cascade....






Re: workflow not starting

Phyllis T Genszler

My case was slightly different - I wanted to wait for a field to change and then continue - I want it all in the same workflow. If I split it up, I will have too many reports to look at to put back together what happened.

Since then, I used the Collect data to get the workflow to pause - that works

but I did want the ability to invloke a workflow from a workflow - and I don't have that option in the SharePoint Designer






Re: workflow not starting

William Heurdier

Sorry, I was answering Alana.

To start a second workflow without using Visual studio, have you tried the procedure I described

If you set WF2 to start automaticaly on modification, you just have to test for a "WFsLink" column in the item that would be updated by WF1, which would give

WF1 Starts

WF1 goes through steps

WF1 set WFsLink

WF1 goes through steps WF2 checks WFsLink

WF1 Ends WF2 goes through steps

WF2 ends

That, way you can start WFs from other Wfs and have run them in parallel.






Re: workflow not starting

Carl Murray

I had a workflow that ran simliar to this situation. I was trying to have all the other flows be finished before an audit flow began. It was set to check that all the other flows were "Completed". This was not functioning and it took a little to discover the issue. When I went to the document library and looked at the item in Datasheet View, the Completed line became a 5, and In Progress was a 2. You may want to look and see if SharePoint is translating the text to a value it understands in the datasheet.

Thanks