Question
Eduard Lebedyuk · Aug 20, 2021

Bookkeeping in Business Operation

In my Business Operation I need to execute a bookkeeping method every X seconds.

How can I do that?

There are two workarounds (I dislike both):

  1. Execute bookkeeping on process start - but there might be no requests at all
  2. Create a BS that sends messages to BO every X seconds - it makes production more complex and also queues might not guarantee that the method is executed on schedule.

Thoughts?

Product version: IRIS 2021.1
0
0 187
Discussion (8)2
Log in or sign up to continue

Looks like, that you have some data generated, which you should care about, but with some delay. So, how about creating some custom adaptor, which would look at that data, check for conditions and do the task. So, just only need an index by creation time.

Looks like, that you have some data generated, which you should care about, but with some delay.  

Yes.

how about creating some custom adaptor,  

How would this adapter be triggered every X seconds?

By Setting in Business Service which it will be tied to. But I think, it will be simple, like check that latest data where create date more than current plus n seconds

Code must be executed in the Business Operation process, I can't offload it to another process.

Create a BS that sends messages to BO every X seconds - it makes production more complex and also queues might not guarantee that the method is executed on schedule.

You could try submitting the message to the head of the queue to be sure it gets processed right away.

You could try submitting the message to the head of the queue

How do I do that?

Or make the BO InProc and avoid the queue altogether.

I need for this operation to run in a same, separate process (on which I need to do bookkeeping) so InProc mode won't work for my use case.