IBM Cúram Batch Processing For Developer - Knowledge Sharing
IBM Cúram Batch Processing For Developer - Knowledge Sharing
This is Google's cache of http://www.knowledgewala.com/ibm-curam-batch-processing-for-developer/. It is a snapshot of the page as it appeared on 3 Apr 2022 08:58:59
GMT. The current page could have changed in the meantime. Learn more.
[email protected] Notice: IBM Cúram, AWS Cloud, Java/J2EE & Training hourly support available now! Quick L
Menu
Home Technologies School Courses News & Information About Privacy Policy Discussion Forum
Donate
Google Ads
Ads
Introduction
IBM Cúram has a various mechanism to process a bulk amount of data and take action
on that data. It is a very important and efficient process which remove a lot of manual
work from the worker. The Batch process requires a basic understanding of IBM Cúram
Batch development knowledge. Here, in this tutorial, I will try to explain the batch
development process instead of any business logic.
The developer can write two type of batches which are having its pros & cons. Please find
more information in below section –
Sequential Batch: The developer can write sequential Batches which are more
important when we want to process records or data in the same transaction.
Example 1: Suppose, The caseworker want to activate all PDC case which created over
the last one month then caseworker will execute this action manually and it will take a lot
of time and manual effort to activate all PDC (10000+) cases. The Batch process will
activate all cases within a min with accuracy.
Example 2: Suppose, There are some Cases which got ineligible due to Evidence like
Income, Citizenship etc. but Client don’t want to close those cases immediately and want
webcache.googleusercontent.com/search?q=cache:KZjYGUSiZWQJ:www.knowledgewala.com/ibm-curam-batch-processing-for-developer/+&cd=2&hl=en&ct… 1/5
04/05/2022, 23:54 IBM Cúram Batch Processing For Developer – Knowledge Sharing
to wait for 50 days and want to send Notification before closing them. We can utilize
Batch Process to accomplish this scenario.
Example 3: Suppose, There are reassessment happened during the daytime and due to
each reassessment, a lots of Notices trigger to the Client which is not correct and needs
to be tackle smartly. This is a very common scenario and required proper attention. The
developer can store all the changes made by the worker and do apply changes or final
action at one time through the Batch process. The developer can write a batch and
schedule it on Batch Scheduler to run every night.
There are many usages of Batch which we can not cover here.
There are many Important OOTB IBM Cúram Batch used in all most in all
Project.
The Batch development process is very smooth and straightforward and needs some
basic knowledge of Java and IBM Cúram technique like RSA modeling, Code table, DMX
etc.
In IBM Cúram development, the developer should always start from the modeling and
generate all required artifacts before writing any business logic.
The developer needs to model Service Layer classes and Structs in order to develop a
Batch Program.
webcache.googleusercontent.com/search?q=cache:KZjYGUSiZWQJ:www.knowledgewala.com/ibm-curam-batch-processing-for-developer/+&cd=2&hl=en&ct… 2/5
04/05/2022, 23:54 IBM Cúram Batch Processing For Developer – Knowledge Sharing
The developer has to model some required Structs which they can get it from the
OOTB batch.
Once modeling is completed, please save all your changes. Don’t forget to save your
model! Don’t execute ANT target yet.
Other Artifacts
There are some other artifacts required to develop the batch program like Code table and
message file.
The message file is important to show the error or informational message on the logs.
The developer has to create a new sample with a couple of messages.
One message is for the batch name (“Sample Batch”) and another one is for the subject
line (“Sample Batch report for %1d”). These will be used while generating the report.
Here, We are done with modeling and other artifacts and we are ready to execute Ant
target to generate the artifacts.
Run build generated Ant target command to generate all require artifacts.
Please refresh your eclipse and create implementation class for both chunker
and streamer once above build completed successfully. These implementation
class contain the business logic for chunker and streamer respectively.
Other Properties
The chunker implementation class need a couple of pre-configuration like chunk size, do
not run streamer etc.
The developer has to define the properties and its corresponding values as specific to a
particular Batch program. These properties can be defined in Application.prx file and will
inserted into PROPERTIES entity once the developer executed database Ant target or
insertproperties Ant target.
Please find all required properties below –
All batch jobs should have some parameters in the properties table. To create those, let’s
create some entries for the application.prx file
1. Copy Application.prx from EJBServer\components\PCR\properties to
webcache.googleusercontent.com/search?q=cache:KZjYGUSiZWQJ:www.knowledgewala.com/ibm-curam-batch-processing-for-developer/+&cd=2&hl=en&ct… 3/5
04/05/2022, 23:54 IBM Cúram Batch Processing For Developer – Knowledge Sharing
custom\properties. You
may have to create the properties folder. if verify if it is already exist.
2. Edit this file and remove the existing property and add 5 new ones, as per the table
below
Property Type Value
curam.custom.batch.samplebatch.chunksize int 2
curam.custom.batch.samplebatch.dontrunstream boolean false
curam.custom.batch.samplebatch.chunkkeywaitinterval int 1000
curam.custom.batch.samplebatch.unprocessedchunkwaitintervalint 1000
curam.custom.batch.samplebatch.processunprocessedchunks boolean false
4. The developer can write the business logic for chunker and streamer as per given
guideline.
Once the above steps like modeling and business logic implementation completed, we
have to test the functionality.
The developer can test the functionality through the eclipse as well as through the
command prompt. Please see how we can execute the batch through the eclipse, Please
find the steps below –
Please follow below LINK to configuration and execute batch program through the
eclipse.
Curam, IBM, Technology batch, batch process, curam, server modeling, social enterprise management, watson
IBM Cúram – Customize Pre and Post Data Access IBM Cúram Batch execution through eclipse
for Entity
Reply
pooja says:
March 9, 2022 at 12:12 pm
I appreciate sir… usually people dont share their curam knowledge. but you are helping other curam developers…
Reply
webcache.googleusercontent.com/search?q=cache:KZjYGUSiZWQJ:www.knowledgewala.com/ibm-curam-batch-processing-for-developer/+&cd=2&hl=en&ct… 4/5
04/05/2022, 23:54 IBM Cúram Batch Processing For Developer – Knowledge Sharing
Leave a Reply
Your email address will not be published. Required fields are marked *
Comment
Post Comment
webcache.googleusercontent.com/search?q=cache:KZjYGUSiZWQJ:www.knowledgewala.com/ibm-curam-batch-processing-for-developer/+&cd=2&hl=en&ct… 5/5