本文整理汇总了C#中Slickflow.Engine.Service.WorkflowService.GetProcessByVersion方法的典型用法代码示例。如果您正苦于以下问题:C# WorkflowService.GetProcessByVersion方法的具体用法?C# WorkflowService.GetProcessByVersion怎么用?C# WorkflowService.GetProcessByVersion使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Slickflow.Engine.Service.WorkflowService
的用法示例。
在下文中一共展示了WorkflowService.GetProcessByVersion方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UpdateProcess
public ResponseResult UpdateProcess(ProcessEntity entity)
{
var result = ResponseResult.Default();
try
{
var wfService = new WorkflowService();
var processEntity = wfService.GetProcessByVersion(entity.ProcessGUID, entity.Version);
processEntity.ProcessName = entity.ProcessName;
processEntity.XmlFileName = entity.XmlFileName;
processEntity.AppType = entity.AppType;
processEntity.Description = entity.Description;
wfService.UpdateProcess(processEntity);
result = ResponseResult.Success();
}
catch (System.Exception ex)
{
result = ResponseResult.Error(string.Format("更新流程记录失败,错误:{0}", ex.Message));
}
return result;
}
示例2: GetProcessByVersion
public ResponseResult<ProcessEntity> GetProcessByVersion(ProcessEntity obj)
{
var result = ResponseResult<ProcessEntity>.Default();
try
{
var wfService = new WorkflowService();
var entity = wfService.GetProcessByVersion(obj.ProcessGUID, obj.Version);
result = ResponseResult<ProcessEntity>.Success(entity);
}
catch (System.Exception ex)
{
result = ResponseResult<ProcessEntity>.Error(
string.Format("获取流程基本信息失败!{0}", ex.Message)
);
}
return result;
}