Class VWSystemConfiguration
- java.lang.Object
-
- filenet.vw.api.VWSystemConfiguration
-
- All Implemented Interfaces:
- IVWtoXML, java.io.Serializable
public final class VWSystemConfiguration extends java.lang.Object implements java.io.Serializable, IVWtoXML
Use this class to access configuration information for an isolated region. The configuration information includes the queues, rosters, logs, and region-wide configuration values for the current isolated region. Create an instance of this class by calling the VWSession.fetchSystemConfiguration() method.Once you are done creating and/or modifying configuration values, call the VWSystemConfiguration.commit() method to commit changes (update the workspace) on the server.
- Since:
- eProcess 4.0
- See Also:
VWSession.fetchSystemConfiguration(),VWLogDefinition,VWQueueDefinition,VWRosterDefinition, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static intLOG_ALLInteger value that is the sum of all the other logging options. Enables logging for all selections.static intLOG_BEGIN_SERVICE_OPERATIONValue of 0x00100000 (1048576 decimal). Enables logging when a work performer and work object begin operation.static intLOG_END_SERVICE_OPERATIONValue of 0x00400000 (4194304 decimal). Enables logging when work performer and work object end operation.static intLOG_MILESTONESValue of 0x00000040 (64 decimal). Enables logging for milestones.static intLOG_NONEValue of 0. Disables logging for all selections.static intLOG_SYSTEM_MESSAGESValue of 0x00010000 (65536 decimal). Enables logging for system messages.static intLOG_USER_DEFINED_1Value of 0x40000000 (1073741824 decimal). Enables logging for user-defined message 1.static intLOG_USER_DEFINED_2Value of 0x80000000 (2147483648 decimal). Enables logging for user-defined message 2.static intLOG_WOBJ_ADMINISTRATIONValue of 0x00001000 (4096 decimal). Enables logging for work object administration messages.static intLOG_WOBJ_CREATIONValue of 0x00000100 (256 decimal). Enables logging for work object creation.static intLOG_WOBJ_EMPTY_STEPValue of 0x00000010 (16 decimal). Enables logging for empty steps, (steps with no queue or participants).static intLOG_WOBJ_EXCEPTIONValue of 0x00000400 (1024 decimal). Enables logging for work object exceptions.static intLOG_WOBJ_REASSIGN_TO_PROXY_USERValue of 0x00002000 (8192 decimal). Enables logging for reassignment of work objects to a proxy user messages.static intLOG_WOBJ_RULESValue of 0x00000020 (32 decimal). Enables logging for work object rules.static intLOG_WOBJ_TERMINATIONValue of 0x00000200 (512 decimal). Enables logging for work object termination.static intLOG_WOBJ_TRACE_INSTRUCTIONSValue of 0x00000080 (128 decimal). Enables logging for work object trace instructions.
-
Constructor Summary
Constructors Constructor and Description VWSystemConfiguration()Creates an empty system configuration instance.
-
Method Summary
Methods Modifier and Type Method and Description java.lang.String[]commit()Saves system configuration changes to the current isolated region.VWApplicationSpaceDefinitioncreateApplicationSpaceDefinition(java.lang.String name)Creates an application space definition.VWLogDefinitioncreateLogDefinition(java.lang.String theName)Creates a log definition.VWQueueDefinitioncreateQueueDefinition(java.lang.String theName, int theQueueType)Creates a queue definition instance.VWRosterDefinitioncreateRosterDefinition(java.lang.String theName)Creates a roster definition.VWStepProcessorInfoDefinitioncreateStepProcessorInfoDefinition()Creates a step processor definition.voiddeleteApplicationSpaceDefinition(java.lang.String theName)Deletes an application space definitionvoiddeleteLogDefinition(java.lang.String theName)Deletes an event log definitionvoiddeleteQueueDefinition(java.lang.String theName)Deletes a queue definitionvoiddeleteRosterDefinition(java.lang.String theName)Deletes a roster definitionvoiddeleteStepProcessorInfoDefinition(VWStepProcessorInfoDefinition theSPDef)Deletes a step processor info definitionvoidexportConfigChanges(java.io.OutputStream theStream)Writes the "uncommitted" items to an output stream.voidexportConfigChanges(java.lang.String theFileName)Writes the "uncommitted" items to a file.VWApplicationSpaceDefinitiongetApplicationSpaceDefinition(java.lang.String name)Gets an application space definition.VWApplicationSpaceDefinition[]getApplicationSpaceDefinitions()Gets all of the application space definitions associated with this system configuration.VWAttributeInfogetAttributeInfo()Gets a VWAttribute object containing attributes for this object, as paired labels (keywords) and values in String format.VWLogDefinitiongetDefaultLogDefinition()Gets the default definition for event logging.VWExposedFieldDefinition[]getExposedFields()Returns all the exposed fields on the queues, the rosters, and the logs.booleangetIsRetrievedFromServer()static java.lang.StringgetLocalizedString(int theLogType)Gets a localized String representation of the log type.VWLogDefinitiongetLogDefinition(java.lang.String name)Gets a log definition, specified by name.VWLogDefinition[]getLogDefinitions()Gets the log definitions associated with this system configuration object.intgetLoggingState()Gets the value of all the logging states.booleangetLoggingState(int theLoggingOption)Determines whether or not a logging option is enabled or disabled.intgetMaxDBOperations()Gets the current maximum number of database operations per transaction.intgetMaxInstructions()Gets the current maximum number of instructions per transaction.VWGuidgetObjectStoreId()Deprecated.replaced by VWSession.getObjectStoreId()java.lang.StringgetObjectStoreSymbolicName()Deprecated.Replaced by VWSession.getObjectStoreSymbolicName();VWQueueDefinitiongetQueueDefinition(java.lang.String name)Gets the queue definition with with specified name, for the current isolated region.VWQueueDefinition[]getQueueDefinitions()Lists all queue definitions for the current configuration.VWRosterDefinitiongetRosterDefinition(java.lang.String name)Gets the roster definition with specified name.VWRosterDefinition[]getRosterDefinitions()Gets the roster definitions associated with the current isolated region.java.lang.Integer[]getServerIDs()Lists all available server IDs.booleangetStatisticsCollection()Deprecated.since PE 5.2.0.0VWStepProcessorInfoDefinitiongetStepProcessorInfoDefinition(java.lang.String name)Gets a step processor info definition, specified by name.VWStepProcessorInfoDefinition[]getStepProcessorInfoDefinitions()Gets the VWStepProcessorInfoDefinition objects associated with this system configuration object.booleangetTrackAttachmentReferences()Gets the current state, enabled or disabled, of the attachment tracking option.booleanhasChanged()Returns whether or not this object has changed.java.lang.StringBufferimportConfig(java.io.BufferedReader in)Merges isolated region configuration from a file.java.lang.StringBufferimportConfig(java.io.InputStream theStream)Merges isolated region configuration from an input stream.java.lang.StringBufferimportConfig(java.lang.String theFileName)Merges isolated region configuration from a file.voidimportQueueDefinition(VWQueueDefinition queueDef)Adds the specified queue definition to the list of queue definitions.voidsetAttributeInfo(VWAttributeInfo theAttributeInfo)Sets a VWAttribute object containing attributes for this object.intsetLoggingState(int newLoggingOptions, boolean turnOn)Enables or disables system logging options.voidsetMaxDBOperations(int theMaxOperations)Sets the maximum number of database operations executed by the instruction sheet interpreter per transaction, which is used to maximize throughput between the workstation and the server.voidsetMaxInstructions(int theMaxInstructions)Sets the maximum number of instructions executed by the instruction sheet interpreter per transaction, which is used to maximize throughput between the workstation and server.voidsetObjectStoreId(VWGuid newObjectStoreId)Deprecated.(no replacement method)voidsetObjectStoreSymbolicName(java.lang.String newObjectStoreSymbolicName)Deprecated.(no replacement method)voidsetStatisticsCollection(boolean turnOn)Deprecated.since PE 5.2.0.0voidsetTrackAttachmentReferences(boolean turnOn)Enables or disables the tracking of attachment references.java.lang.StringtoString()Gets the String representation of the VWSystemConfiguration object.voidtoXML(java.lang.StringBuffer theBuffer)voidupdateApplicationSpaceDefinition(VWApplicationSpaceDefinition theApplicationSpaceDef)Updates an application space definition.voidupdateLogDefinition(VWLogDefinition theLogDefinition)Updates a log definition.voidupdateQueueDefinition(VWQueueDefinition theQueueDefinition)Updates a queue definition.voidupdateRosterDefinition(VWRosterDefinition theRosterDefinition)Updates a roster definition.
-
-
-
Field Detail
-
LOG_NONE
public static final int LOG_NONE
Value of 0. Disables logging for all selections. Refer to theVWSystemConfiguration.setLoggingState(int, boolean)method for information on setting the logging options.- See Also:
- Constant Field Values
-
LOG_WOBJ_EMPTY_STEP
public static final int LOG_WOBJ_EMPTY_STEP
Value of 0x00000010 (16 decimal). Enables logging for empty steps, (steps with no queue or participants). Refer to theVWSystemConfiguration.setLoggingState(int, boolean)method for more information.- See Also:
- Constant Field Values
-
LOG_WOBJ_RULES
public static final int LOG_WOBJ_RULES
Value of 0x00000020 (32 decimal). Enables logging for work object rules. Refer to theVWSystemConfiguration.setLoggingState(int, boolean)method for more information.- See Also:
- Constant Field Values
-
LOG_MILESTONES
public static final int LOG_MILESTONES
Value of 0x00000040 (64 decimal). Enables logging for milestones. Refer to theVWSystemConfiguration.setLoggingState(int, boolean)method for information on setting the logging options.- See Also:
- Constant Field Values
-
LOG_WOBJ_TRACE_INSTRUCTIONS
public static final int LOG_WOBJ_TRACE_INSTRUCTIONS
Value of 0x00000080 (128 decimal). Enables logging for work object trace instructions. Refer to theVWSystemConfiguration.setLoggingState(int, boolean)method for more information.- See Also:
- Constant Field Values
-
LOG_WOBJ_CREATION
public static final int LOG_WOBJ_CREATION
Value of 0x00000100 (256 decimal). Enables logging for work object creation. Refer to theVWSystemConfiguration.setLoggingState(int, boolean)method for information on setting the logging options.- See Also:
- Constant Field Values
-
LOG_WOBJ_TERMINATION
public static final int LOG_WOBJ_TERMINATION
Value of 0x00000200 (512 decimal). Enables logging for work object termination. Refer to theVWSystemConfiguration.setLoggingState(int, boolean)method for more information.- See Also:
- Constant Field Values
-
LOG_WOBJ_EXCEPTION
public static final int LOG_WOBJ_EXCEPTION
Value of 0x00000400 (1024 decimal). Enables logging for work object exceptions. Refer to theVWSystemConfiguration.setLoggingState(int, boolean)method for more information.- See Also:
- Constant Field Values
-
LOG_WOBJ_ADMINISTRATION
public static final int LOG_WOBJ_ADMINISTRATION
Value of 0x00001000 (4096 decimal). Enables logging for work object administration messages. Refer to theVWSystemConfiguration.setLoggingState(int, boolean)method for more information.- See Also:
- Constant Field Values
-
LOG_WOBJ_REASSIGN_TO_PROXY_USER
public static final int LOG_WOBJ_REASSIGN_TO_PROXY_USER
Value of 0x00002000 (8192 decimal). Enables logging for reassignment of work objects to a proxy user messages. Refer to theVWSystemConfiguration.setLoggingState(int, boolean)method for more information.- See Also:
- Constant Field Values
-
LOG_SYSTEM_MESSAGES
public static final int LOG_SYSTEM_MESSAGES
Value of 0x00010000 (65536 decimal). Enables logging for system messages. Refer to theVWSystemConfiguration.setLoggingState(int, boolean)method for information on setting the logging options.- See Also:
- Constant Field Values
-
LOG_BEGIN_SERVICE_OPERATION
public static final int LOG_BEGIN_SERVICE_OPERATION
Value of 0x00100000 (1048576 decimal). Enables logging when a work performer and work object begin operation. Refer to theVWSystemConfiguration.setLoggingState(int, boolean)method for more information.- See Also:
- Constant Field Values
-
LOG_END_SERVICE_OPERATION
public static final int LOG_END_SERVICE_OPERATION
Value of 0x00400000 (4194304 decimal). Enables logging when work performer and work object end operation. Refer to theVWSystemConfiguration.setLoggingState(int, boolean)method for more information.- See Also:
- Constant Field Values
-
LOG_USER_DEFINED_1
public static final int LOG_USER_DEFINED_1
Value of 0x40000000 (1073741824 decimal). Enables logging for user-defined message 1. Refer to theVWSystemConfiguration.setLoggingState(int, boolean)method for more information.- See Also:
- Constant Field Values
-
LOG_USER_DEFINED_2
public static final int LOG_USER_DEFINED_2
Value of 0x80000000 (2147483648 decimal). Enables logging for user-defined message 2. Refer to theVWSystemConfiguration.setLoggingState(int, boolean)method for more information.- See Also:
- Constant Field Values
-
LOG_ALL
public static final int LOG_ALL
Integer value that is the sum of all the other logging options. Enables logging for all selections. Refer to theVWSystemConfiguration.setLoggingState(int, boolean)method for information on setting the logging options.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VWSystemConfiguration
public VWSystemConfiguration()
Creates an empty system configuration instance.
-
-
Method Detail
-
commit
public java.lang.String[] commit() throws VWExceptionSaves system configuration changes to the current isolated region.Before calling this method, configuration changes reside only in local memory. The workflow system suspends all database transactions within the isolated region until the commit is complete. For this reason, you should call this method when the current isolated region is relatively inactive.
Note: Depending on your application and the calls you are making, you may need to adjust the client timeout value in your Java initiation statement prior to calling this method. For example, under Sun Solaris or using the Sun JVM, you may need to adjust the timeout value in the Java initiation statement as follows:
-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=100:15000:300:5
- Returns:
- An array of Strings in which each String represents an error encountered while the system attempted to transfer the settings. If the method does not encounter errors, the String contains a null value.
- Throws:
VWException- Thrown if the system encounters an error while attempting to transfer the system configuration to the online repository.
-
hasChanged
public boolean hasChanged() throws VWExceptionReturns whether or not this object has changed.- Returns:
- A boolean value of 'true' if this object has changed; 'false' otherwise.
- Throws:
VWException- Since:
- PE 5.0.0.0
-
createQueueDefinition
public VWQueueDefinition createQueueDefinition(java.lang.String theName, int theQueueType) throws VWException
Creates a queue definition instance.- Parameters:
theName- The queue name, which should conform to the following the guidelines:- Begin with an alphabetic character.
- Not begin with "F_".
- Not include special characters.
- Be alphanumeric (underscores are acceptable after the first letter in the name).
theQueueType- An integer value specifying the type of the queue, as defined in VWQueueDefinition class.Valid values are as follows:
- 1: Process (QUEUE_TYPE_PROCESS)
- 2: User-centric (QUEUE_TYPE_USER_CENTRIC)
- Returns:
- A VWQueueDefinition object that represents the new queue.
- Throws:
VWException- Causes include situations where a queue with the name specified in the theName parameter already exists, the queue name specified is invalid because it violates naming conventions, or the queue type specified in the theQueueType parameter is something other than QUEUE_TYPE_PROCESS or QUEUE_TYPE_USER_CENTRIC.- See Also:
VWQueueDefinition
-
deleteQueueDefinition
public void deleteQueueDefinition(java.lang.String theName) throws VWExceptionDeletes a queue definition- Parameters:
theName- The name of the queue definition to be deleted.- Throws:
VWException- Thrown if the method cannot delete a queue definition.- Since:
- PE 5.0.0.1
-
updateQueueDefinition
public void updateQueueDefinition(VWQueueDefinition theQueueDefinition) throws VWException
Updates a queue definition.- Parameters:
theQueueDefinition- The updated queue definition.- Throws:
VWException- Causes include situations where the queue definition does not exist or is invalid.- See Also:
VWQueueDefinition
-
getQueueDefinitions
public VWQueueDefinition[] getQueueDefinitions() throws VWException
Lists all queue definitions for the current configuration.- Returns:
- An array of VWQueueDefinition objects. Each object represents a queue definition for this isolated region.
- Throws:
VWException
-
getQueueDefinition
public VWQueueDefinition getQueueDefinition(java.lang.String name) throws VWException
Gets the queue definition with with specified name, for the current isolated region.- Parameters:
name- Name of the queue definition.- Returns:
- A VWQueueDefinition object associated with the current isolated region, or null if the queue definition does not exist.
- Throws:
VWException- Thrown if this method cannot get the named, existing log definition associated with the current isolated region.
-
getDefaultLogDefinition
public VWLogDefinition getDefaultLogDefinition() throws VWException
Gets the default definition for event logging.- Returns:
- A VWLogDefinition object that represents the default log definition for this isolated region, or null if there is no default log definition.
- Throws:
VWException- See Also:
VWLogDefinition
-
createLogDefinition
public VWLogDefinition createLogDefinition(java.lang.String theName) throws VWException
Creates a log definition.- Parameters:
theName- A String containing the name of the log definition.- Returns:
- A VWLogDefinition object that represents the newly created log definition.
- Throws:
VWException- Thrown if the log name specified in the theName parameter already exists or if the system encounters an error while attempting to create the log.- See Also:
VWLogDefinition
-
deleteLogDefinition
public void deleteLogDefinition(java.lang.String theName) throws VWExceptionDeletes an event log definition- Parameters:
theName- The name of the event log definition to be deleted.- Throws:
VWException- Thrown if the method cannot delete an event log definition.- Since:
- PE 5.0.0.1
-
updateLogDefinition
public void updateLogDefinition(VWLogDefinition theLogDefinition) throws VWException
Updates a log definition.- Parameters:
theLogDefinition- The updated log definition.- Throws:
VWException- Thrown if the log definition does not exist or if the system encounters an error while attempting to update the log definition.- See Also:
VWLogDefinition
-
getLogDefinitions
public VWLogDefinition[] getLogDefinitions() throws VWException
Gets the log definitions associated with this system configuration object.- Returns:
- An array of VWLogDefinition objects associated with the current isolated region.
- Throws:
VWException- Thrown if this method cannot get the log definitions associated with this system.
-
getLogDefinition
public VWLogDefinition getLogDefinition(java.lang.String name) throws VWException
Gets a log definition, specified by name.- Parameters:
name- Name of the log definition.- Returns:
- A VWLogDefinition object associated with the current isolated region, or null if the named log definition does not exist.
- Throws:
VWException- Thrown if the method cannot get the log definitions associated with this system.
-
createRosterDefinition
public VWRosterDefinition createRosterDefinition(java.lang.String theName) throws VWException
Creates a roster definition.- Parameters:
theName- A String containing the name to be used for the roster definition.- Returns:
- A VWRosterDefinition object that represents the newly created roster definition.
- Throws:
VWException- Thrown if the roster name specified in the theName parameter already exists or if the system cannot create the roster.- See Also:
VWRosterDefinition
-
deleteRosterDefinition
public void deleteRosterDefinition(java.lang.String theName) throws VWExceptionDeletes a roster definition- Parameters:
theName- The name of the roster definition to be deleted.- Throws:
VWException- Thrown if the method cannot delete a roster definition.- Since:
- PE 5.0.0.1
-
updateRosterDefinition
public void updateRosterDefinition(VWRosterDefinition theRosterDefinition) throws VWException
Updates a roster definition.- Parameters:
theRosterDefinition- The updated roster definition.- Throws:
VWException- Thrown if the roster definition does not exist or if the system encounters an error while attempting to update the roster definition.- See Also:
VWRosterDefinition
-
getRosterDefinitions
public VWRosterDefinition[] getRosterDefinitions() throws VWException
Gets the roster definitions associated with the current isolated region.- Returns:
- An array of VWRosterDefinition objects associated with the current isolated region.
- Throws:
VWException
-
getRosterDefinition
public VWRosterDefinition getRosterDefinition(java.lang.String name) throws VWException
Gets the roster definition with specified name.- Parameters:
name- Name of the roster definition.- Returns:
- A VWRosterDefinition object associated with the current isolated region, or null if the roster definition does not exist.
- Throws:
VWException- Thrown
-
createStepProcessorInfoDefinition
public VWStepProcessorInfoDefinition createStepProcessorInfoDefinition() throws VWException
Creates a step processor definition.- Returns:
- A VWStepProcessorInfoDefinition object for the step processor definition.
- Throws:
VWException- See Also:
VWStepProcessorInfoDefinition
-
deleteStepProcessorInfoDefinition
public void deleteStepProcessorInfoDefinition(VWStepProcessorInfoDefinition theSPDef) throws VWException
Deletes a step processor info definition- Parameters:
theSPDef- A VWStepProcessorInfoDefinition object reference that represents the step processor definition to be deleted.- Throws:
VWException- Thrown if the method cannot delete a step processor info definition.- See Also:
VWStepProcessorInfoDefinition
-
getStepProcessorInfoDefinitions
public VWStepProcessorInfoDefinition[] getStepProcessorInfoDefinitions() throws VWException
Gets the VWStepProcessorInfoDefinition objects associated with this system configuration object.- Returns:
- An array of VWStepProcessorInfoDefinition objects associated with the current isolated region.
- Throws:
VWException
-
getStepProcessorInfoDefinition
public VWStepProcessorInfoDefinition getStepProcessorInfoDefinition(java.lang.String name) throws VWException
Gets a step processor info definition, specified by name.- Parameters:
name- Name of the step processor info definition.- Returns:
- A VWStepProcessorInfoDefinition object associated with the current isolated region, or null if the queue definition does not exist.
- Throws:
VWException- Thrown if the method cannot get the log definitions associated with with the current isolated region.
-
createApplicationSpaceDefinition
public VWApplicationSpaceDefinition createApplicationSpaceDefinition(java.lang.String name) throws VWException
Creates an application space definition.- Parameters:
name- A String containing the name to assign to the application space definition.- Returns:
- The VWApplicationSpaceDefinition object for the new application space definition.
- Throws:
VWException- Since:
- P8 4.5.0
- See Also:
VWApplicationSpaceDefinition
-
deleteApplicationSpaceDefinition
public void deleteApplicationSpaceDefinition(java.lang.String theName) throws VWExceptionDeletes an application space definition- Parameters:
theName- The name of the application space definition to be deleted.- Throws:
VWException- Thrown if the method cannot delete an application space definition.- Since:
- PE 5.0.0.1
-
updateApplicationSpaceDefinition
public void updateApplicationSpaceDefinition(VWApplicationSpaceDefinition theApplicationSpaceDef) throws VWException
Updates an application space definition.- Parameters:
theApplicationSpaceDef- A VWApplicationSpaceDefinition object for the application space to update.- Throws:
VWException- Thrown if the application space definition does not exist, or if the system encounters an error while attempting to update the application space definition.- Since:
- P8 4.5.0
- See Also:
VWApplicationSpaceDefinition
-
getApplicationSpaceDefinitions
public VWApplicationSpaceDefinition[] getApplicationSpaceDefinitions() throws VWException
Gets all of the application space definitions associated with this system configuration.- Returns:
- An array of VWApplicationSpaceDefinition objects associated with the current isolated region.
- Throws:
VWException- Since:
- P8 4.5.0
-
getApplicationSpaceDefinition
public VWApplicationSpaceDefinition getApplicationSpaceDefinition(java.lang.String name) throws VWException
Gets an application space definition.- Parameters:
name- A String containing the name of the application space.- Returns:
- A VWApplicationSpaceDefinition object associated with the current isolated region, or null if the specified application space definition does not exist.
- Throws:
VWException- Thrown if the method cannot get the application space definition associated with with the current isolated region.- Since:
- P8 4.5.0
-
getLoggingState
public boolean getLoggingState(int theLoggingOption)
Determines whether or not a logging option is enabled or disabled.- Parameters:
theLoggingOption- An integer value that specifies the logging options to check. Valid logging option values are as follows:- Disable logging (
VWSystemConfiguration.LOG_NONE) - Enable all logging (
VWSystemConfiguration.LOG_ALL) - Work object creation (
VWSystemConfiguration.LOG_WOBJ_CREATION) - Work object termination (
VWSystemConfiguration.LOG_WOBJ_TERMINATION) - Work object exceptions (
VWSystemConfiguration.LOG_WOBJ_EXCEPTION) - Work object administration messages (
VWSystemConfiguration.LOG_WOBJ_ADMINISTRATION) - Work object trace instructions (
VWSystemConfiguration.LOG_WOBJ_TRACE_INSTRUCTIONS) - When a work performer [and] a work object begin an operation (
VWSystemConfiguration.LOG_BEGIN_SERVICE_OPERATION) - When a work performer [and] a work object end an operation (
VWSystemConfiguration.LOG_END_SERVICE_OPERATION) - User-defined message 1 (
VWSystemConfiguration.LOG_USER_DEFINED_1) - User-defined message 2 (
VWSystemConfiguration.LOG_USER_DEFINED_2) - System messages (
VWSystemConfiguration.LOG_SYSTEM_MESSAGES) - Milestones (
VWSystemConfiguration.LOG_MILESTONES) - Empty Steps (
VWSystemConfiguration.LOG_WOBJ_EMPTY_STEP) - Rules (
VWSystemConfiguration.LOG_WOBJ_RULES) - Reassign To Proxy User (
VWSystemConfiguration.LOG_WOBJ_REASSIGN_TO_PROXY_USER)
- Disable logging (
- Returns:
- A boolean value. This method returns
trueif the logging option specified in the theLoggingOption parameter is enabled currently; otherwise, this method returnsfalse.
-
getLoggingState
public int getLoggingState()
Gets the value of all the logging states.- Returns:
- An integer value that represents the logging state for the system. This value is the sum of the individual logging state values in the current instance of the VWSystemConfiguration class.
-
setLoggingState
public int setLoggingState(int newLoggingOptions, boolean turnOn) throws VWExceptionEnables or disables system logging options.- Parameters:
newLoggingOptions- An integer value specifying the logging options to enable or disable. Combine multiple options by summing them. Valid logging option values are as follows:- Disable logging (
VWSystemConfiguration.LOG_NONE) - Enable all logging (
VWSystemConfiguration.LOG_ALL) - Work object creation (
VWSystemConfiguration.LOG_WOBJ_CREATION) - Work object termination (
VWSystemConfiguration.LOG_WOBJ_TERMINATION) - Work object exceptions (
VWSystemConfiguration.LOG_WOBJ_EXCEPTION) - Work object administration messages (
VWSystemConfiguration.LOG_WOBJ_ADMINISTRATION) - Work object trace instructions (
VWSystemConfiguration.LOG_WOBJ_TRACE_INSTRUCTIONS) - When a work performer [and] a work object begin an operation (
VWSystemConfiguration.LOG_BEGIN_SERVICE_OPERATION) - When a work performer [and] a work object end an operation (
VWSystemConfiguration.LOG_END_SERVICE_OPERATION) - User-defined message 1 (
VWSystemConfiguration.LOG_USER_DEFINED_1) - User-defined message 2 (
VWSystemConfiguration.LOG_USER_DEFINED_2) - System messages (
VWSystemConfiguration.LOG_SYSTEM_MESSAGES) - Milestones (
VWSystemConfiguration.LOG_MILESTONES) - Empty Steps (
VWSystemConfiguration.LOG_WOBJ_EMPTY_STEP) - Rules (
VWSystemConfiguration.LOG_WOBJ_RULES) - Reassign To Proxy User (
VWSystemConfiguration.LOG_WOBJ_REASSIGN_TO_PROXY_USER)
- Disable logging (
turnOn- A boolean value. Set to 'TRUE' to turn logging on for the options represented by the newLoggingOptions parameter.
Set to 'FALSE' to turn off logging for the options represented by the theLoggingOptions parameter.If LOG_ALL is passed in and turnOn is 'FALSE', then logging options are set to LOG_NONE. If LOG_NONE is passed in and turnOn is 'FALSE', then logging options are set to LOG_ALL.
- Returns:
- An integer that represents the logging options that resulted from this method call.
- Throws:
VWException- Thrown if the method cannot enable or disable system logging options. This can occur if a logging option is invalid, for example.
-
getMaxDBOperations
public int getMaxDBOperations()
Gets the current maximum number of database operations per transaction.- Returns:
- An integer value indicating the current number of allowed database operation for each workflow transaction.
-
setMaxDBOperations
public void setMaxDBOperations(int theMaxOperations)
Sets the maximum number of database operations executed by the instruction sheet interpreter per transaction, which is used to maximize throughput between the workstation and the server.- Parameters:
theMaxOperations- An integer value specifying the maximum number of database operations per transaction- See Also:
VWSystemConfiguration.getMaxDBOperations()
-
getMaxInstructions
public int getMaxInstructions()
Gets the current maximum number of instructions per transaction.- Returns:
- Current maximum number of instructions per transaction
-
setMaxInstructions
public void setMaxInstructions(int theMaxInstructions)
Sets the maximum number of instructions executed by the instruction sheet interpreter per transaction, which is used to maximize throughput between the workstation and server.- Parameters:
theMaxInstructions- An integer representing the maximum number of instructions per transaction.- See Also:
VWSystemConfiguration.getMaxInstructions()
-
getServerIDs
public java.lang.Integer[] getServerIDs()
Lists all available server IDs.- Returns:
- An array of integer values representing the IDs for each available server.
-
getStatisticsCollection
public boolean getStatisticsCollection()
Deprecated. since PE 5.2.0.0Gets the current state of the statistics collection option.- Returns:
- The current boolean value.
-
setStatisticsCollection
public void setStatisticsCollection(boolean turnOn)
Deprecated. since PE 5.2.0.0Enables or disables the statistics gathering. This value will be reset tofalseby the PE server.- Parameters:
turnOn- this value is ignored by the PE server. Statistics gathering can no longer be enabled.
-
getTrackAttachmentReferences
public boolean getTrackAttachmentReferences()
Gets the current state, enabled or disabled, of the attachment tracking option.Note: When attachment tracking is turned on, only the first 256 bytes are used for tracking purposes. Normally, only IDs that are a URL or UNC are this long. This tracking feature does not limit the ID field within an attachment or attachment object, itself.
- Returns:
trueif attachment tracking is currently enabled;falseif tracking of attachments is disabled.
-
setTrackAttachmentReferences
public void setTrackAttachmentReferences(boolean turnOn)
Enables or disables the tracking of attachment references.Note: When attachment tracking is turned on, the internal ID of attachment being tracked is limited to 256 bytes. If the attachment ID is longer than 256 bytes, the ID will be truncated to the first 256 bytes.
- Parameters:
turnOn- A boolean value. Specifytrueto enable tracking of attachment references; specifyfalseto disable tracking of attachment references.
-
getLocalizedString
public static java.lang.String getLocalizedString(int theLogType) throws VWExceptionGets a localized String representation of the log type.- Parameters:
theLogType- An integer value that represents the log type to be represented by a String. Valid logging option values are as follows:- Disable logging (
VWSystemConfiguration.LOG_NONE) - Enable all logging (
VWSystemConfiguration.LOG_ALL) - Work object creation (
VWSystemConfiguration.LOG_WOBJ_CREATION) - Work object termination (
VWSystemConfiguration.LOG_WOBJ_TERMINATION) - Work object exceptions (
VWSystemConfiguration.LOG_WOBJ_EXCEPTION) - Work object administration messages (
VWSystemConfiguration.LOG_WOBJ_ADMINISTRATION) - Work object trace instructions (
VWSystemConfiguration.LOG_WOBJ_TRACE_INSTRUCTIONS) - When a work performer [and] a work object begin an operation (
VWSystemConfiguration.LOG_BEGIN_SERVICE_OPERATION) - When a work performer [and] a work object end an operation (
VWSystemConfiguration.LOG_END_SERVICE_OPERATION) - User-defined message 1 (
VWSystemConfiguration.LOG_USER_DEFINED_1) - User-defined message 2 (
VWSystemConfiguration.LOG_USER_DEFINED_2) - System messages (
VWSystemConfiguration.LOG_SYSTEM_MESSAGES) - Milestones (
VWSystemConfiguration.LOG_MILESTONES) - Empty Steps (
VWSystemConfiguration.LOG_WOBJ_EMPTY_STEP) - Rules (
VWSystemConfiguration.LOG_WOBJ_RULES) - Reassign To Proxy User (
VWSystemConfiguration.LOG_WOBJ_REASSIGN_TO_PROXY_USER)
- Disable logging (
- Returns:
- A String containing the localized text representation of the log type.
- Throws:
VWException- Thrown if the log type specified in the theLogType parameter is invalid.
-
getExposedFields
public VWExposedFieldDefinition[] getExposedFields() throws VWException
Returns all the exposed fields on the queues, the rosters, and the logs.- Returns:
- An array of VWExposedFieldDefinition objects that define all queue, roster, and log definitions for the current system configuration.
- Throws:
VWException
-
getAttributeInfo
public VWAttributeInfo getAttributeInfo() throws VWException
Gets a VWAttribute object containing attributes for this object, as paired labels (keywords) and values in String format.- Returns:
- A VWAttribute object containing attributes for this object, as paired labels (keywords) and values in String format.
- Throws:
VWException- See Also:
VWSystemConfiguration.setAttributeInfo(filenet.vw.api.VWAttributeInfo)
-
setAttributeInfo
public void setAttributeInfo(VWAttributeInfo theAttributeInfo) throws VWException
Sets a VWAttribute object containing attributes for this object.- Parameters:
theAttributeInfo- A VWAttribute object containing attributes for this object, as paired labels (keywords) and values in String format.- Throws:
VWException- See Also:
VWSystemConfiguration.getAttributeInfo()
-
toString
public java.lang.String toString()
Gets the String representation of the VWSystemConfiguration object.- Overrides:
toStringin classjava.lang.Object- Returns:
- The name of the current isolated region.
-
toXML
public void toXML(java.lang.StringBuffer theBuffer) throws VWExceptionDeprecated. UseVWSystemConfiguration.exportConfigChanges(OutputStream)VWSystemConfiguration.exportConfigChanges(String), orVWXMLConfiguration.makeXMLBlock(IVWtoXML[]).Appends an XML string representing this instance to the buffer specified.Warning: This XML string is nonextensible, and cannot be modified in any way.
- Specified by:
toXMLin interfaceIVWtoXML- Parameters:
theBuffer- A StringBuffer that will be appended with the XML content.- Throws:
VWException- Thrown if the specified buffer is null.- See Also:
VWXMLConfiguration
-
importConfig
public java.lang.StringBuffer importConfig(java.io.InputStream theStream) throws VWExceptionMerges isolated region configuration from an input stream.- Parameters:
theStream- An input stream from which to read the VWSystemConfiguration object definition.- Returns:
- A StringBuffer containing an import log.
- Throws:
VWException- Thrown if it cannot evaluate a region configuration from an input stream.- Since:
- PE 5.0.0.0
- See Also:
VWSystemConfiguration.exportConfigChanges(OutputStream),VWSystemConfiguration.importConfig(String)
-
importConfig
public java.lang.StringBuffer importConfig(java.lang.String theFileName) throws VWExceptionMerges isolated region configuration from a file.- Parameters:
theFileName- A String containing the name of the file from which to read the VWSystemConfiguration object definition.- Returns:
- A StringBuffer containing an import log.
- Throws:
VWException- Since:
- PE 5.0.0.0
- See Also:
VWSystemConfiguration.exportConfigChanges(String),VWSystemConfiguration.importConfig(InputStream)
-
importConfig
public java.lang.StringBuffer importConfig(java.io.BufferedReader in) throws VWExceptionMerges isolated region configuration from a file.- Parameters:
theFileName- A String containing the name of the file from which to read the VWSystemConfiguration object definition.in- A BufferedReader object from which to read the isolated region configuration definition.- Returns:
- A
StringBuffercontaining the import log information. - Throws:
VWException- Since:
- PE 5.0.0.0
- See Also:
VWSystemConfiguration.importConfig(InputStream),VWSystemConfiguration.importConfig(String)
-
exportConfigChanges
public void exportConfigChanges(java.io.OutputStream theStream) throws VWExceptionWrites the "uncommitted" items to an output stream.- Parameters:
theStream- An OutputStream object to which to write this instance.- Throws:
VWException- Thrown if this instance is unable to be written to the output stream specified.- Since:
- PE 5.0.0.0
- See Also:
VWSystemConfiguration.importConfig(InputStream),VWSystemConfiguration.exportConfigChanges(String)
-
exportConfigChanges
public void exportConfigChanges(java.lang.String theFileName) throws VWExceptionWrites the "uncommitted" items to a file.- Parameters:
theFileName- A String containing the name of the file to which to write this instance.- Throws:
VWException- Thrown if this instance cannot be written to the specified file.- Since:
- PE 5.0.0.0
- See Also:
VWSystemConfiguration.importConfig(String),VWSystemConfiguration.exportConfigChanges(OutputStream)
-
getObjectStoreId
public VWGuid getObjectStoreId() throws VWException
Deprecated. replaced by VWSession.getObjectStoreId()Gets the object store ID for this isolated region.- Returns:
- A VWGuid object representing the object store ID.
- Throws:
VWException- Since:
- PE 5.0.0.0
-
setObjectStoreId
public void setObjectStoreId(VWGuid newObjectStoreId) throws VWException
Deprecated. (no replacement method)Note: The object store ID can not be set for this isolated region using this method.- Parameters:
newObjectStoreId- A VWGuid object representing the object store id for this isolated region.- Throws:
VWException- if the VWGuid contains the undefined (default) guid value- Since:
- PE 5.0.0.0
-
getObjectStoreSymbolicName
public java.lang.String getObjectStoreSymbolicName() throws VWExceptionDeprecated. Replaced by VWSession.getObjectStoreSymbolicName();Gets the object store's symbolic name for this isolated region.- Returns:
- A String containing the symbolic name for the object store. Null is returned, if the symbolic name value is not set for the object store.
- Throws:
VWException- Since:
- PE 5.0.0.0
-
setObjectStoreSymbolicName
public void setObjectStoreSymbolicName(java.lang.String newObjectStoreSymbolicName) throws VWExceptionDeprecated. (no replacement method)Note: The object store ID can not be set for this isolated region using this method.- Parameters:
newObjectStoreSymbolicName- A String containing the object store's symbolic name for this isolated region.- Throws:
VWException- Since:
- PE 5.0.0.0
-
getIsRetrievedFromServer
public boolean getIsRetrievedFromServer()
- Returns:
- true if this configuration has been retrieved from the server
- Since:
- PE 5.0.0.0
-
importQueueDefinition
public void importQueueDefinition(VWQueueDefinition queueDef) throws VWException
Adds the specified queue definition to the list of queue definitions. If the queue already exists in the list, it is replaced.- Parameters:
queueDef- The queue definition to import.- Throws:
VWException- Since:
- PE 5.2.0.2
-
-