on 09-24-2013 2:55 PM
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
Hello,
To set the value blank or empty use null:
ps.setExecutionSize(null);
Regards Gerben
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.