You are currently browsing the tag archive for the 'workflows' tag.
En el blog oficial de los desarrolladores de Sharepoint hay una serie de post que son básicos para el aprendizaje de workflows para MOSS 2007, esta es la lista de enlaces y descripción de cada uno de ellos:
- Developing Workflows in VS: Part 1 – Workflow Objects and A Crash Course on Mechanics
- Developing Workflows in VS: Part 2 – Planning Your Workflow: Two Things to Keep in Mind
- Developing Workflows in VS: Part 3 – Five Steps for Developing Your Workflow
- Developing Workflows in VS: Part 4 – Design and Bind Your Forms
- Developing Workflows in VS: Part 5 – Code Your Workflow
- Developing Workflows in VS: Part 6 – Deploy and Debug your workflow
- Developing Workflows in VS: Part 7 – Summary and Final Thoughts
Además hay una serie de recursos que también os pueden ser interesantes:
- MS E-Learning releases Collection 5385: Developing Solutions with Windows SharePoint Services 3.0 and Visual Studio 2005
- May 2007 content on MSDN for WSS 3.0 and MOSS 2007
- Microsoft IT Showcase Technical Case Study: Streamlining Records Management Using SharePoint Server 2007 Workflow – now available
Visual Studio 2005 nos permite diseñar workflows para Sharepoint de forma gráfica. Los workflows para Sharepoint necesitan unas dll’s que no tendrás en tu equipo si no es servidor de Sharepoint. Por ello nos saldrá unos errores al no encontrar estas dll’s.
The type initializer for ‘Microsoft.Sharepoint.WorkflowActions.OnWorkflowActivated’ threw an exception.
Este error nos aparecerá cuando intentemos cargar la vista diseño del workflow. Pero con unos sencillos pasos prepararemos nuestra máquina para solventar esto error y desarrollar workflows de Sharepoint en máquina de desarrollo:
1. Copiar las dll’s desde la carpeta C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI del servidor a la misma carpeta en la máquina deseada.
2. Registrar las siguientes dll’s en el GAC. Para ello, simplemente arrastralas desde la carpeta C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI a la carpeta c:\windows\assembly:
* Microsoft.SharePoint.dll
* Microsoft.SharePoint.Security.dll
* Microsoft.sharepoint.WorkflowActions.dll
* Microsoft.office.workflow.tasks.dll
3. Instalar las Visual Studio 2005 extensions for .NET Framework 3.0 (Windows Workflow Foundation)
4. Instalar el SharePoint Server 2007 SDK: Software Development Kit and Enterprise Content Management Starter Kit
También nos podremos encontrar con otro error:
Could not load file or assembly ‘Microsoft.SharePoint.WorkflowActions.intl, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ or one of its dependencies. The system cannot find the file specified.
1. Copiar la dll’s desde el GAC de un servidor con Sharepoint instalado desde una consola para que nos permita copiar las dll’s:
Inicio–>Ejecutar–>CMD
> cd \WINDOWS\assembly\GAC_MSIL\
Microsoft.SharePoint.WorkflowActions.intl\12.0.0.0__71e9bce111e9429c
> copy microsoft.sharepoint.WorkflowActions.intl.dll c:\
cd\WINDOWS\assembly\GAC_MSIL\
Microsoft.SharePoint.WorkflowActions.intl.resources\12.0.0.0__71e9bce111e9429c
copy microsoft.SharePoint.workflowactions.intl.resources.dll c:\
2. Mover las dos dll’s al equipo de desarrollo y registrarlas en el GAC.
REQUISITOS SOFTWARE
- Microsoft Visual Studio 2005 Profesional (express edition no sirve)
- Visual Studio 2005 Extensions for Windows Workflow Foundation (ES)
- Windows SharePoint Services Software Development Kit (SDK) // wsssdk.exe
- Office Sharepoint Server 2007 SDK 1.2 // OfficeServerSDK.exe
- Windows SharePoint Services 3.0 Tools: Visual Studio 2005 Extensions // VSeWSS.exe –> no hace falta
