本文整理汇总了C#中Container.GetReadyTasks方法的典型用法代码示例。如果您正苦于以下问题:C# Container.GetReadyTasks方法的具体用法?C# Container.GetReadyTasks怎么用?C# Container.GetReadyTasks使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Container
的用法示例。
在下文中一共展示了Container.GetReadyTasks方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TestMethod
private static void TestMethod()
{
string process_guid = "40c4be7f-2c7d-4391-92a3-32e2dc24f58f";
string application_instance_id = "56";
// var serviceurl = "http://172.16.22.26:8000/odata/";
var serviceurl = "http://localhost:53433/odata/";
var data = new Container(new Uri(serviceurl));
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Window w = new Window();
w.Id = 1;
w.Name = "2";
w.CurrentShape = new Circle() { Radius = 1, HasBorder = true };
w.OptionalShapes.Add(new Circle() { Radius = 1, HasBorder = true });
var ls = data.ListAc(w).GetValue();
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var eventDataItems = data.Vedios.ToList();
data.AddObject("Vedios", new Vedio() { ID = 8, Title = "Inferno of Retribution", Year = 2005 });
data.SaveChanges();
var eventDataItemsw = data.Vedios.Where(p => p.Title == "2").ToList();
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
WfRunner appRunner = new WfRunner();
appRunner.ProcessGUID = process_guid;
appRunner.AppInstanceID = application_instance_id;
appRunner.AppName = "ApiTest";
appRunner.UserID = "usr1";
appRunner.UserName = "usr1";
appRunner.NextActivityPerformers.Add(new Point { PathID = "fc8c71c5-8786-450e-af27-9f6a9de8560f", UserID = "usr20", UserName = "usr20" });
var aa = data.StartProcess(appRunner).GetValue();
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
QueryEntity app = new QueryEntity();
app.ProcessGUID = process_guid;
app.AppInstanceID = null;
app.AppName = "ApiTest";
app.UserID = "usr2";
app.UserName = "usr2";
var bb = data.GetRunningTasks(app).Execute();
var cc = data.GetReadyTasks(app).Execute();
}
示例2: Multipleinstance
//O-D-|DDD|-D-O
private static void Multipleinstance()
{
string process_guid = "40c4be7f-2c7d-4391-92a3-32e2dc24f58e";
string application_instance_id = Guid.NewGuid().ToString();
//var serviceurl = "http://172.16.22.26:8000/odata/";
var serviceurl = "http://localhost:53433/odata/";
var data = new Container(new Uri(serviceurl));
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
WfRunner appRunner = new WfRunner();
appRunner.ProcessGUID = process_guid;
appRunner.AppInstanceID = application_instance_id;
appRunner.AppName = "ApiTest";
appRunner.UserID = "usr1";
appRunner.UserName = "usr1";
appRunner.NextActivityPerformers.Add(new Point { PathID = "fc8c71c5-8786-450e-af27-9f6a9de8560f", UserID = "usr21", UserName = "usr21" });
appRunner.NextActivityPerformers.Add(new Point { PathID = "fc8c71c5-8786-450e-af27-9f6a9de8560f", UserID = "usr22", UserName = "usr22" });
var aa = data.StartProcess(appRunner).GetValue();
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var app = new QueryEntity();
app.ProcessGUID = process_guid;
app.AppInstanceID = null;
app.AppName = "ApiTest";
app.UserID = "usr21";
app.UserName = "usr21";
var cc = data.GetReadyTasks(app).Execute();
appRunner = new WfRunner();
appRunner.ProcessGUID = process_guid;
appRunner.AppInstanceID = application_instance_id;
appRunner.AppName = "ApiTest";
appRunner.UserID = "usr21";
appRunner.UserName = "usr21";
appRunner.NextActivityPerformers.Add(new Point { PathID = "39c71004-d822-4c15-9ff2-94ca1068d745", UserID = "usr3", UserName = "usr3" });
string ss = data.RunProcess(appRunner).GetValue();
appRunner = new WfRunner();
appRunner.ProcessGUID = process_guid;
appRunner.AppInstanceID = application_instance_id;
appRunner.AppName = "ApiTest";
appRunner.UserID = "usr22";
appRunner.UserName = "usr22";
appRunner.NextActivityPerformers.Add(new Point { PathID = "39c71004-d822-4c15-9ff2-94ca1068d745", UserID = "usr3", UserName = "usr3" });
ss = data.RunProcess(appRunner).GetValue();
app = new QueryEntity();
app.ProcessGUID = process_guid;
app.AppInstanceID = null;
app.AppName = "ApiTest";
app.UserID = "usr3";
app.UserName = "usr3";
var dd = data.GetReadyTasks(app).Execute(); ///XXX
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
appRunner = new WfRunner();
appRunner.ProcessGUID = process_guid;
appRunner.AppInstanceID = application_instance_id;
appRunner.AppName = "ApiTest";
appRunner.UserID = "usr3";
appRunner.UserName = "usr3";
appRunner.NextActivityPerformers.Add(new Point { PathID = "b70e717a-08da-419f-b2eb-7a3d71f054de", UserID = "", UserName = "" });
ss = data.RunProcess(appRunner).GetValue();
}
示例3: OrSplitEnd
// D
// / \
//O-D-R D-O
// \ /
// D
private static void OrSplitEnd()
{
string process_guid = "40c4be7f-2c7d-4391-92a3-32e2dc24f58b";
string application_instance_id = Guid.NewGuid().ToString();
//var serviceurl = "http://172.16.22.26:8000/odata/";
var serviceurl = "http://localhost:53433/odata/";
var data = new Container(new Uri(serviceurl));
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
WfRunner appRunner = new WfRunner();
appRunner.ProcessGUID = process_guid;
appRunner.AppInstanceID = application_instance_id;
appRunner.AppName = "ApiTest";
appRunner.UserID = "usr1";
appRunner.UserName = "usr1";
appRunner.NextActivityPerformers.Add(new Point { PathID = "e60084e4-517a-4892-a290-517159f1b7f4", UserID = "usr21", UserName = "usr21" });
appRunner.NextActivityPerformers.Add(new Point { PathID = "76f7ef75-b538-40c8-b529-0849ca777b95", UserID = "", UserName = "" });
var aa = data.StartProcess(appRunner).GetValue();
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
QueryEntity app = new QueryEntity();
app.ProcessGUID = process_guid;
app.AppInstanceID = null;
app.AppName = "ApiTest";
app.UserID = "usr21";
app.UserName = "usr21";
var cc = data.GetReadyTasks(app).Execute();
//XXX
appRunner = new WfRunner();
appRunner.ProcessGUID = process_guid;
appRunner.AppInstanceID = application_instance_id;
appRunner.AppName = "ApiTest";
appRunner.UserID = "usr21";
appRunner.UserName = "usr21";
appRunner.NextActivityPerformers.Add(new Point { PathID = "76f7ef75-b538-40c8-b529-0849ca777b94", UserID = "", UserName = "" });
string ss = data.RunProcess(appRunner).GetValue();
}