がSystem.Workflow.ComponentModel.Activityから継承農場展開活動、である(おそらくサブクラスSequenceActivityを使用して、本当にそれは問題ではありません)作成されていない必要なアクションはワークフロー\ 1033 \ TEMPLATEにデプロイされ、ファイル
<?xml version="1.0" encoding="utf-8" ?>
<WorkflowInfo>
<Actions Sequential="then" Parallel="and">
<Action Name="Description for SP Designer"
Assembly="$SharePoint.Project.AssemblyFullName$"
ClassName="AssemblyName.ClassName"
AppliesTo="all"
Category="SPD category"
UsesCurrentItem="true"
>
<RuleDesigner Sentence="Line as it appears in SPD workflow" />
<Parameters>
<Parameter Name="__ActivationProperties" Type="Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties, Microsoft.SharePoint" Direction="In" />
</Parameters>
</Action>
</Actions>
</WorkflowInfo>
SPDは、アクションファイルからの活動のリストを読み込みます。ファイルを追加するとメニューに追加されます。実際にワークフローに追加するには、カスタムワークフローアクティビティをクラス名で承認する必要もあります。許可されたタイプを追加するには
、私は次のようspwebmodificationでフィーチャーレシーバーを使用します。
private SPWebConfigModification CreateWebConfigModification(string assembly, string assemblyNamespace)
{
return new SPWebConfigModification()
{
Type = (SPWebConfigModification.SPWebConfigModificationType)0,
Name = String.Format("authorizedType[@Assembly='{0}'][@Namespace='{1}'][@TypeName='*'][@Authorized='True']", (object)assembly, (object)assemblyNamespace),
Path = "configuration/System.Workflow.ComponentModel.WorkflowCompiler/authorizedTypes",
Owner = assemblyNamespace,
Sequence = 0U,
Value = String.Format("<authorizedType Assembly='{0}' Namespace='{1}' TypeName='*' Authorized='True' />", (object)assembly, (object)assemblyNamespace)
};
}
これは、インストール/アンインストール中に使用することができますSPWebConfigModificationを生成します。
は、確かに問題であると思われます。 SharePoint Designerは、SharePointサーバーからワークフローアセンブリをダウンロードしてGACにインストールしようとしますが、ローカル管理者でない場合(ターミナルサーバー環境ではほとんどありません)は失敗します。 –