Skip to content
Snippets Groups Projects
Commit 60efeb9b authored by Recolic K's avatar Recolic K
Browse files

add web

parent aeed5310
No related branches found
No related tags found
No related merge requests found
// This is a DEMO. You may use any C++17 syntax here.
// 先用这种语法定义一个单独的Activity。
// 先演示一下定义一个Activity的正常语法
// (ActivityName, ClassName_In_Our_Code , DependencyEntityName)
Activity HaveASleep ("HaveASleep", "FleetAGC.Activities.DelayActivity", "");
HaveASleep.addInputSetting("Timespan", "60");
// 不想把上面的定义复制粘贴很多遍。那就偷个懒。
// 但是如果你要定义很多很多Activity,建议用这种方法偷懒。
#define DEFINE_ACTIVITY(name, entityName) \
Activity name (#name, "FleetAGC.Activities.DelayActivity", entityName); \
name.addInputSetting("Timespan", "60");
......@@ -25,7 +25,7 @@ DEFINE_ACTIVITY(ODFBSyncClient, "M365Poc.SPO.ODFBSyncClient")
// 把定义好的Activity组合一下,其中箭头表示串行,竖线表示并行。
auto block1 = GridManager >> FarmsAndTennats >> (CSC | FastSearch);
auto block2 = Microservices | MonitorAndAlert;
auto completeFlow = block1 | AuthAndProvision | block2 | SPOTooling | UXCDNFailover | ODFBSyncClient;
auto completeFlow = block1 | AuthAndProvision | block2 >> SPOTooling | UXCDNFailover | ODFBSyncClient;
// 最后指定一下workflow的名字就可以了。
println(completeFlow.generateXaml("FleetAGC.Workflows.SPOBuildoutPOCWorkflow"));
......
......@@ -18,7 +18,7 @@ $temp_path = 'cis.cc';
function showform($content) {
global $demo_path;
echo("<form action='index.php' id='subm' method='post'><input type='submit'><br /><br />");
echo('<textarea id="txa_content" name="content" form="subm" rows="50" cols="60">');
echo('<textarea id="txa_content" name="content" form="subm">');
if($content == '') {
$content = file_get_contents($demo_path);
$content = htmlentities($content, ENT_QUOTES);
......@@ -51,7 +51,7 @@ else {
<script>
var editor = CodeMirror.fromTextArea(document.getElementById("txa_content"), {
lineNumbers: true,
// extraKeys: {"Ctrl-Space": "autocomplete"},
matchBrackets: true,
mode: "text/x-c++src",
});
</script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment