Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mfriesen committed Jun 1, 2024
1 parent 84a1cb2 commit c274fdc
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 3 deletions.
5 changes: 5 additions & 0 deletions docs/openapi/openapi-iam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1931,6 +1931,7 @@
| NOTIFICATION | notificationText | Notification as Text | Email Text |
| NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text |
| QUEUE | queueId | Id of Queue | |
| IDP | mappingId | Id of Mapping | |
tags:
- Document Actions
parameters:
Expand Down Expand Up @@ -8378,6 +8379,7 @@
- OCR
- QUEUE
- WEBHOOK
- IDP
DocumentAction:
type: object
properties:
Expand Down Expand Up @@ -8662,6 +8664,9 @@
tags:
description: 'DocumentTagging: Comma-deliminted list of keywords to generate tags for'
type: string
mappingId:
description: Id of Mapping
type: string
AddDocumentOcrRequest:
type: object
example:
Expand Down
5 changes: 5 additions & 0 deletions docs/openapi/openapi-jwt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1931,6 +1931,7 @@
| NOTIFICATION | notificationText | Notification as Text | Email Text |
| NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text |
| QUEUE | queueId | Id of Queue | |
| IDP | mappingId | Id of Mapping | |
tags:
- Document Actions
parameters:
Expand Down Expand Up @@ -8378,6 +8379,7 @@
- OCR
- QUEUE
- WEBHOOK
- IDP
DocumentAction:
type: object
properties:
Expand Down Expand Up @@ -8662,6 +8664,9 @@
tags:
description: 'DocumentTagging: Comma-deliminted list of keywords to generate tags for'
type: string
mappingId:
description: Id of Mapping
type: string
AddDocumentOcrRequest:
type: object
example:
Expand Down
5 changes: 5 additions & 0 deletions docs/openapi/openapi-key.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1931,6 +1931,7 @@
| NOTIFICATION | notificationText | Notification as Text | Email Text |
| NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text |
| QUEUE | queueId | Id of Queue | |
| IDP | mappingId | Id of Mapping | |
tags:
- Document Actions
parameters:
Expand Down Expand Up @@ -8378,6 +8379,7 @@
- OCR
- QUEUE
- WEBHOOK
- IDP
DocumentAction:
type: object
properties:
Expand Down Expand Up @@ -8662,6 +8664,9 @@
tags:
description: 'DocumentTagging: Comma-deliminted list of keywords to generate tags for'
type: string
mappingId:
description: Id of Mapping
type: string
AddDocumentOcrRequest:
type: object
example:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1946,6 +1946,7 @@ Resources:
| NOTIFICATION | notificationText | Notification as Text | Email Text |
| NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text |
| QUEUE | queueId | Id of Queue | |
| IDP | mappingId | Id of Mapping | |
tags:
- Document Actions
parameters:
Expand Down Expand Up @@ -8462,6 +8463,7 @@ Resources:
- OCR
- QUEUE
- WEBHOOK
- IDP
DocumentAction:
type: object
properties:
Expand Down Expand Up @@ -8746,6 +8748,9 @@ Resources:
tags:
description: "DocumentTagging: Comma-deliminted list of keywords to generate tags for"
type: "string"
mappingId:
description: "Id of Mapping"
type: "string"
AddDocumentOcrRequest:
type: object
example:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1946,6 +1946,7 @@ Resources:
| NOTIFICATION | notificationText | Notification as Text | Email Text |
| NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text |
| QUEUE | queueId | Id of Queue | |
| IDP | mappingId | Id of Mapping | |
tags:
- Document Actions
parameters:
Expand Down Expand Up @@ -8462,6 +8463,7 @@ Resources:
- OCR
- QUEUE
- WEBHOOK
- IDP
DocumentAction:
type: object
properties:
Expand Down Expand Up @@ -8746,6 +8748,9 @@ Resources:
tags:
description: "DocumentTagging: Comma-deliminted list of keywords to generate tags for"
type: "string"
mappingId:
description: "Id of Mapping"
type: "string"
AddDocumentOcrRequest:
type: object
example:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1946,6 +1946,7 @@ Resources:
| NOTIFICATION | notificationText | Notification as Text | Email Text |
| NOTIFICATION | notificationHtml | Notification as Html | Email HTML Text |
| QUEUE | queueId | Id of Queue | |
| IDP | mappingId | Id of Mapping | |
tags:
- Document Actions
parameters:
Expand Down Expand Up @@ -8462,6 +8463,7 @@ Resources:
- OCR
- QUEUE
- WEBHOOK
- IDP
DocumentAction:
type: object
properties:
Expand Down Expand Up @@ -8746,6 +8748,9 @@ Resources:
tags:
description: "DocumentTagging: Comma-deliminted list of keywords to generate tags for"
type: "string"
mappingId:
description: "Id of Mapping"
type: "string"
AddDocumentOcrRequest:
type: object
example:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,17 @@ public void processEvent(final LambdaLogger logger, final DocumentEvent event) {
processAction(logger, siteId, documentId, actions, action);

} catch (Exception e) {
logger.log(Strings.toString(e));

String stacktrace = Strings.toString(e);
logger.log(stacktrace);

action.status(ActionStatus.FAILED);
action.message(e.getMessage());

if (!isEmpty(e.getMessage())) {
action.message(e.getMessage());
} else {
action.message(stacktrace);
}

updateDocumentWorkflow(siteId, documentId, action);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,6 @@ private String addTextToBucket(final String siteId, final String text) {
* @throws IOException IOException
* @throws ValidationException ValidationException
*/
@SuppressWarnings("resource")
@Test
public void testIdp01() throws IOException, ValidationException {
for (String siteId : Arrays.asList(null, UUID.randomUUID().toString())) {
Expand Down

0 comments on commit c274fdc

Please sign in to comment.