return resourcePersistence.selectResourceByDeploymentIdAndResourceName(deploymentId,resourceName);
}
if (statement.equals("selectProcessDefinitionByDeploymentAndKey")) {
ProcessDefinitionPersistence processDefinitionPersistence = ProcessObjectFactory.FACTORYINSTANCE.createProcessDefinitionPersistence(connection);
return processDefinitionPersistence.selectProcessDefinitionByDeploymentAndKey(parameter);
}
if (statement.equals("findUserSubmitProcess")) {
ProcessDefinitionPersistence processDefinitionPersistence = ProcessObjectFactory.FACTORYINSTANCE.createProcessDefinitionPersistence(connection);
Map<String, String> strmap = (Map<String, String>) parameter;
String userId = strmap.get("userId");
int number = StringUtil.getInt(strmap.get("number"));
return processDefinitionPersistence.findUserSubmitProcess(userId,number);
}
if (statement.equals("selectDeploymentById")) {
DeploymentPersistence deploymentPersistence = ProcessObjectFactory.FACTORYINSTANCE.createDeploymentPersistence(connection);
String deploymentId = StringUtil.getString(parameter);
return deploymentPersistence.getDeployment(deploymentId);
}
if (statement.equals("selectLatestProcessDefinitionByKey")) {
ProcessDefinitionPersistence processDefinitionPersistence = ProcessObjectFactory.FACTORYINSTANCE.createProcessDefinitionPersistence(connection);
ProcessDefinitionBehavior processDefinition = processDefinitionPersistence.selectLatestProcessDefinitionByKey(parameter.toString());
return processDefinition;
}
if (statement.equals("selectProcessDefinitionById")) {
ProcessDefinitionPersistence processDefinitionPersistence = ProcessObjectFactory.FACTORYINSTANCE.createProcessDefinitionPersistence(connection);
ProcessDefinitionBehavior processDefinition = processDefinitionPersistence.selectProcessDefinitionById(parameter.toString());
return processDefinition;
}
if (statement.equals("selectResourceByResourceId")) {
ResourcePersistence resourcePersistence = ProcessObjectFactory.FACTORYINSTANCE.createResourcePersistence(connection);
return resourcePersistence.getResourceInputStream(parameter.toString());
}
if (statement.equals("selectProcessDefinitionByKeyAndVersion")) {
ProcessDefinitionPersistence processDefinitionPersistence = ProcessObjectFactory.FACTORYINSTANCE.createProcessDefinitionPersistence(connection);
ProcessDefinitionBehavior processDefinition = processDefinitionPersistence.selectLatestProcessDefinitionByKeyAndVersion(parameter);
return processDefinition;
}
if(statement.equals("selectProcessDefinitionCountByQueryCriteria")){
ProcessDefinitionPersistence processDefinitionPersistence = ProcessObjectFactory.FACTORYINSTANCE.createProcessDefinitionPersistence(connection);
return processDefinitionPersistence.selectProcessDefinitionsCountByQueryCriteria((ProcessDefinitionQueryImpl)parameter);
}
return null;
}