I-UPDATE: Ito ay inilabas sa CodePlex dito: http://www.codeplex.com/spdwfextensions
I-UPDATE: Tingnan dito para sa pinakabagong tala sa release: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!381.entry
I-UPDATE: Tingnan dito para sa aking mga saloobin sa commercializing ang proyektong ito: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!569.entry
This project provides a custom activity in SharePoint Designer. Use this custom activity to invoke (pahatid) any C# function that you incorporated into the linked assembly.
Bilang ng late Oktubre, 2007, this is just an initial version of the project. I plan to expand it with a number of additional functions, kabilang ang substring, talatuntunan, palitan, invoking web services and anything that seems useful or interesting. I also plan to post this to codeplex once I have my act together on that front. This will also be deployable as a solution at some point.
Kung mayroon kang anumang mga puna, mga katanungan o suhestyon, mangyaring mag-iwan ang mga ito sa mga komento o mag-email sa akin.
Pagtatatuwa:
I make absolutely no claims as to the suitability of this for any purpose. Use at your own risk.
Pag-install hakbang (na sinundan para sa bawat WFE sa bukid):
1. I-download ang. Zip at extract.
2. Install the .dll into the GAC. I usually open c:\windows assembly gamit ang explorer window at kopyahin ito doon.
3. Baguhin web.config upang idagdag ang assembly sa ligtas na mga kontrol:
<System.Workflow.ComponentModel.WorkflowCompiler>
<authorizedTypes><authorizedType Assembly="SpdGenericInterface, Bersyon = 1.0.0.0, Culture = neutral, PublicKeyToken = abe076fd8125f3c4" Namespace="Nivlag" TypeName="*" Authorized="True" />
4. Copy "SpdGenericInterface.actions" sa C:\Program Files Common Files Microsoft Naibahaging web server extension 12 TEMPLATE 1033 workflow
Tandaan na ang nasa itaas na lokasyon ay tinukoy sa ingles wika pag-install.
5. Isara ang SharePoint Designer (kung ito ay bukas alreadycreated).
6. iisreset
7. Buksan SPD at lumikha ng isang bagong workflow.
Kung ang lahat ng napupunta na rin, Dapat mo ay gagantimpalaan ng isang bagong kategorya ng mga aksyon:
Mga Tala:
Tingnan dito (http://blogs.msdn.com/sharepointdesigner/archive/2007/03/15/adding-activities-to-spd.aspx) para sa isang kakila-kilabot na pangkalahatang-ideya ng proseso para sa paglikha ng, pag-install at pag-configure ng solusyon ganito.
Ang. Zip ay dinisenyo upang kunin mismo sa iyo c:\ drive. If you do this, maaari mong buksan ang proyekto at ang lahat ng mga path ay maging pare-pareho.
Upang gamitin ito sa Visual Studio, you probably need to install "Extensions for Windows WF".
The initial upload contains just one "dispatcher function", "ToLower()". To add more functionality, idagdag ito sa Ipatupad ang mga pamamaraan tulad ng ipinapakita:
protektado magpawalang-bisa ActivityExecutionStatus Isakatuparan(ActivityExecutionContext executionContext) { pisi functionToDispatch; functionToDispatch = ito.DispatchFunction.ToLower(); lumipat (functionToDispatch) { kaso "tolower()": { ito.OutResult1 = ito.InParam1.ToLower(); mabasag; } default: { ito.OutResult1 = "Unknown function: [" + ito.DispatchFunction + "]."; mabasag; } } bumalik ActivityExecutionStatus.Sarado; } // ActivityExecutionStatus }
Pagkatapos, re-build the project and copy the assembly to the GAC. I expect an iisreset would be required.
aking Designer salungat makita ito ngunit kapag i-click dito walang lumitaw… pakitulungan… tnx.
Talagang tunog tulad ng isang magandang ideya. Gusto ko iyan upang sangkot sa paggamit at pagsubok ng mga pag-andar. Ito ay totoo na ang string pag-andar ay limitado sa SPD, but the "Dynamic String Builder" ay medyo malakas.
<a href ="http://dataformwebpart.com">-Monjo </isang>
I’m using this custom activity to Replace() tungkulin. The farm is SharePoint 2007, with load-balanced web front-ends. I am getting intermittent failure to start errors, but the workflows usually restart in 5 – 15 min. I believe the timer jobs Workflow and Workflow Failover are restarting the workflows. I reviewed the SharePoint logs, and finally caught this error.
RunWorkflow: Microsoft.SharePoint.SPException:
at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.LoadXomlAssembly(String assmNameIn, SPWeb web)
at Microsoft.SharePoint.Workflow.SPWinOeHostServices.CreateInstance(Guid trackingId, SPWorkflow workflow)
at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(Guid trackingId, SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)
at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow originalWorkflow, SPWorkflow workflow, Collection`1 events, SPRunWorkflowOptions runOptions)
I found a reference to this error on another blog, http://www.kentd.com/index.php/all-blog/218-nivlag-and-spdgenericinterface. The author indicated he was using the custom actitivity Replace(), as well. Have you seen this error? Do you have any suggestions on how to resolve it?
Sorry I never responded. At thi’s point, it’s probably moot. I hope you were able to resolve it.