Closing Cases

The following command instructs the iProcess background process to perform an instruction. This is a command line option only.

Note 

This command requests confirmation from the user (with an “Are you sure you want to do this” message), but this may be suppressed with a -y flag on the end of the command line enabling it to be run from a batch file.

If you want to close a large number of cases you should consider using the swbatch utility instead. See Batch Processing Cases.

To close one or more cases of a procedure, enter the following command:

swutil CLOSE procname caselist [-y] [-d] [-P priority]

where:

procname is the procedure name (including sub-procedures).
caselist is a list of case numbers to be closed separated by commas and with dashes denoting ranges of case numbers, for example, 2,5-10 denotes case 2 and cases 5 to 10 inclusive.
-y suppresses the request for confirmation from the user.
-d closes cases without triggering events that are set for the OnBeforeClose event or the OnAfterClose event. If you are running the swutil CLOSE command without the -d option, these events are triggered before or after closing the case. For more information about the OnBeforeClose event and the OnAfterClose event, see TIBCO iProcess Modeler Procedure Management.
-P priority specifies the internal message queue priorities. For more information about message priorities, see "Message Prioritizing" in the appropriate TIBCO iProcess Engine (Database) Administrator’s Guide.