Ask Your Question

Saving State In-Memory

asked 2020-05-10 17:29:04 -0500

Peter Delaney gravatar image

I am looking for ideas on how to save state in a pipeline without using an external persistence from the SDC Pipeline. I need to keep track of the number of articles processed for a particular jobId/batchId and at some point send this state to stdout or rsyslog. I am open to other peoples ideas on how to achieve this using the basic SDC stages.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-05-10 23:37:55 -0500

iamontheinet gravatar image

updated 2020-05-11 11:26:32 -0500

Hi Peter,

You can use state object in one of the three scripting processors. For example, check out Groovy Evaluator. Also note that if you add one of the scripting processors in the pipeline, you'll see sample code in its Init Script section.

Here's an example of using stateobject --

Hope this helps.

Cheers, Dash

edit flag offensive delete link more



Thank you I will play with this.

Peter Delaney gravatar imagePeter Delaney ( 2020-05-11 11:25:30 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-05-10 17:29:04 -0500

Seen: 27 times

Last updated: May 11