.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Imran Ghani
Post New Web Links

Reusable Workflow Help

Posted By:      Posted Date: October 01, 2010    Points: 0   Category :SharePoint
 

I am using SharePoint Designer 2010 to create a reusalble workflow that basically looks like this:

If <Something>  ... Start Approval process on CurrentItem with these users

Every time that I used "Start Approval ..." it put a number next to it; i.e. Approval(1), Approval(2), etc. So I clicked on it to discover that I could take this out-of-the-box flow and edit it to suit my specific needs.  Since there a few spots in my logic where I want to kick off the same approval process this seemed like a really helpful way to do it.  So I changed the name from Approval(n) to MyApproval and tweaked the behaviour to get what I wanted.

This seemed pretty cool as thought that it would allow me to create a Custom task that I could resuse in the workflow .. but that doesn't seem to be the case.  I just assumed that when I used the "Start Approval" Action I could choose my custom one from a list or something ... but I can't find it anywhere.

I spent a good bit of time searching for a solution in forums and blogs but can't seem to find anything.  I also tried to figure it out myself and under Custom Content Typpes, within Content Type Site Object, I see a bunch things that look like Approval_x0028_1_x0029


View Complete Post


More Related Resource Links

Assigning a reusable workflow to all content types in a list in one operation?

  
When creating a reusable workflow I choose a base content type. I would really like to assign this workflow to the content type at site collection top level and get it to automatically work in all lists that include this content type, and also have it set to work for all children of this top level content type. It seems to me that I have to manually associate this workflow to all lists and content types? I am missing something here? Henning

Deploy reusable Workflow on SharePoint Farm with other language pack

  
Hi all, I created a reusable workflow on my development system with no language pack installed. I saved the workflow as a template and saved the generated wsp. After that I added the wsp to a SharePoint farm at out customer (with the dutch language pack installed) and deployed the wps. Everything was looking good, but the WSP didn't creae a feature which I could activate, so I was not able to use the Workflow. Should it be possible to create a reusable workflow on a system with no langualge pack installed and install it on another system with a language pack installed? Johan.

Association Columns - Reusable Workflow

  

I have created a reusable workflow and added the site columns that I needed via the ‘Association Columns’ tab.  I have saved and published the workflow successfully.

I then realised that I needed to add more site columns, which I did in the same manner that I did previously.  I do get a warning at this point ‘Changing the association columns for this workflow can cause new instances of existing associations to fail’.

When I try to save the form I get the following error ‘Some association columns defined in this workflow are no longer valid.  This error may occur if the corresponding site columns have been deleted.  To fix the workflow, delete and recreate the affected columns’.

Reusable workflow and updatable columns

  

Hi,

I have created an infopath form which has promoted updateable columns I have then published this to the central forms service on our sharepoint farm and then activated this to one of our site collections. 

The content type for this seems to have been created successfully as all the site columns in the content type are showing that they are updatable.  I have then associated this content type to a forms library and am trying to write a reusable workflow in SPD which can make use of the content type. 

The problem that I have is that whenever the workflow writes to certain columns within the workflow the workflow errors with an error message like "Error the field could not update,  the field may be of a different type" .  This isn't exactly the error ( will post the exact message when I get back to work on Monday).  The field that I am updating is of string type and I am updating it with the value "Pending". 

Strangely when I write a list workflow on the forms library the workflow behaves as I would expect - updating the column correctly.  Has anyone else had this issue with reusable workflows.  If so what did you do to fix it. 

As a concept I would prefer to use the reusable workflows as it allows the workflow to be exported to code later on which we may ne

Reusable workflow and updatable columns

  

Hi,

I have created an infopath form which has promoted updateable columns I have then published this to the central forms service on our sharepoint farm and then activated this to one of our site collections. 

The content type for this seems to have been created successfully as all the site columns in the content type are showing that they are updatable.  I have then associated this content type to a forms library and am trying to write a reusable workflow in SPD which can make use of the content type. 

The problem that I have is that whenever the workflow writes to certain columns within the workflow the workflow errors with an error message like "Error the field could not update,  the field may be of a different type" .  This isn't exactly the error ( will post the exact message when I get back to work on Monday).  The field that I am updating is of string type and I am updating it with the value "Pending". 

Strangely when I write a list workflow on the forms library the workflow behaves as I would expect - updating the column correctly.  Has anyone else had this issue with reusable workflows.  If so what did you do to fix it. 

As a concept I would prefer to use the reusable workflows as it allows the workflow to be exported to code later on which we may ne

Getting Unexpected Error while Publishing my Reusable Workflow

  

*** UPDATE ***

