文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>XML参与者的XML格式

XML参与者的XML格式

时间:2010-08-26  来源:Brian.KFC

XML参与者所用XML格式如下:

<Participant><User ID="GUID" Name="KFC"/><User ID="GUID2" Name="KFC2"/></Participant>

 

这份XML生成完后如何使用呢?

 

可以通过WorkflowHelper.SetParameter函数把这份XML作为XMLDocument传入,参数名要跟XML参与者中的Parameter属性相对应。这样XML参与者就可以从这份XML中求解出所需的参与者了。

例如,参数名为ActorData,则XML参与者中的设置为:

Attribute: ID

Parameter: ActorData

Prefix: 留空

XPath: //Participant

 

示例代码如下:

string xml = "<Participant><User ID='GUID' Name='KFC'/><User ID='GUID2' Name='KFC2'/></Participant>";

XmlDocument xmlDoc = new XmlDocument();

xmlDoc.loadXml(xml);

WorkflowHelper helper = new WorkflowHelper();

helper.SetParameter("ActorData", xmlDoc);

helper.Save();

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载