Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cis-workflow-gen
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
msc
cis-workflow-gen
Commits
60efeb9b
There was an error fetching the commit references. Please try again later.
Commit
60efeb9b
authored
3 years ago
by
Recolic K
Browse files
Options
Downloads
Patches
Plain Diff
add web
parent
aeed5310
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
web/cis.cc
+3
-3
3 additions, 3 deletions
web/cis.cc
web/index.php
+2
-2
2 additions, 2 deletions
web/index.php
with
5 additions
and
5 deletions
web/cis.cc
+
3
−
3
View file @
60efeb9b
// 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"
));
...
...
This diff is collapsed.
Click to expand it.
web/index.php
+
2
−
2
View file @
60efeb9b
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment