Writing a SmartObject Service
来源:互联网 发布:数据恢复免费版 编辑:程序博客网 时间:2024/06/05 19:55
最近在研究K2的工作流平台,其中有一个比较重要的部分是开发自定义服务,让K2能够使用.下面是一些介绍
SmartObject Services are the conduit for provisioning data from data sources into SmartObjects.
A SmartObject Service is simply a class that must override several methods that are K2 blackpearl
SmartObject server requirements. The implementation of these methods can be simple or complex as
needed. This section delves in detail on how to create a stub for a SmartObject Service but does not go
into the details of an actual implementation for getting data from a data source.
To create a SmartObject Service, first create a code library project in Visual Studio and then add a reference
to SourceCode.SmartObjects.Services.ServiceSDK , which is located in //Program Files/
K2 blackpearl/Host Server/Bin/ . Once this library is referenced, right - click the reference in Visual
Studio Solution Explorer, go to properties of the reference, and change Copy Local property from True to
False, then add a reference to the System.Transactions library. Once both of the libraries have been
added, create a class that inherits from ServiceAssemblyBase . There can only be one class of
ServiceAssemblyBase per code project. All classes that inherit from ServiceAssemblyBase must
override the following methods: GetConfigSection() , DescribeSchema() , Execute() , and Extend() .
简单地说,要继承ServiceAssemblyBase,重写它的四个方法。
- Writing a SmartObject Service
- Writing a Service Program's main Function
- Writing a Winsock 2 Layered Service Provider
- Writing a Winsock 2 Layered Service Provider
- cxf-Writing a service with Spring
- Writing a Simple Service and Client (C++)
- Writing a Winsock 2 Layered Service Provider(LSP) 译文(zz)
- experiment: Writing a service that runs under svchost
- Writing and Hosting a Web Service in the SharePoint 2010 Demo Virtual Machine
- Writing a Winsock 2 Layered Service Provider(LSP) 译文(zz)(下)
- Unraveling the Mysteries of Writing a Winsock 2 Layered Service Provider
- Writing a ServiceMain Function
- Writing a Research Paper
- Writing a Network Driver
- Writing a Player Plugin
- Writing a Thesis Statement
- Writing a Persuasive Essay
- Writing a Critical Essay
- 网吧禁用解禁USB U盘方法
- .NET : 读取XML文档的处理指令
- SharePoint : 谁说WSS不支持审核
- Visio 开发【转载】
- SharePoint : 为WSS或者MOSS编写自定义的Web Service
- Writing a SmartObject Service
- Building Custom Field Types in Windows SharePoint Services 3.0
- .NET : 隐藏TabControl的标签栏
- .NET : 动态生成工作流定义文件并且进行编译
- Creating a K2 Deployment Package from code
- MOSS排错快速入门 【转载】
- 如何在生产环境部署K2的流程
- ASP.NET & JAVASCRIPT: 在Javascript代码中访问服务器控件的ID
- 正确地使用投影仪和移动硬盘