本文整理匯總了C#中Slickflow.Engine.Service.WorkflowService.GetRunningTasks方法的典型用法代碼示例。如果您正苦於以下問題:C# WorkflowService.GetRunningTasks方法的具體用法?C# WorkflowService.GetRunningTasks怎麽用?C# WorkflowService.GetRunningTasks使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Slickflow.Engine.Service.WorkflowService
的用法示例。
在下文中一共展示了WorkflowService.GetRunningTasks方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: button1_Click
private void button1_Click(object sender, EventArgs e)
{
TaskQueryEntity query = new TaskQueryEntity();
query.AppInstanceID = "4612";
query.AppName = "order";
query.UserID = "2";
var wfService = new WorkflowService();
wfService.GetRunningTasks(query);
}
示例2: GetRunningTasks
public IEnumerable<QueryResult> GetRunningTasks([FromODataUri]QueryEntity query)
{
IWorkflowService service = new WorkflowService();
Mapper.CreateMap<TaskViewEntity, QueryResult>();
Mapper.CreateMap<QueryEntity, TaskQueryEntity>();
var que = Mapper.Map<TaskQueryEntity>(query);
try
{
var result = service.GetRunningTasks(que);
if (result == null)
{
return new List<QueryResult>().AsEnumerable();
}
else
{
var aa = Mapper.Map<IList<QueryResult>>(result);
return aa.AsEnumerable();
}
}
catch
{
return new List<QueryResult>().AsEnumerable();
}
}
開發者ID:uname-yang,項目名稱:WorkFlow-Engine-OData-WebApi-with-OdataClient,代碼行數:24,代碼來源:QueryEntitiesController.cs
示例3: GetRunningTasks
public ResponseResult GetRunningTasks(TaskQueryEntity query)
{
IWorkflowService service = new WorkflowService();
var result = service.GetRunningTasks(query);
return ResponseResult.Success();
}