Skip to content

Commit

Permalink
Merge branch 'release/v1.0.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
shiido committed Dec 26, 2021
2 parents 9f6b2be + bccde73 commit 9e14c6b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<groupId>com.ai.st.microservice.tasks</groupId>
<artifactId>st-microservice-tasks</artifactId>
<version>1.0.8</version>
<version>1.0.9</version>
<name>st-microservice-tasks</name>
<description>Microservice Tasks</description>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
package com.ai.st.microservice.tasks;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

import com.ai.st.microservice.tasks.business.TaskCategoryBusiness;
import com.ai.st.microservice.tasks.business.TaskStateBusiness;
import com.ai.st.microservice.tasks.business.TaskTypeStepBusiness;
Expand All @@ -16,6 +9,12 @@
import com.ai.st.microservice.tasks.services.ITaskCategoryService;
import com.ai.st.microservice.tasks.services.ITaskStateService;
import com.ai.st.microservice.tasks.services.ITaskTypeStepService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

@Component
public class StMicroserviceTaskApplicationStartup implements ApplicationListener<ContextRefreshedEvent> {
Expand Down Expand Up @@ -83,15 +82,18 @@ public void initTasksCategories() {
TaskCategoryEntity categoryIntegration = new TaskCategoryEntity();
categoryIntegration.setId(TaskCategoryBusiness.TASK_CATEGORY_INTEGRATION);
categoryIntegration.setName("INTEGRACIÓN DE INSUMOS");

taskCategoryService.createTaskCategory(categoryIntegration);

TaskCategoryEntity categoryGeneration = new TaskCategoryEntity();
categoryGeneration.setId(TaskCategoryBusiness.TASK_CATEGORY_CADASTRAL_INPUT_GENERATION);
categoryGeneration.setName("GENERACIÓN INSUMO CATASTRAL");

taskCategoryService.createTaskCategory(categoryGeneration);

TaskCategoryEntity categoryXTFQuality = new TaskCategoryEntity();
categoryXTFQuality.setId(TaskCategoryBusiness.TASK_CATEGORY_XTF_QUALITY_RULES);
categoryXTFQuality.setName("CONTROL DE CALIDAD XTF");
taskCategoryService.createTaskCategory(categoryXTFQuality);

log.info("The domains 'categories' have been loaded!");
} catch (Exception e) {
System.out.println("ERROR: " + e.getMessage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ public class TaskCategoryBusiness {

public static final Long TASK_CATEGORY_INTEGRATION = (long) 1;
public static final Long TASK_CATEGORY_CADASTRAL_INPUT_GENERATION = (long) 2;
public static final Long TASK_CATEGORY_XTF_QUALITY_RULES = (long) 3;

}
2 changes: 1 addition & 1 deletion src/main/resources/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ spring:
application:
name: st-microservice-tasks
profiles:
active: "production"
active: "develop"
cloud:
config:
enabled: true
Expand Down

0 comments on commit 9e14c6b

Please sign in to comment.