Skip to content

Commit

Permalink
Merge pull request #29 from AbhiGaddi/beneficiary-schema
Browse files Browse the repository at this point in the history
Update RegistryHelper.java
  • Loading branch information
AbhiGaddi authored Sep 8, 2023
2 parents 905d2ca + 04e4164 commit 5209425
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,11 @@ private String addEntityWithoutValidation(JsonNode inputJson, String userId, Str

private String addEntityHandler(JsonNode inputJson, String userId, boolean isInvite) throws Exception {
String entityType = inputJson.fields().next().getKey();
System.out.println("----------entity type ---------" + entityType);
validationService.validate(entityType, objectMapper.writeValueAsString(inputJson), isInvite);
String entityName = inputJson.fields().next().getKey();
System.out.println("input json ------------------" + objectMapper.writeValueAsString(inputJson));
System.out.println("entity name in the registry helper --------" + entityName);
if (workflowEnabled) {
List<AttestationPolicy> attestationPolicies = getAttestationPolicies(entityName);
entityStateHelper.applyWorkflowTransitions(JSONUtil.convertStringJsonNode("{}"), inputJson, attestationPolicies);
Expand All @@ -194,6 +197,7 @@ private String addEntityHandler(JsonNode inputJson, String userId, boolean isInv
}
jsonNode.add(userId);
}
System.out.println("-------------it executing add entity handler -------------");
return addEntity(inputJson, userId, entityType, isInvite);
}

Expand Down

0 comments on commit 5209425

Please sign in to comment.