/**
 * OpenCPS is the open source Core Public Services software
 * Copyright (C) 2016-present OpenCPS community
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>
 */

package org.opencps.backend.scheduler;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.opencps.processmgt.model.SchedulerJobs;
import org.opencps.processmgt.service.SchedulerJobsLocalServiceUtil;

import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.messaging.Message;
import com.liferay.portal.kernel.messaging.MessageListener;
import com.liferay.portal.kernel.messaging.MessageListenerException;


/**
 * @author khoavd
 *
 */
public class OneMinute implements MessageListener{

	/* (non-Javadoc)
     * @see com.liferay.portal.kernel.messaging.MessageListener#receive(com.liferay.portal.kernel.messaging.Message)
     */
    @Override
	public void receive(Message message)
	    throws MessageListenerException {
		
    	_log.info(">>>>> CHECK PAYMENT <<<<<<");
		
		List<SchedulerJobs> schedulerJobs = new ArrayList<SchedulerJobs>();

		try {
			schedulerJobs = SchedulerJobsLocalServiceUtil.getSchedulerJobs(1);
			for (SchedulerJobs schJob : schedulerJobs) {
				SchedulerUtils.doScheduler(schJob);
			}

		}
		catch (Exception e) {
			_log.error(e);

		}
	}

	private Log _log = LogFactoryUtil.getLog(OneMinute.class);

}

@@ -1591,16 +1591,18 @@
 n %7B%0A%09%09%0A 
+/*
    %09_log
@@ -1935,16 +1935,18 @@
 );%0A%0A%09%09%7D%0A
+*/
 %09%7D%0A%0A%09pri

Disable auto check one minute