本文整理匯總了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;
}