Skip to content

Commit

Permalink
RHPAM-2554 - Require the ability to define mandatory process /case va… (
Browse files Browse the repository at this point in the history
apache#422)

* RHPAM-2554 - Require the ability to define mandatory process /case variables that can only be changed by Admin

* [RHPAM-2554] Ignore changes for revapi-maven-plugin (apache#2)

Co-authored-by: Gonzalo Muñoz <gmunozfe@redhat.com>
  • Loading branch information
mswiderski and gmunozfe authored Feb 18, 2020
1 parent 5039029 commit bce4a8c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
20 changes: 19 additions & 1 deletion kie-api/src/build/revapi-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,25 @@
"methodName": "value",
"elementKind": "method",
"justification": "kogito unfork"
}
},
{
"code": "java.method.addedToInterface",
"new": "method java.util.List<java.lang.String> org.kie.api.event.process.ProcessVariableChangedEvent::getTags()",
"package": "org.kie.api.event.process",
"classSimpleName": "ProcessVariableChangedEvent",
"methodName": "getTags",
"elementKind": "method",
"justification": "add the possibility to retrieve custom tags associated with variables"
},
{
"code": "java.method.addedToInterface",
"new": "method boolean org.kie.api.event.process.ProcessVariableChangedEvent::hasTag(java.lang.String)",
"package": "org.kie.api.event.process",
"classSimpleName": "ProcessVariableChangedEvent",
"methodName": "hasTag",
"elementKind": "method",
"justification": "add the possibility to find out if custom tag is associated with variables"
}
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package org.kie.api.event.process;

import java.util.List;

/**
* An event when a variable inside a process instance has been changed.
*/
Expand Down Expand Up @@ -54,5 +56,18 @@ public interface ProcessVariableChangedEvent
* @return the new value
*/
Object getNewValue();

/**
* List of tags associated with variable that is being changed.
* @return list of tags if there are any otherwise empty list
*/
List<String> getTags();

/**
* Determines if variable that is being changed has given tag associated with it
* @param tag name of the tag
* @return returns true if given tag is associated with variable otherwise false
*/
boolean hasTag(String tag);

}

0 comments on commit bce4a8c

Please sign in to comment.