Skip to content

Commit 28f6883

Browse files
author
ishan
committed
default constructor & set name
1 parent e665163 commit 28f6883

File tree

4 files changed

+135
-56
lines changed

4 files changed

+135
-56
lines changed

.idea/workspace.xml

Lines changed: 106 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/morph/base/actions/impl/GoToFlowAction.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ public class GoToFlowAction implements Action {
1111
public static final String GO_TO_FLOW = "goToFlow";
1212
private String nextFlowKey;
1313
private String nextFlowTitle;
14-
14+
private String name;
1515

1616
public GoToFlowAction() {
17+
setName(getName());
1718
}
1819

1920
public GoToFlowAction(String nextFlowKey) {
21+
setName(getName());
2022
this.nextFlowKey = nextFlowKey;
2123
}
2224

@@ -32,6 +34,10 @@ public void setNextFlowTitle(String nextFlowTitle) {
3234
this.nextFlowTitle = nextFlowTitle;
3335
}
3436

37+
public void setName(String name) {
38+
this.name = name;
39+
}
40+
3541
@Override
3642
public String getName() {
3743
return GO_TO_FLOW;

src/main/java/morph/base/actions/impl/PublishMessageAction.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@
1010
public class PublishMessageAction implements Action {
1111

1212
public static final String PUBLISH = "publish";
13+
14+
private String name;
1315
private SimplifiedMessage simplifiedMessage;
1416

17+
public PublishMessageAction() {
18+
setName(PUBLISH);
19+
}
20+
1521
public SimplifiedMessage getSimplifiedMessage() {
1622
return simplifiedMessage;
1723
}
@@ -20,6 +26,10 @@ public void setSimplifiedMessage(SimplifiedMessage simplifiedMessage) {
2026
this.simplifiedMessage = simplifiedMessage;
2127
}
2228

29+
public void setName(String name) {
30+
this.name = name;
31+
}
32+
2333
@Override
2434
public String getName() {
2535
return PUBLISH;

src/main/java/morph/base/actions/impl/SetVariableAction.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,21 @@ public class SetVariableAction implements Action {
1515
private String variableKey;
1616
private String variableTitle;
1717
private Variable variable;
18+
private String name;
19+
20+
public SetVariableAction() {
21+
setName(SET_VARIABLE);
22+
}
1823

1924
public SetVariableAction(VariableScope variableScope, String variableKey, Variable variable) {
25+
setName(SET_VARIABLE);
2026
this.variableScope = variableScope;
2127
this.variableKey = variableKey;
2228
this.variable = variable;
2329
}
2430

2531
public SetVariableAction(String variableTitle, VariableScope variableScope, Variable variable) {
32+
setName(SET_VARIABLE);
2633
this.variableTitle = variableTitle;
2734
this.variableScope = variableScope;
2835
this.variable = variable;
@@ -60,6 +67,11 @@ public void setVariableTitle(String variableTitle) {
6067
this.variableTitle = variableTitle;
6168
}
6269

70+
71+
public void setName(String name) {
72+
this.name = name;
73+
}
74+
6375
@Override
6476
public String getName() {
6577
return SET_VARIABLE;

0 commit comments

Comments
 (0)