File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/main/java/com/ericsson/ei/waitlist Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 22
22
import com .fasterxml .jackson .databind .JsonNode ;
23
23
import lombok .Getter ;
24
24
import lombok .Setter ;
25
+ import org .json .JSONException ;
25
26
import org .json .JSONObject ;
26
27
import org .slf4j .Logger ;
27
28
import org .slf4j .LoggerFactory ;
@@ -79,7 +80,7 @@ public List<String> getWaitList() {
79
80
return mongoDbHandler .getAllDocuments (databaseName , collectionName );
80
81
}
81
82
82
- private String addPropertiesToEvent (String event , RulesObject rulesObject ) {
83
+ private String addPropertiesToEvent (String event , RulesObject rulesObject ) throws JSONException {
83
84
String idRule = rulesObject .getIdRule ();
84
85
JsonNode id = jmesPathInterface .runRuleOnEvent (idRule , event );
85
86
DateFormat dateFormat = new SimpleDateFormat ("yyyy/MM/dd HH:mm:ss" );
Original file line number Diff line number Diff line change 23
23
import com .ericsson .ei .rules .RulesHandler ;
24
24
import com .ericsson .ei .rules .RulesObject ;
25
25
import com .fasterxml .jackson .databind .JsonNode ;
26
+ import org .json .JSONException ;
26
27
import org .json .JSONObject ;
27
28
import org .slf4j .Logger ;
28
29
import org .slf4j .LoggerFactory ;
@@ -64,7 +65,7 @@ public TaskScheduler taskScheduler() {
64
65
}
65
66
66
67
@ Scheduled (initialDelayString = "${waitlist.initialDelayResend}" , fixedRateString = "${waitlist.fixedRateResend}" )
67
- public void run () {
68
+ public void run () throws JSONException {
68
69
RulesObject rulesObject ;
69
70
List <String > documents = waitListStorageHandler .getWaitList ();
70
71
for (String document : documents ) {
You can’t perform that action at this time.
0 commit comments