阅读:2148 回复:2
实名用户_f294cd19
1

帖子

1

跟帖

1000

积分

初级榴莲
初级榴莲

[已解决]关于C#代码连接服务器发起流程,如何连接服务器?参数如何填写?

楼主#
更多 发布于:2017-05-04 16:58
  OThinker.Clusterware.ConnectionSetting[] config = new OThinker.Clusterware.ConnectionSetting[1];
                config[0] = new OThinker.Clusterware.ConnectionSetting();
                config[0].Address = "127.0.0.1";
                config[0].Port = 8211;
                config[0].ObjectUri = "";
                OThinker.Clusterware.LogicUnitConnectionPool pool = new OThinker.Clusterware.LogicUnitConnectionPool(config, OThinker.Clusterware.AuthenticationType.Forms, "H3BPM", "Administrator", "000000");
                OThinker.H3.Client.EngineClient h3=new OThinker.H3.Client.EngineClient(pool);



目前一直报错找不到服务器
OThinker.Clusterware.ConnectionException: ConnectionFailed: No available servers.
tanw
1

帖子

35

跟帖

5872

积分

高级榴莲
高级榴莲
  • 社区居民
1楼#
发布于:2017-05-04 19:38
帖内置顶  –    –  2017-05-08 18:23
参考这段代码:
OThinker.H3.Connection conn = new OThinker.H3.Connection();
        OThinker.Clusterware.ConnectionResult result = conn.Open("127.0.0.1", 8211,"DefaultEngine", "administrator", "000000");
        if (result == OThinker.Clusterware.ConnectionResult.Success)
        {
            //...
        }
tanw
1

帖子

35

跟帖

5872

积分

高级榴莲
高级榴莲
  • 社区居民
2楼#
发布于:2017-05-04 19:38
参考这段代码:
OThinker.H3.Connection conn = new OThinker.H3.Connection();
        OThinker.Clusterware.ConnectionResult result = conn.Open("127.0.0.1", 8211,"DefaultEngine", "administrator", "000000");
        if (result == OThinker.Clusterware.ConnectionResult.Success)
        {
            //...
        }
t156965365
46

帖子

688

跟帖

4536

积分

H3 BPM互助团队
H3 BPM互助团队
  • 社区居民
3楼#
发布于:2017-05-05 08:37
用webservice的方式,参考如下帖子
http://bbs.h3bpm.com/read.php?tid=1438&fid=30&page=1#8430

如果只是在后台发起流程,参考\Portal\WebServices\BPMService.asmx中的写法
游客

返回顶部