package com.blueland.bpm.manage.service;

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

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.blueland.bpm.application.model.ApplicationEntity;
import com.blueland.bpm.application.service.ApplicationManager;
import com.blueland.bpm.engine.core.service.ProcessDefinitionService;

/**
 * @作者     lw
 * @创建时间  2018年4月26日
 * @说明     
 */
@Service
public class CheckProcessResourceService {
	@Autowired
	private ProcessDefinitionService processDefinitionService;	
	@Autowired
	private ApplicationManager applicationManager;
	public void check() {
		ApplicationEntity query=new ApplicationEntity();
		query.setAppTypes("('inner','outside')");
		List<ApplicationEntity> entitys = this.applicationManager.findByExample(query);
		for (ApplicationEntity app : entitys) {
			//List<Map<String,Object>> inProcess = processDefinitionService.findResourceByOrgError(app.getAppId(),false);
			//System.out.println(inProcess);
		}
	}
}
