cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CPS : how to set the ExecutionSize back to blank via redwood script

former_member265210
Active Participant
0 Kudos

Hello,

i have 500+ Process server are running in my CPS system.

with the below code, i can set the "process server" Execution Size" to 2 but how do i set "execution size" back to blank(empty).

ps.setExecutionSize(new Long(0));           >>  0 not a blank

ps.setExecutionSize(new Long());            >>  this will through error..

==================

{

String query = "select ProcessServer.* from ProcessServer where Name <> 'System'";

for (Iterator it = jcsSession.executeObjectQuery(query, null); it.hasNext();)

{

ProcessServer ps = (ProcessServer) it.next();

ps.setExecutionSize(new Long(2));

jcsSession.persist();

}

}

Regards

Shridhar Gowda

Accepted Solutions (1)

Accepted Solutions (1)

gmblom
Active Contributor
0 Kudos

Hello,

To set the value blank or empty use null:

ps.setExecutionSize(null);

Regards Gerben

former_member265210
Active Participant
0 Kudos

Thanks!

Answers (0)