UPDATE: Dan ġie rilaxxata għall CodePlex hawn: http://www.codeplex.com/spdwfextensions
UPDATE: Ara hawn għal noti rilaxx aħħar: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!381.entry
UPDATE: Ara hawn għal ħsibijiet tiegħi fuq il-kummerċjalizzazzjoni dan il-proġett: 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 (dispaċċ) any C# function that you incorporated into the linked assembly.
Bħala ta 'Ottubru tard, 2007, this is just an initial version of the project. I plan to expand it with a number of additional functions, inklużi substring, indiċi, jissostitwixxu, 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.
Jekk għandek xi kummenti, mistoqsijiet jew suġġerimenti, jekk jogħġbok jħallu lilhom fil-kummenti jew email me.
Ċaħda ta 'responsabbiltà:
I make absolutely no claims as to the suitability of this for any purpose. Use at your own risk.
Passi installazzjoni (li għandhom jiġu segwiti għal kull WFE fil-farm):
1. Niżżel il-. Zip u estratt.
2. Install the .dll into the GAC. I usually open c:\użu twieqi assemblaġġ twieqi Explorer u kopja hemm.
3. Timmodifika web.config li żżid l-assemblea għall-kontrolli sikuri:
<System.Workflow.ComponentModel.WorkflowCompiler>
<authorizedTypes><authorizedType Assembly="SpdGenericInterface, Verżjoni = 1.0.0.0, Kultura = newtrali, PublicKeyToken = abe076fd8125f3c4" Namespace="Nivlag" TypeName="*" Authorized="True" />
4. Copy "SpdGenericInterface.actions" sa C:\Program Files Files Komuni Microsoft maqsuma estensjonijiet web server 12 TEMPLATE 1033 Workflow
Innota li l-post ta 'hawn fuq huwa speċifiku għall-installazzjonijiet tal-lingwa Ingliż.
5. Designer SharePoint Agħlaq (jekk huwa diġà miftuħa).
6. iisreset
7. Iftaħ SPD u toħloq workflow ġdida.
Jekk kollox imur sew, inti għandek tkun ippremjata bi kategorija ġdida ta 'azzjoni:
Noti:
Ara hawn (http://blogs.msdn.com/sharepointdesigner/archive/2007/03/15/adding-activities-to-spd.aspx) għal ħarsa terrific tal-proċess għall-ħolqien, installazzjoni u l-konfigurazzjoni ta 'soluzzjoni bħal din.
Il. Zip hija mfassla biex estratt direttament lilek c:\ drive. If you do this, inti tista 'tiftaħ il-proġett u l-mogħdijiet kollha ser ikunu konsistenti.
Biex tuża dan studio viżwali, you probably need to install "Extensions for Windows WF".
The initial upload contains just one "dispatcher function", "ToLower()". To add more functionality, iżżidhiex mal-metodu Teżegwixxi kif muri:
protetti override ActivityExecutionStatus Teżegwixxi(ActivityExecutionContext executionContext) { string functionToDispatch; functionToDispatch = dan.DispatchFunction.ToLower(); jaqilbu (functionToDispatch) { każ "tolower()": { dan.OutResult1 = dan.InParam1.ToLower(); break; } default: { dan.OutResult1 = "Unknown function: [" + dan.DispatchFunction + "]."; break; } } ritorn ActivityExecutionStatus.Magħluq; } // ActivityExecutionStatus }
Imbagħad, re-build the project and copy the assembly to the GAC. I expect an iisreset would be required.