一步一步学习Ultimus - 九、Ultimus接口介绍和配置

九、   Ultimus接口介绍和配置

 

   Ultimus支持第三方应用如:.netasp等自动触发流程的功能,主要采用调用Ultimus对外公布的Web Service站点和EIK接口两种形式。
         EIKEnterprise Integration Kits)是Ultimus针对客户更加高级/深入的应用提供的一个专业模块,同时提供相应的专业EIK培训,包括科学的课程介绍以及详细的范例。EIK培训通常是在产品培训后一段时间进行。
         Ultimus中分两种模式,一个是设计时的模板,另一个是运行时的实例。在EIK中,设计时流程的对象是Process,步骤是Step;在运行时流程对象是Incident,步骤是Task。另外的是,你要远程调用Ultimus服务器上的方法,必须在安装好Ultimus的服务器上,路径是:C :\Inetpub\wwwroot\UltWeb\Web.Config 的配置文件中,添加一些配置信息,使得可以通过EIK调用相关的方法。配置信息如下:

< configuration >
  
< system.runtime.remoting >
    
< application >
      
< service >
        
< activated  mode ="SingleCall"  type ="Ultimus.OC.OrgChart,UltEik"   />
        
< activated  mode ="SingleCall"  type ="Ultimus.OC.User,UltEik"   />
        
< activated  mode ="SingleCall"  type ="Ultimus.OC.UserPreferences,UltEik"   />
        
< activated  mode ="SingleCall"  type ="Ultimus.OC.Department,UltEik"   />
        
< activated  mode ="SingleCall"  type ="Ultimus.OC.Group,UltEik"   />
        
< activated  mode ="SingleCall"  type ="Ultimus.OC.GroupMember,UltEik"   />
        
< activated  mode ="SingleCall"  type ="Ultimus.WFServer.Tasklist,UltEik"   />
        
< activated  mode ="SingleCall"  type ="Ultimus.WFServer.Task,UltEik"   />
        
< activated  mode ="SingleCall"  type ="Ultimus.WFServer.Variable,UltEik"   />
        
< activated  mode ="SingleCall"  type ="Ultimus.WFServer.TasklistView,UltEik"   />
        
< activated  mode ="SingleCall"  type ="Ultimus.WFServer.TasklistFilter,UltEik"   />
        
< activated  mode ="SingleCall"  type ="Ultimus.WFServer.DataboundInfo,UltEik"   />
        
< activated  mode ="SingleCall"  type ="Ultimus.WFServer.StepStatus,UltEik"   />
        
< activated  mode ="SingleCall"  type ="Ultimus.WFServer.Status,UltEik"   />
        
< activated  mode ="SingleCall"  type ="Ultimus.WFServer.ViewButton,UltEik"   />
        
< activated  mode ="SingleCall"  type ="Ultimus.WFServer.ViewColumn,UltEik"   />
        
< activated  mode ="SingleCall"  type ="Ultimus.WFServer.Incident,UltEik"   />
      
</ service >
      
< channels >
        
< channel  ref ="http" >
          
< serverProviders >
            
< formatter  ref ="soap"  typeFilterLevel ="Full"   />
          
</ serverProviders >
        
</ channel >
        
< channel  ref ="tcp" >
          
< serverProviders >
            
< formatter  ref ="soap"  typeFilterLevel ="Full"   />
          
</ serverProviders >
        
</ channel >
      
</ channels >
    
</ application >
  
</ system.runtime.remoting >
</ configuration >

 

      当配置好这个配置文件以后,在程序运行时,要初始化一下内容,意思是我要调用那一台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);
}

 

 

    UltimusServer直接输入一个IP地址就可以了。

这样,我们就可以在项目中,调用相关的EIK接口和方法了。

你可能感兴趣的:(接口)