UPDATE: To je objavio na CodePlex ovdje: http://www.codeplex.com/spdwfextensions
UPDATE: Vidi ovdje za najnovija novitetima: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!381.entry
UPDATE: Pogledajte ovdje za moje misli na komercijalizaciju ovog projekta: 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 (otpremiti) any C# function that you incorporated into the linked assembly.
Do kraja listopada, 2007, this is just an initial version of the project. I plan to expand it with a number of additional functions, uključujući i podniz, indeks, zamijeniti, 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.
Ako imate bilo kakve komentare, pitanja ili sugestije, molimo vas da ih ostavite u komentarima ili email me.
Odricanje:
I make absolutely no claims as to the suitability of this for any purpose. Use at your own risk.
Instalacijskih koraka (ga treba provesti za svaki WFE u farmi):
1. Preuzmite zip i ekstrakt..
2. Install the .dll into the GAC. I usually open c:\windows montaža pomoću programa Windows Explorer i kopirajte ga ima.
3. Izmjena web.config dodati sklop za sigurne kontrole:
<System.Workflow.ComponentModel.WorkflowCompiler>
<authorizedTypes><authorizedType Assembly="SpdGenericInterface, Verzija = 1.0.0.0, Kultura = neutralni, PublicKeyToken = abe076fd8125f3c4" Namespace="Nivlag" TypeName="*" Authorized="True" />
4. Copy "SpdGenericInterface.actions" na C:\Program Files Common Files Microsoft Shared web server ekstenzije 12 OBRAZAC 1033 Workflow
Imajte na umu da iznad lokacija je specifična na engleski jezik instalacije.
5. Zatvori SharePoint Designer (ako je već otvaranje).
6. iisreset
7. Otvorite SPD i stvoriti novi tijek rada.
Ako sve ide dobro, trebali biti nagrađeni s novim kategoriji akciji:
Bilješke:
Vidjeti ovdje (http://blogs.msdn.com/sharepointdesigner/archive/2007/03/15/adding-activities-to-spd.aspx) za sjajan pregled procesa za stvaranje, instaliranje i konfiguriranje rješenje kao što je ovaj.
. Zip je dizajniran za ekstrakt izravno na vas c:\ drive. If you do this, možete otvoriti projekt i sve staze će biti u skladu.
Da biste koristili ovu Visual Studio, you probably need to install "Extensions for Windows WF".
The initial upload contains just one "dispatcher function", "ToLower()". To add more functionality, dodajte ga Execute metodu kao što je prikazano:
zaštićen nadjačati ActivityExecutionStatus Izvršiti(ActivityExecutionContext executionContext) { niz functionToDispatch; functionToDispatch = to.DispatchFunction.ToLower(); prebaciti (functionToDispatch) { slučaj "tolower()": { to.OutResult1 = to.InParam1.ToLower(); razbiti; } Zadani: { to.OutResult1 = "Unknown function: [" + to.DispatchFunction + "]."; razbiti; } } povratak ActivityExecutionStatus.Zatvoreno; } // ActivityExecutionStatus }
Tada, re-build the project and copy the assembly to the GAC. I expect an iisreset would be required.
moj con Dizajner ga vidjeti, ali kada sam kliknite na njega ništa ne pojavljuju… molim pomoć… tnx.
Definitivno zvuči kao dobra ideja. Volio bih da se uključe u korištenju i testiranju funkcija. Istina je da su string funkcije ograničene UPZ, but the "Dynamic String Builder" je prilično moćan.
<a href ="http://dataformwebpart.com">-Monjo </a>
I’m using this custom activity to Replace() funkcija. 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(), kao. 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.