490 likes | 625 Views
SharePoint 2010 Composites (Teil II). Simon Amrein Consultant Simon.Amrein@trivadis.com Wallisellen, 05.10.2010. Vorstellung. Simon Amrein Consultant Entwicklung von SharePoint und .Net Projekten Referent Erfahrung C# seit 2002 SharePoint seit WSS 3.0 / MOSS 2007 Beta 2 Referent
E N D
SharePoint 2010 Composites (Teil II) Simon Amrein Consultant Simon.Amrein@trivadis.com Wallisellen, 05.10.2010
Vorstellung • Simon Amrein • Consultant • Entwicklung von SharePoint und .Net Projekten • Referent • Erfahrung • C# seit 2002 • SharePoint seit WSS 3.0 / MOSS 2007 Beta 2 • Referent • SharePoint und .Net Schulungen für Trivadis AG • Ignite Training für Microsoft in der Schweiz • MSDN TechTalks • Certification BootCamp SharePoint 2010 Application Development • Shape 26. Oktober 2010, Swissôtel Zürich MSDN TechTalk - SharePoint 2010 Composites
Data are always part of the game. Agenda • SharePoint & WF • SharePoint & External Data • SharePoint & Silverlight on the Client MSDN TechTalk - SharePoint 2010 Composites
SharePoint 2010 Workflow – How to Start? • I identified a business need… • But how do I start now??? MSDN TechTalk - SharePoint 2010 Composites
SharePoint WF – How to Start? – Bad Idea • WRONG… MSDN TechTalk - SharePoint 2010 Composites
SharePoint WF – How to Start? – Better Idea • Better… MSDN TechTalk - SharePoint 2010 Composites
SharePoint WF – How to Start? – Best Idea • You’ve got it… But whenshould I usewhat? MSDN TechTalk - SharePoint 2010 Composites
SharePoint 2010 - Workflows • SharePoint 2010 Workflow based on .NET Framework 3.5 SP1 • Sequential & State Machine Workflow • New Workflow events: • Starting • Started • Postponed • Completed MSDN TechTalk - SharePoint 2010 Composites
SharePoint 2010 Workflow Spectrum Quelle: SharePoint Conference MSDN TechTalk - SharePoint 2010 Composites
SharePoint Workflow with Visio • Business Engineers design the Workflow • «Microsoft SharePoint Workflow» Template (Sequential) MSDN TechTalk - SharePoint 2010 Composites
SharePoint Workflow – Visio Activities MSDN TechTalk - SharePoint 2010 Composites
SharePoint Workflow - Export • Export Workflow as an Visio interchange format MSDN TechTalk - SharePoint 2010 Composites
DEMO • Visio MSDN TechTalk - SharePoint 2010 Composites
SharePoint Workflow with SharePoint Designer 2010 • SharePoint Designer 2010 – Intuitive • Site Workflow • Reusable Workflow • Customize OOB Workflows • High Privilege Impersonation Step MSDN TechTalk - SharePoint 2010 Composites
SharePoint Designer – Create new Workflow MSDN TechTalk - SharePoint 2010 Composites
SharePoint Designer - WF • Actions & Conditions MSDN TechTalk - SharePoint 2010 Composites
SharePoint Designer - Actions & Conditions • Overview http://office.microsoft.com/en-us/visio-help/sharepoint-workflow-template-shapes-guide-HA101903894.aspx MSDN TechTalk - SharePoint 2010 Composites
SharePoint Designer - Visualisation MSDN TechTalk - SharePoint 2010 Composites
SharePoint Designer – Save as a Template • Extend Workflow in Visual Studio 2010 MSDN TechTalk - SharePoint 2010 Composites
DEMO • SharePoint Designer MSDN TechTalk - SharePoint 2010 Composites
SharePoint Workflow with Visual Studio 2010 • Only Farm Solution • WorkFlows: • Sequential • State Machine • Type: • Site • List MSDN TechTalk - SharePoint 2010 Composites
SharePoint Activity for SharePoint Designer 2010 • Derive from: System.Workflow.ComponentModel.Activity • Override Methode ActivityExecutionStatus Execute(System.Workflow.ComponentModel.ActivityExecutionContext executionContext) • Adding a custom .actions into %SPRoot%\Template\1033\Workflow • Register Assemblies MSDN TechTalk - SharePoint 2010 Composites
SharePoint Activity for SharePoint Designer 2010 MSDN TechTalk - SharePoint 2010 Composites
SharePoint Activity for SharePoint Designer 2010 • .actions File MSDN TechTalk - SharePoint 2010 Composites
SharePoint Activity for SharePoint Designer 2010 • Web.Config MSDN TechTalk - SharePoint 2010 Composites
SharePoint Activity for SharePoint Designer 2010 MSDN TechTalk - SharePoint 2010 Composites
SharePoint Activity for SPD 2010 - IE MSDN TechTalk - SharePoint 2010 Composites
SharePoint Activity for SPD 2010 - Visio MSDN TechTalk - SharePoint 2010 Composites
Demo • Custom Action MSDN TechTalk - SharePoint 2010 Composites
Data are always part of the game. Agenda • SharePoint & WF • SharePoint & External Data • SharePoint & Silverlight on the Client MSDN TechTalk - SharePoint 2010 Composites
SharePoint 2010 – External Data • Remember 2007 • We were able to read external data • We had SharePoint Designer 2007 • We used 3th Party Tools… But know we are in the year 2010! MSDN TechTalk - SharePoint 2010 Composites
SharePoint 2010 – External Data • Again – We have different Tools MSDN TechTalk - SharePoint 2010 Composites
Solution Types, Personas and Tools Simple SharePoint Designer MSDN TechTalk - SharePoint 2010 Composites
Development Approaches SharePoint Server (Prod / Dev) IT Admin “Live” connection WSP/ ClickOnce Package SI/IT Devs Import & Configure WSP/BDC • No code, discover and configure existing back-end integration end-points • Connect to (existing) WCF, ADO.Net and .Net Objects • Simultaneously author thin and rich client UX for External List and InfoPath Forms Produce WSP/ClickOnce Package w/BDC Model • Create custom back-end integration logic using .Net code • Author thin and rich client UX (independently) as SharePoint and VSTO customization projects SharePoint Designer Pro Dev MSDN TechTalk - SharePoint 2010 Composites
SharePoint Designer • Connecting to an externaldatasource – Just a fewclicks to go… MSDN TechTalk - SharePoint 2010 Composites
Visual Studio 2010 Support • The tool for creating “.NET Connectors” MSDN TechTalk - SharePoint 2010 Composites
Business Data Catalog Methods public static MyEntityReadItem(intmyEntityID) { //Return a single entity based on the identifier input } public static IEnumerable<MyEntity> ReadList() { //Return a collection of entities } public static void Delete(intmyEntityID) { //Delete data based on the identifier input } public static void Update(MyEntitymyEntity) { //Update data based on the properties of the entity input } public static MyEntityCreate(MyEntitynewMyEntity) { //Add new data based on the properties of the entity input } MSDN TechTalk - SharePoint 2010 Composites
Demo • External List – Visual Studio MSDN TechTalk - SharePoint 2010 Composites
Data are always part of the game. Agenda • SharePoint & WF • SharePoint & External Data • SharePoint & Silverlight on the Client MSDN TechTalk - SharePoint 2010 Composites
Customer Request… • We would like to access more data from SharePoint – So, we need more web-services! • But this would end in a web-services hell… • Microsoft introduced the Client Object Model MSDN TechTalk - SharePoint 2010 Composites
Client Object Model MSDN TechTalk - SharePoint 2010 Composites
Client Object Model MSDN TechTalk - SharePoint 2010 Composites
Work with Object Model • Define, where you want to conntect to... • Define, with what you want to work with... • Load what you have defined • Execute load process MSDN TechTalk - SharePoint 2010 Composites
ClientContext • Return the context for a client request using System; using Microsoft.SharePoint.Client; namespace Microsoft.SDK.SharePointServices.Samples { class WebSiteTitle { static void Main() { ClientContext clientContext = new ClientContext("http://MyServer/"); // ClientContext.Current; Web oWebsite = clientContext.Web; } } } MSDN TechTalk - SharePoint 2010 Composites
Load Objects • Load (void) • LoadQuery(IEnumerable) clientContext.Load(oWebsite, website => website.Title); listInfo = clientContext.LoadQuery( collList.Include( list => list.Title, list => list.Fields.Include( field => field.Title, field => field.Id).Where( Id => field.Required == true))); MSDN TechTalk - SharePoint 2010 Composites
Execute Query • Execute()(synchronous) • ExecuteQueryAsync(SuccesHandler, FailureHandler)(asynchronous) • The Silverlight client object model provides both an ExecuteQuery() method, which can be called synchronously from threads that do not modify the user interface (UI), and an asynchronous ExecuteQueryAsync() method for cases where threads do modify the UI.” MSDN TechTalk - SharePoint 2010 Composites
Demo • SharePoint & Silverlight MSDN TechTalk - SharePoint 2010 Composites
Courses • The Swiss PDC 201028.10.2010 16:00 – 22:00 Zurich • Microsoft SharePoint 2010 Application Development (M-10175)13.12.2010 – 17.12.2010 Zurichwww.trivadis.com • Bootcamp for 70-573 TS: Microsoft SharePoint 2010, Application DevelopmentDecember, February Zurich MSDN TechTalk - SharePoint 2010 Composites