After waiting for anyone to respond, and needing to figure this out, went into Central Admin and reversed steps (1) & (2) below to bring my system back to the state where the workflow would compile.  That didn't work ... I am still getting the error.  So now I am lost ... what could be causing this problem?  Anyone ??

********************************

I created a reusable workflow over a week ago and it has been working perfectly. Today everytime that I try to publish the workflow I get the following error during the "Validating the workflow" step:

"Errors were found while compiling the workflow... Unexpected Error on the server associating the workflow"

The only thing that has changed between when it worked and when it doesn't is that I configured the Server to enable ability to use the "Show workflow visualization on the status page" setting.  To do this I learned that I had to provision a Secure Store Service, create a Visio App ID and associate it.  So I followed these two sets of instructions:

  1. http://tinyurl.com/39l4jl4
  2. http://tinyurl.com/24w33lg

When I first got this error I did some Googling and found some p

SPD 2010 reusable workflow not picking up Current Item values

  

Hi, I have created an SPD 2010 reusable workflow that is attached to a specific content type...such content type is derived from a published InfoPath form with some of its fields being promoted, like the "Approvers" fields.

In SPD 2010, I add the " Start Approval process on Current Item with 'Participants' " action...those Participants I get (or at least I want to) from the Current Item: ApproversField.

After saving and publishing the workflow, I use the content type (set as default) in a form library and then add the workflow to it. After creating an Item the workflow is automatically rejected.

I checked the Workflow History and I realized the participants are not being picked from the current item's field... weird thing is, if I try the very same actions/etc in a workflow that is attached to that list everything works perfect... I tried to log messages all around the workflow process but the values never get picked up...

What am I missing here?

Thanks in advance.


How to delete the copied reusable workflow in SPD 2010

  

Hi,

I copied one reusable workflow in Globally Reusable Workflow part in SharePoint Designer 2010. but while I deleted the copied workflow, the original one was also deleted.

I want to know how can I only delete the copied one?

Thanks.


Connie Zhu

Reusable workflow

  

We created a simple reusable workflow. We added an association column using an existing site column. We then added a “Set field in CurrentItem” step to the workflow to update the association column value. We published the workflow and associated with a Content Type. When we start the workflow manually on a document library having this content type, it runs fine; however, when we set it to run on item insert and item update, the workflow errors out on the step that we update the CurrentItem column value. What could be the reason? The Sharepoint log file does not have any informative clue other than stating that the workflow errored out. How else we can troubleshoot this issue?


Free Series of SharePoint Workflow How-to Videos

  
This is the series of "How to" Document Workflow with SharePoint using Visual Studio 2008 (using the .NET Framework 3.0 for backward compatibility to Visual Studio 2005). I have created video's that show the most common requests that I have seen around MOSS/SharePoint 2007 workflow & document workflow.

Workflow Services: Visual Design of Workflows with WCF and WF 4

  

The .NET Framework 4 makes it easier than ever to implement WCF services using WF. We'll demonstrate just how easy it is by modeling a long-running, durable and instrumented workflow based on a real-world business case without having to write any code.

Leon Welicki

MSDN Magazine May 2010


Workflow Essentials: Collaborative Workflow Improvements in SharePoint 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.

Paul Andrew

MSDN Magazine November 2009


Foundations: Workflow Services for Local Communication

  

This month's column describes how to use WCF for communication between a workflow and a host application in Windows Workflow Foundation 3. This knowledge should help developers with their efforts using WF3 and prepare them for WF4, where WCF is the only abstraction over queues (referred to as "bookmarks" in WF4) that ships with the framework.

Matthew Milner

MSDN Magazine November 2009


Foundations: Windows Workflow Design Patterns

  

Design patterns provide a common, repeatable approach to solving software development tasks, and many different patterns can describe how to accomplish a certain goal in code. When developers begin working with Windows Workflow Foundation (WF), they often ask about how to accomplish common tasks with the technology. This month's column discusses several design patterns used in WF.

Matthew Milner

MSDN Magazine August 2009


ASP.NET Workflow: Web Apps That Support Long-Running Operations

  

Integrating workflow into ASP.NET applications means communicating with activities via a workflow queue and hosting the runtime in the global application class. We'll show you how.

Michael Kennedy

MSDN Magazine January 2009


Real-World WF: Best Practices For Windows Workflow Foundation Apps

  

The heart of Windows Workflow Foundation is its declarative programming model. Here are some best practices to consider when using WF to realize software solutions in the real world.

Josh Lane

MSDN Magazine December 2008


Foundations: Workflow Tips and Tricks

  

Matt Milner addresses reader requests for information about safely sharing a persistence database across applications and using lesser-known parts of the framework such as ChannelManagerService.

Matt Milner

MSDN Magazine August 2008


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend