Last Updated on

This API is used to restart the batch from the specified module. User can restart only those batch instances that are accessible to their role.

Request Method: GET

Input Parameters

Input Parameter Values Descriptions
batchInstanceIdentifier This value should be valid batch instance identifier. This parameter is used to specifying the batch instance identifier for which batch instance to be restart.
restartAtModuleName This value should not be empty.

Example Folder_Import

This parameter is used specifying the module name from where batch needs to be restarted.


Web Service URL: http://{serverName}:{port}/dcma/rest/restartBatchInstance/{batchInstanceIdentifier}/{restartAtModuleName}


  1. Batch Instance identifier should be valid and must be acessible to the user.
  2. restartAtModuleName parameter value should valid module name and it can be differ with batch class.

Sample client code using apache commons http client:-

private static void restartBatchInstance() {
		HttpClient client = new HttpClient();
		String url = "http://localhost:8080/dcma/rest/restartBatchInstance/BI1/Folder_Import_Module";
		GetMethod getMethod = new GetMethod(url);
		int statusCode;
		try {
			statusCode = client.executeMethod(getMethod);
			if (statusCode == 200) {
				System.out.println("Web service executed successfully.");
				String responseBody = getMethod.getResponseBodyAsString();
				System.out.println(statusCode + " *** " + responseBody);
			} else if (statusCode == 403) {
				System.out.println("Invalid username/password.");
			} else {
		} catch (HttpException e) {
		} catch (IOException e) {
		} finally {
			if (getMethod != null) {

Was this article helpful to you?