summaryrefslogtreecommitdiff
path: root/calamus-engine/src/main/resources
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2014-04-13 00:04:13 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2014-04-13 00:04:13 +0200
commit07dde8de9d6040e60bf59e238444f620dba330c0 (patch)
tree0be82f05640bd84db734034f91022aa1532d5217 /calamus-engine/src/main/resources
parenta521a2d74c480c53c1004e7e5e2addd28a0578f4 (diff)
downloadcalamus-07dde8de9d6040e60bf59e238444f620dba330c0.tar.gz
calamus-07dde8de9d6040e60bf59e238444f620dba330c0.tar.bz2
calamus-07dde8de9d6040e60bf59e238444f620dba330c0.tar.xz
calamus-07dde8de9d6040e60bf59e238444f620dba330c0.zip
wip
Diffstat (limited to 'calamus-engine/src/main/resources')
-rw-r--r--calamus-engine/src/main/resources/db/public/V001_001__baseline.sql27
-rw-r--r--calamus-engine/src/main/resources/logback.xml7
2 files changed, 32 insertions, 2 deletions
diff --git a/calamus-engine/src/main/resources/db/public/V001_001__baseline.sql b/calamus-engine/src/main/resources/db/public/V001_001__baseline.sql
index b1e7a02..3e39c06 100644
--- a/calamus-engine/src/main/resources/db/public/V001_001__baseline.sql
+++ b/calamus-engine/src/main/resources/db/public/V001_001__baseline.sql
@@ -12,3 +12,30 @@ CREATE TABLE artifact (
git_hash CHAR(40) NOT NULL,
level VARCHAR(100) NOT NULL
);
+
+DROP TABLE IF EXISTS process;
+CREATE TABLE process (
+ id BIGINT NOT NULL PRIMARY KEY,
+ name VARCHAR(100) NOT NULL,
+ process_id VARCHAR(100) NOT NULL
+);
+
+DROP TABLE IF EXISTS process_trigger;
+CREATE TABLE process_trigger (
+ id BIGINT NOT NULL PRIMARY KEY,
+ process_id BIGINT NOT NULL REFERENCES process,
+ mvel VARCHAR(1000) NOT NULL
+);
+
+INSERT INTO process (id, name, process_id)
+VALUES ((SELECT
+ nextval('calamus_seq')), 'Deploy', 'io.trygvis.calamus.Deploy');
+
+INSERT INTO process_trigger (id, process_id, mvel)
+VALUES ((SELECT
+ nextval('calamus_seq')),
+ (SELECT
+ id
+ FROM process
+ WHERE process_id = 'io.trygvis.calamus.Deploy'),
+ 'artifact.groupId == "demo"');
diff --git a/calamus-engine/src/main/resources/logback.xml b/calamus-engine/src/main/resources/logback.xml
index d054893..743dd8b 100644
--- a/calamus-engine/src/main/resources/logback.xml
+++ b/calamus-engine/src/main/resources/logback.xml
@@ -2,10 +2,13 @@
<configuration debug="false">
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
- <Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern>
+ <Pattern>%d{HH:mm:ss.SSS} %-5level [%-60thread] %-50logger{36} - [TX=%X{btm-gtrid}] - %msg%n</Pattern>
</encoder>
</appender>
- <root level="INFO">
+
+ <logger name="org.hibernate.hql.internal" level="INFO"/>
+
+ <root level="DEBUG">
<appender-ref ref="CONSOLE"/>
</root>
</configuration>