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.