+
+
+diff --git a/out_extended/click.kamil.examples.statemachine.extended.config.ExtendedStateMachineConfig/click.kamil.examples.statemachine.extended.config.ExtendedStateMachineConfig.html b/out_extended/click.kamil.examples.statemachine.extended.config.ExtendedStateMachineConfig/click.kamil.examples.statemachine.extended.config.ExtendedStateMachineConfig.html new file mode 100644 index 0000000..3855989 --- /dev/null +++ b/out_extended/click.kamil.examples.statemachine.extended.config.ExtendedStateMachineConfig/click.kamil.examples.statemachine.extended.config.ExtendedStateMachineConfig.html @@ -0,0 +1,994 @@ + + +
+ + +${action.internalLogic.replace(//g, '>')}`;
diff --git a/state_machine_exporter_html/out_complex/click.kamil.examples.statemachine.complex.ComplexStateMachineConfig/click.kamil.examples.statemachine.complex.ComplexStateMachineConfig.json b/state_machine_exporter_html/out_complex/click.kamil.examples.statemachine.complex.ComplexStateMachineConfig/click.kamil.examples.statemachine.complex.ComplexStateMachineConfig.json
index c918b36..6df9980 100644
--- a/state_machine_exporter_html/out_complex/click.kamil.examples.statemachine.complex.ComplexStateMachineConfig/click.kamil.examples.statemachine.complex.ComplexStateMachineConfig.json
+++ b/state_machine_exporter_html/out_complex/click.kamil.examples.statemachine.complex.ComplexStateMachineConfig/click.kamil.examples.statemachine.complex.ComplexStateMachineConfig.json
@@ -4,7 +4,9 @@
"entryPoints" : [ ],
"callChains" : [ ],
"properties" : {
- "spring.application.name" : "statemachinedemo"
+ "default" : {
+ "spring.application.name" : "statemachinedemo"
+ }
}
},
"name" : "click.kamil.examples.statemachine.complex.ComplexStateMachineConfig",
@@ -234,7 +236,8 @@
"guard" : {
"expression" : "guardVarEquals(\"value1\")",
"isLambda" : false,
- "internalLogic" : null
+ "internalLogic" : null,
+ "lineNumber" : 86
},
"actions" : [ ],
"order" : 0
@@ -252,7 +255,8 @@
"guard" : {
"expression" : "guardVarEquals(\"value2\")",
"isLambda" : false,
- "internalLogic" : null
+ "internalLogic" : null,
+ "lineNumber" : 87
},
"actions" : [ ],
"order" : 1
@@ -284,7 +288,8 @@
"guard" : {
"expression" : "guardEventHeaderEquals(\"header1\",\"foo\")",
"isLambda" : false,
- "internalLogic" : null
+ "internalLogic" : null,
+ "lineNumber" : 92
},
"actions" : [ ],
"order" : 0
@@ -316,7 +321,8 @@
"guard" : {
"expression" : "guardVarEquals(\"value3\")",
"isLambda" : false,
- "internalLogic" : null
+ "internalLogic" : null,
+ "lineNumber" : 97
},
"actions" : [ ],
"order" : 0
@@ -348,7 +354,8 @@
"guard" : {
"expression" : "guardVarEquals(\"reset\")",
"isLambda" : false,
- "internalLogic" : null
+ "internalLogic" : null,
+ "lineNumber" : 102
},
"actions" : [ ],
"order" : 0
@@ -380,7 +387,8 @@
"guard" : {
"expression" : "guardEventHeaderEquals(\"header2\",\"bar\")",
"isLambda" : false,
- "internalLogic" : null
+ "internalLogic" : null,
+ "lineNumber" : 107
},
"actions" : [ ],
"order" : 0
@@ -412,7 +420,8 @@
"guard" : {
"expression" : "guardVarEquals(\"goTo13\")",
"isLambda" : false,
- "internalLogic" : null
+ "internalLogic" : null,
+ "lineNumber" : 112
},
"actions" : [ ],
"order" : 0
@@ -430,7 +439,8 @@
"guard" : {
"expression" : "guardVarEquals(\"goTo14\")",
"isLambda" : false,
- "internalLogic" : null
+ "internalLogic" : null,
+ "lineNumber" : 113
},
"actions" : [ ],
"order" : 1
@@ -462,7 +472,8 @@
"guard" : {
"expression" : "guardVarEquals(\"goBack10\")",
"isLambda" : false,
- "internalLogic" : null
+ "internalLogic" : null,
+ "lineNumber" : 118
},
"actions" : [ ],
"order" : 0
@@ -494,7 +505,8 @@
"guard" : {
"expression" : "guardVarEquals(\"loop12\")",
"isLambda" : false,
- "internalLogic" : null
+ "internalLogic" : null,
+ "lineNumber" : 123
},
"actions" : [ ],
"order" : 0
@@ -526,7 +538,8 @@
"guard" : {
"expression" : "guardVarEquals(\"stepBack\")",
"isLambda" : false,
- "internalLogic" : null
+ "internalLogic" : null,
+ "lineNumber" : 128
},
"actions" : [ ],
"order" : 0
@@ -544,7 +557,8 @@
"guard" : {
"expression" : "guardVarEquals(\"stepBackMore\")",
"isLambda" : false,
- "internalLogic" : null
+ "internalLogic" : null,
+ "lineNumber" : 129
},
"actions" : [ ],
"order" : 1
@@ -576,7 +590,8 @@
"guard" : {
"expression" : "guardVarEquals(\"forward9\")",
"isLambda" : false,
- "internalLogic" : null
+ "internalLogic" : null,
+ "lineNumber" : 134
},
"actions" : [ ],
"order" : 0
diff --git a/state_machine_exporter_html/out_enterprise_v7/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig.html b/state_machine_exporter_html/out_enterprise_v7/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig.html
index f88f1a0..0c7f250 100644
--- a/state_machine_exporter_html/out_enterprise_v7/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig.html
+++ b/state_machine_exporter_html/out_enterprise_v7/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig.html
@@ -304,9 +304,6 @@
}, {
"rawName" : "\"CHECK_AVAILABILITY\"",
"fullIdentifier" : "CHECK_AVAILABILITY"
- }, {
- "rawName" : "NEW",
- "fullIdentifier" : "NEW"
}, {
"rawName" : "RETURNED",
"fullIdentifier" : "RETURNED"
@@ -316,6 +313,9 @@
}, {
"rawName" : "CANCELLED",
"fullIdentifier" : "CANCELLED"
+ }, {
+ "rawName" : "${order.initial.state:NEW}",
+ "fullIdentifier" : "NEW"
}, {
"rawName" : "\"PENDING_PAYMENT\"",
"fullIdentifier" : "PENDING_PAYMENT"
@@ -360,7 +360,8 @@
"guard" : {
"expression" : "(c) -> true",
"isLambda" : true,
- "internalLogic" : null
+ "internalLogic" : "(c) -> true",
+ "lineNumber" : 41
},
"actions" : [ ],
"order" : 0
@@ -727,7 +728,9 @@
"lineNumber" : 17
}
} ],
- "properties" : { }
+ "properties" : {
+ "default" : { }
+ }
}
}
@@ -931,13 +934,9 @@
let metaTrans = null;
if (isAnon) {
- const parts = linkId.split('_'); // link_anon_SRC_TGT
- const src = parts[2];
- const tgt = parts[3];
metaTrans = transitions.find(t =>
!t.event &&
- normalize(t.sourceStates[0].fullIdentifier) === src &&
- normalize(t.targetStates[0].fullIdentifier) === tgt
+ "anon_" + normalize(t.sourceStates[0].fullIdentifier) + "_" + normalize(t.targetStates[0].fullIdentifier) === linkId
);
} else {
metaTrans = transitions.find(t => normalize(t.event) === linkId);
@@ -981,7 +980,8 @@
`;
if (trans && trans.guard) {
- html += `${action.internalLogic.replace(//g, '>')}`;
diff --git a/state_machine_exporter_html/out_enterprise_v7/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig.json b/state_machine_exporter_html/out_enterprise_v7/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig.json
index 8e1da47..74e2d02 100644
--- a/state_machine_exporter_html/out_enterprise_v7/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig.json
+++ b/state_machine_exporter_html/out_enterprise_v7/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig.json
@@ -261,7 +261,9 @@
"lineNumber" : 17
}
} ],
- "properties" : { }
+ "properties" : {
+ "default" : { }
+ }
},
"name" : "click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig",
"renderChoicesAsDiamonds" : true,
@@ -294,7 +296,8 @@
"guard" : {
"expression" : "(c) -> true",
"isLambda" : true,
- "internalLogic" : null
+ "internalLogic" : "(c) -> true",
+ "lineNumber" : 41
},
"actions" : [ ],
"order" : 0
diff --git a/state_machine_exporter_html/out_enterprise_v7_no_diamonds/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig.html b/state_machine_exporter_html/out_enterprise_v7_no_diamonds/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig.html
index 397bb09..f9d928d 100644
--- a/state_machine_exporter_html/out_enterprise_v7_no_diamonds/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig.html
+++ b/state_machine_exporter_html/out_enterprise_v7_no_diamonds/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig.html
@@ -288,7 +288,7 @@
${action.internalLogic.replace(//g, '>')}`;
diff --git a/state_machine_exporter_html/out_enterprise_v7_no_diamonds/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig.json b/state_machine_exporter_html/out_enterprise_v7_no_diamonds/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig.json
index 324caa4..e66500d 100644
--- a/state_machine_exporter_html/out_enterprise_v7_no_diamonds/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig.json
+++ b/state_machine_exporter_html/out_enterprise_v7_no_diamonds/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig/click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig.json
@@ -261,11 +261,13 @@
"lineNumber" : 17
}
} ],
- "properties" : { }
+ "properties" : {
+ "default" : { }
+ }
},
"name" : "click.kamil.examples.enterprise.config.EnterpriseStateMachineConfig",
"renderChoicesAsDiamonds" : false,
- "startStates" : [ "NEW" ],
+ "startStates" : [ "${order.initial.state:NEW}" ],
"transitions" : [ {
"type" : "EXTERNAL",
"sourceStates" : [ {
@@ -294,7 +296,8 @@
"guard" : {
"expression" : "(c) -> true",
"isLambda" : true,
- "internalLogic" : null
+ "internalLogic" : "(c) -> true",
+ "lineNumber" : 41
},
"actions" : [ ],
"order" : 0
diff --git a/state_machine_exporter_html/src/main/resources/html/template.html b/state_machine_exporter_html/src/main/resources/html/template.html
index c7f8890..1770b43 100644
--- a/state_machine_exporter_html/src/main/resources/html/template.html
+++ b/state_machine_exporter_html/src/main/resources/html/template.html
@@ -495,13 +495,9 @@
let metaTrans = null;
if (isAnon) {
- const parts = linkId.split('_'); // link_anon_SRC_TGT
- const src = parts[2];
- const tgt = parts[3];
metaTrans = transitions.find(t =>
!t.event &&
- normalize(t.sourceStates[0].fullIdentifier) === src &&
- normalize(t.targetStates[0].fullIdentifier) === tgt
+ "anon_" + normalize(t.sourceStates[0].fullIdentifier) + "_" + normalize(t.targetStates[0].fullIdentifier) === linkId
);
} else {
metaTrans = transitions.find(t => normalize(t.event) === linkId);
@@ -545,7 +541,8 @@
`;
if (trans && trans.guard) {
- html += `${action.internalLogic.replace(//g, '>')}`;