本文整理汇总了C#中Slickflow.Engine.Service.WorkflowService.GetProcessFile方法的典型用法代码示例。如果您正苦于以下问题:C# WorkflowService.GetProcessFile方法的具体用法?C# WorkflowService.GetProcessFile怎么用?C# WorkflowService.GetProcessFile使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Slickflow.Engine.Service.WorkflowService
的用法示例。
在下文中一共展示了WorkflowService.GetProcessFile方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitFlowXmlInfo
protected void InitFlowXmlInfo()
{
String ProcessGUID = Request.QueryString["ProcessGUID"] == null ? String.Empty : Request.QueryString["ProcessGUID"].ToString();
if (ProcessGUID != String.Empty)
{
IWorkflowService wfService = new WorkflowService();
ProcessFileEntity processFileEntity = wfService.GetProcessFile(ProcessGUID);
if (processFileEntity != null)
{
this.txtProcessGUID.Value = processFileEntity.ProcessGUID.ToString();
this.wfxml.InnerHtml = processFileEntity.XmlContent;
}
}
}
示例2: QueryProcessFile
/// <summary>
/// 读取XML文件
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public ResponseResult<ProcessFileEntity> QueryProcessFile(ProcessFileQuery query)
{
var result = ResponseResult<ProcessFileEntity>.Default();
try
{
var wfService = new WorkflowService();
var entity = wfService.GetProcessFile(query.ProcessGUID, query.Version);
result = ResponseResult<ProcessFileEntity>.Success(entity);
}
catch (System.Exception ex)
{
result = ResponseResult<ProcessFileEntity>.Error(string.Format("获取流程XML文件失败!{0}", ex.Message));
}
return result;
}