Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Sep 25, 2013 at 06:35 AM

    Hello,

    To set the value blank or empty use null:

    ps.setExecutionSize(null);

    Regards Gerben

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.