一步一步学习Ultimus - 九、Ultimus接口介绍和配置
九、 Ultimus接口介绍和配置
Ultimus支持第三方应用如:.net、asp等自动触发流程的功能,主要采用调用Ultimus对外公布的Web Service站点和EIK接口两种形式。
EIK(Enterprise Integration Kits)是Ultimus针对客户更加高级/深入的应用提供的一个专业模块,同时提供相应的专业EIK培训,包括科学的课程介绍以及详细的范例。EIK培训通常是在产品培训后一段时间进行。
Ultimus中分两种模式,一个是设计时的模板,另一个是运行时的实例。在EIK中,设计时流程的对象是Process,步骤是Step;在运行时流程对象是Incident,步骤是Task。另外的是,你要远程调用Ultimus服务器上的方法,必须在安装好Ultimus的服务器上,路径是:C :\Inetpub\wwwroot\UltWeb\Web.Config 的配置文件中,添加一些配置信息,使得可以通过EIK调用相关的方法。配置信息如下:
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
当配置好这个配置文件以后,在程序运行时,要初始化一下内容,意思是我要调用那一台Ultimus服务器:
public static void Init(string UltimusServer)
{
string url = "http://" + UltimusServer + "/UltWeb";
RemotingConfiguration.RegisterActivatedClientType(typeof(Ultimus.OC.User), url);
RemotingConfiguration.RegisterActivatedClientType(typeof(Ultimus.OC.OrgChart), url);
RemotingConfiguration.RegisterActivatedClientType(typeof(Ultimus.WFServer.Tasklist), url);
RemotingConfiguration.RegisterActivatedClientType(typeof(Ultimus.WFServer.Task), url);
RemotingConfiguration.RegisterActivatedClientType(typeof(Ultimus.WFServer.TasklistFilter), url);
RemotingConfiguration.RegisterActivatedClientType(typeof(Ultimus.WFServer.Variable), url);
RemotingConfiguration.RegisterActivatedClientType(typeof(Ultimus.WFServer.Filters), url);
RemotingConfiguration.RegisterActivatedClientType(typeof(Ultimus.WFServer.Incident), url);
}
{
string url = "http://" + UltimusServer + "/UltWeb";
RemotingConfiguration.RegisterActivatedClientType(typeof(Ultimus.OC.User), url);
RemotingConfiguration.RegisterActivatedClientType(typeof(Ultimus.OC.OrgChart), url);
RemotingConfiguration.RegisterActivatedClientType(typeof(Ultimus.WFServer.Tasklist), url);
RemotingConfiguration.RegisterActivatedClientType(typeof(Ultimus.WFServer.Task), url);
RemotingConfiguration.RegisterActivatedClientType(typeof(Ultimus.WFServer.TasklistFilter), url);
RemotingConfiguration.RegisterActivatedClientType(typeof(Ultimus.WFServer.Variable), url);
RemotingConfiguration.RegisterActivatedClientType(typeof(Ultimus.WFServer.Filters), url);
RemotingConfiguration.RegisterActivatedClientType(typeof(Ultimus.WFServer.Incident), url);
}
UltimusServer直接输入一个IP地址就可以了。
这样,我们就可以在项目中,调用相关的EIK接口和方法了。