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
88e52afe
There was an error fetching the commit references. Please try again later.
Commit
88e52afe
authored
4 years ago
by
Bensong Liu
Browse files
Options
Downloads
Plain Diff
Merge branch 'allow_explicit_arg' into master
parents
cae3ae12
70fec4db
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
activity.hpp
+13
-4
13 additions, 4 deletions
activity.hpp
xaml-template.hpp
+11
-0
11 additions, 0 deletions
xaml-template.hpp
with
24 additions
and
4 deletions
activity.hpp
+
13
−
4
View file @
88e52afe
...
...
@@ -21,9 +21,14 @@ namespace CIS {
class
Flow
;
class
Metadata
;
class
Activity
{
p
ublic
:
class
Activity
Base
{
p
rivate
:
friend
Flow
;
virtual
rlib
::
string
generateXaml
()
const
=
0
;
};
class
Activity
:
private
ActivityBase
{
public:
// All `Name` should not contain QuotationMark(")
Activity
(
string
displayName
,
string
className
,
string
entityName
=
""
)
:
displayName
(
Utility
::
HtmlEscapeString
(
displayName
)),
className
(
className
),
entityName
(
entityName
),
taskId
(
Utility
::
GenUUID
())
{}
...
...
@@ -50,7 +55,7 @@ namespace CIS {
auto
inputSettingsString
=
",
\n
"
_rs
.
join
(
inputSettingStrings
);
return
rlib
::
string
(
templates
::
ACTIVITY_DICT_TEMPLATE_UNESCAPED
).
replace_once
(
"__TEMPLATE_ARG_DictLines"
,
inputSettingsString
);
}
auto
generateXaml
()
const
{
virtual
rlib
::
string
generateXaml
()
const
{
rlib
::
string
xamlCode
;
if
(
inputSettings
.
empty
())
{
...
...
@@ -75,9 +80,13 @@ namespace CIS {
}
};
class
ManualOperation
:
private
ActivityBase
{
};
class
Flow
{
public:
Flow
(
const
Activity
&
activity
)
{
Flow
(
const
Activity
Base
&
activity
)
{
xamlCode
=
activity
.
generateXaml
();
}
Flow
(
rlib
::
string
xamlCode
)
:
xamlCode
(
xamlCode
)
{}
...
...
This diff is collapsed.
Click to expand it.
xaml-template.hpp
+
11
−
0
View file @
88e52afe
...
...
@@ -94,6 +94,17 @@ __TEMPLATE_ARG_XtraAssemblies </sco:Collection>
)XAML"
;
constexpr
auto
STD_XAML_TAIL
=
"</Activity>"
;
constexpr
auto
MANUAL_OPERATION_XAML
=
R"XAML( <mwcwa:ManualOperation DeprecatedTaskId="{x:Null}" TaskId="{x:Null}" DisplayName="__TEMPLATE_ARG_DisplayName" MonitoringSystems="icm" WaitUntilFinish="True">
<mwcwa:ManualOperation.AdditionalContent>
<InArgument x:TypeArguments="x:String">
<mca:CSharpValue x:TypeArguments="x:String">__TEMPLATE_ARG_CodeLines</mca:CSharpValue>
</InArgument>
</mwcwa:ManualOperation.AdditionalContent>
</mwcwa:ManualOperation>
)XAML"
;
}
}
...
...
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