Code Review
/
clamp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add new tests to CLAMP
[clamp.git]
/
src
/
main
/
java
/
org
/
onap
/
clamp
/
clds
/
model
/
CldsModel.java
diff --git
a/src/main/java/org/onap/clamp/clds/model/CldsModel.java
b/src/main/java/org/onap/clamp/clds/model/CldsModel.java
index
7eac3d9
..
62b10d4
100644
(file)
--- a/
src/main/java/org/onap/clamp/clds/model/CldsModel.java
+++ b/
src/main/java/org/onap/clamp/clds/model/CldsModel.java
@@
-116,7
+116,7
@@
public class CldsModel {
public boolean canInventoryCall() {
boolean canCall = false;
public boolean canInventoryCall() {
boolean canCall = false;
- /* Below checks the clds e
c
ent is submit/resubmit */
+ /* Below checks the clds e
v
ent is submit/resubmit */
if ((event.isActionCd(CldsEvent.ACTION_SUBMIT) || event.isActionCd(CldsEvent.ACTION_RESUBMIT))) {
canCall = true;
if ((event.isActionCd(CldsEvent.ACTION_SUBMIT) || event.isActionCd(CldsEvent.ACTION_RESUBMIT))) {
canCall = true;
@@
-225,7
+225,9
@@
public class CldsModel {
/**
* Determine permittedActionCd list using the actionCd from the current
/**
* Determine permittedActionCd list using the actionCd from the current
- * event.
+ * event. It's a states graph, given the next action that can be executed
+ * from the one that has been executed (described in the event object).
+ * ACTION_CREATE being the first one.
*/
private void determinePermittedActionCd() {
String actionCd = getCurrentActionCd();
*/
private void determinePermittedActionCd() {
String actionCd = getCurrentActionCd();