Changes

HowTo:Create UBIK Workflow Activity Plugin

770 bytes added, 12:45, 2 February 2015
/* Workflow */
<source lang="csharp">
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Activities;
using System.ComponentModel;
using System.ComponentModel.Composition;
using UBIK.Kernel;
using UBIK.WorkflowBase;
 
namespace UBIK.Interface.Module.PluginExamples
{
/// <summary>
/// Sends a message to UBIK.Compiler.Debugger
/// </summary>
[UBIK.WorkflowBase.Attributes.Category("UBIK Plugins")]
[Export(typeof(UBIK.Injection.IUbikPlugin))]
[ExportMetadata("ID", "23B72354C149402E-A26FBC86-449E46D6-A7DA8D1B-F874B416724863C86894EA77")] [ExportMetadata("Type", typeof(myWorkflowActivityTestActivity))] [ExportMetadata("Name", "my WorkflowActivityTestActivity")] [ExportMetadata("Description", "does fancy things in version 2WF Activity: Sends a message to UBIK.4Compiler.Debugger")] [ExportMetadata("Version", 3)] [ExportMetadata("MinimumKernelVersion", "2.4.0.0")] [ExportMetadata("MinimumDatabaseVersion", "2.4.0.0"1)]
[ExportMetadata("Company", "Augmensys GmbH")]
[ExportMetadata("Copyright", "20142015, Augmensys GmbH")] public class myWorkflowActivity TestActivity : NativeActivity<string>, UBIK.Injection.IUbikPlugin, UBIK.WorkflowBase.IUBIKActivity
{
public InArgument<BaseClass> UBIKObject { get; set; }
public InArgument<string> Text { get; set; }
protected override void Execute(NativeActivityContext context)
{
BaseClass bc = this.UBIKObject.Get<BaseClass>(context);
 
string txt = this.Text.Get<string>(context);
 
UBIK.Compiler.Debugger.Output(this, txt);
 
this.Result.Set(context, txt);
}
}
}
 
</source>