Sign In   Register
  Tuesday, 20 July 2021
  3 Replies
  240 Visits
0
Votes
Undo
  Subscribe

We are using a delivery function triggered as a Background Delivery process. The delivery function uses TxnCheckpointSvc in a similar manner to a Delivery Process.

How should we handle errors in the delivery?

If an error occurs do we need to set the checkpointSvc.error AND return a DeliveryFuncResultBuilder with status error?

return new DeliveryFuncResultBuilder()
.setStatusError()
.build();

Or do we only need to set the checkpointSvc, OR the DeliveryFuncResultBuilder.

We are getting errors for some parts of the delivery function, but the behaviour is inconsistent, so we are having trouble debugging the function.

On the first run of the function checkpoints are not recorded, and no logs are recorded. When we retry the delivery all checkpoints run again (duplicating actions), and logs are recorded.

However, the missing logs mean we cannot determine the cause of the error.

Any guidance would be appreciated.

Thanks

Mark

4 months ago
·
#14178
Accepted Answer
0
Votes
Undo

Hi Mark,

Here is the API https://docs.avoka.com/sdk/v2005/fluent-api/com-avoka-tm-svc/txncheckpointsvc.html with a few examples. Hope it will help. 

 

4 months ago
·
#14180
0
Votes
Undo

Hi Mark,

Have you checked this article https://docs.avoka.com/TransactFunctions/transact-function-exception-handling.htm ? It provides a design pattern to handle exceptions. 

 

Mark Murray selected the reply #14178 as the answer for this post — 4 months ago
4 months ago
·
#14178
Accepted Answer
0
Votes
Undo

Hi Mark,

Here is the API https://docs.avoka.com/sdk/v2005/fluent-api/com-avoka-tm-svc/txncheckpointsvc.html with a few examples. Hope it will help. 

 

4 months ago
·
#14174
0
Votes
Undo

Hi Mark, 

Does this Documentation help at all?  

https://docs.avoka.com/sdk/v2005/delivery-function.html

  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!

Q&A Forum - Tips

The purpose of the Temenos Journey Manager platform (TJM) Q&A forum is for all clients and partners to seek help...

Read More

Not a member?

Register to ask a question and access to more content.

Join now

Looking for something else?

You can request access to:

  • Courses
  • Full Release Notes
  • Product Downloads
  • SDK

Request access

Leader Board

1
Mark Murray
User's Points: 1360
2
Lin Vanoevelen
User's Points: 1046
3
Julio Berrueco Pinto
User's Points: 715
4
Matthew White
User's Points: 386
5
Chad Thomas
User's Points: 300