1 / 49

SharePoint 2010 Composites (Teil II)

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

aman
Download Presentation

SharePoint 2010 Composites (Teil II)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SharePoint 2010 Composites (Teil II) Simon Amrein Consultant Simon.Amrein@trivadis.com Wallisellen, 05.10.2010

  2. 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

  3. Data are always part of the game. Agenda • SharePoint & WF • SharePoint & External Data • SharePoint & Silverlight on the Client MSDN TechTalk - SharePoint 2010 Composites

  4. SharePoint 2010 Workflow – How to Start? • I identified a business need… • But how do I start now??? MSDN TechTalk - SharePoint 2010 Composites

  5. SharePoint WF – How to Start? – Bad Idea • WRONG… MSDN TechTalk - SharePoint 2010 Composites

  6. SharePoint WF – How to Start? – Better Idea • Better… MSDN TechTalk - SharePoint 2010 Composites

  7. SharePoint WF – How to Start? – Best Idea • You’ve got it… But whenshould I usewhat? MSDN TechTalk - SharePoint 2010 Composites

  8. 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

  9. SharePoint 2010 Workflow Spectrum Quelle: SharePoint Conference MSDN TechTalk - SharePoint 2010 Composites

  10. SharePoint Workflow with Visio • Business Engineers design the Workflow • «Microsoft SharePoint Workflow» Template (Sequential) MSDN TechTalk - SharePoint 2010 Composites

  11. SharePoint Workflow – Visio Activities MSDN TechTalk - SharePoint 2010 Composites

  12. SharePoint Workflow - Export • Export Workflow as an Visio interchange format MSDN TechTalk - SharePoint 2010 Composites

  13. DEMO • Visio MSDN TechTalk - SharePoint 2010 Composites

  14. 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

  15. SharePoint Designer – Create new Workflow MSDN TechTalk - SharePoint 2010 Composites

  16. SharePoint Designer - WF • Actions & Conditions MSDN TechTalk - SharePoint 2010 Composites

  17. 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

  18. SharePoint Designer - Visualisation MSDN TechTalk - SharePoint 2010 Composites

  19. SharePoint Designer – Save as a Template • Extend Workflow in Visual Studio 2010 MSDN TechTalk - SharePoint 2010 Composites

  20. DEMO • SharePoint Designer MSDN TechTalk - SharePoint 2010 Composites

  21. SharePoint Workflow with Visual Studio 2010 • Only Farm Solution • WorkFlows: • Sequential • State Machine • Type: • Site • List MSDN TechTalk - SharePoint 2010 Composites

  22. 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

  23. SharePoint Activity for SharePoint Designer 2010 MSDN TechTalk - SharePoint 2010 Composites

  24. SharePoint Activity for SharePoint Designer 2010 • .actions File MSDN TechTalk - SharePoint 2010 Composites

  25. SharePoint Activity for SharePoint Designer 2010 • Web.Config MSDN TechTalk - SharePoint 2010 Composites

  26. SharePoint Activity for SharePoint Designer 2010 MSDN TechTalk - SharePoint 2010 Composites

  27. SharePoint Activity for SPD 2010 - IE MSDN TechTalk - SharePoint 2010 Composites

  28. SharePoint Activity for SPD 2010 - Visio MSDN TechTalk - SharePoint 2010 Composites

  29. Demo • Custom Action MSDN TechTalk - SharePoint 2010 Composites

  30. Data are always part of the game. Agenda • SharePoint & WF • SharePoint & External Data • SharePoint & Silverlight on the Client MSDN TechTalk - SharePoint 2010 Composites

  31. 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

  32. SharePoint 2010 – External Data • Again – We have different Tools MSDN TechTalk - SharePoint 2010 Composites

  33. Solution Types, Personas and Tools Simple SharePoint Designer MSDN TechTalk - SharePoint 2010 Composites

  34. 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

  35. SharePoint Designer • Connecting to an externaldatasource – Just a fewclicks to go… MSDN TechTalk - SharePoint 2010 Composites

  36. Visual Studio 2010 Support • The tool for creating “.NET Connectors” MSDN TechTalk - SharePoint 2010 Composites

  37. 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

  38. Demo • External List – Visual Studio MSDN TechTalk - SharePoint 2010 Composites

  39. Data are always part of the game. Agenda • SharePoint & WF • SharePoint & External Data • SharePoint & Silverlight on the Client MSDN TechTalk - SharePoint 2010 Composites

  40. 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

  41. Client Object Model MSDN TechTalk - SharePoint 2010 Composites

  42. Client Object Model MSDN TechTalk - SharePoint 2010 Composites

  43. 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

  44. 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

  45. 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

  46. 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

  47. Demo • SharePoint & Silverlight MSDN TechTalk - SharePoint 2010 Composites

  48. 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

  49. Thank you!

More Related