Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
TSK-687: Add history query with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BVier authored and MiguelMartinRojas committed Dec 11, 2018
1 parent fbac4b2 commit aa245d1
Show file tree
Hide file tree
Showing 17 changed files with 2,145 additions and 15 deletions.
2 changes: 1 addition & 1 deletion lib/taskana-simplehistory-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
<dependency>
<groupId>pro.taskana</groupId>
<artifactId>taskana-core</artifactId>
<version>1.0.4</version>
<version>1.0.5-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
public class DbSchemaCreator {

private static final Logger LOGGER = LoggerFactory.getLogger(DbSchemaCreator.class);
private static final String SQL = "/sql";
private static final String DB_SCHEMA = "/sql/taskana-history-schema.sql";
private DataSource dataSource;
private String schemaName;
Expand All @@ -39,6 +38,7 @@ public DbSchemaCreator(DataSource dataSource, String schema) throws SQLException
*/
public void run() throws SQLException {
Connection connection = dataSource.getConnection();
connection.setSchema(schemaName);
ScriptRunner runner = new ScriptRunner(connection);
runner.setStopOnError(true);
runner.setLogWriter(logWriter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class HistoryEventImpl extends TaskanaHistoryEvent {
private String businessProcessId;
private String parentBusinessProcessId;
private String taskId;
private String type;
private String eventType;
private Instant created;
private String userId;
private String domain;
Expand Down Expand Up @@ -64,12 +64,12 @@ public void setTaskId(String taskId) {

@Override
public String getType() {
return type;
return eventType;
}

@Override
public void setType(String type) {
this.type = type;
this.eventType = type;
}

@Override
Expand Down
Loading

0 comments on commit aa245d1

Please sign in to comment.