Skip to content

Commit

Permalink
fix bom
Browse files Browse the repository at this point in the history
  • Loading branch information
elguardian committed Mar 1, 2024
1 parent 953d96a commit 3f8044b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public void migrate(String targetProcessId, String targetProcessVersion, String[
throw uncheckedException(e, "Error deleting process instance %s", Arrays.toString(processIds));
}
}

private boolean updateInternal(String id, byte[] payload) {
try {
Future<RowSet<Row>> future =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public void testMigrationNode() {
MigrationPlanService service = new MigrationPlanService();
WorkflowProcessInstanceImpl processImpl = new RuleFlowProcessInstance();
processImpl.setProcess(new DummyProcess("process_A", "1"));
ExtendedNodeInstanceImpl nodeInstanceImpl = new ExtendedNodeInstanceImpl() {};
ExtendedNodeInstanceImpl nodeInstanceImpl = new ExtendedNodeInstanceImpl() {
};
nodeInstanceImpl.setProcessInstance(processImpl);
nodeInstanceImpl.setNodeId(fromExternalFormat("node_1"));
service.migrateNodeElement(nodeInstanceImpl);
Expand All @@ -85,7 +86,8 @@ public void testMigrationNodeNextItem() {
MigrationPlanService service = new MigrationPlanService();
WorkflowProcessInstanceImpl processImpl = new RuleFlowProcessInstance();
processImpl.setProcess(new DummyProcess("process_A", "1"));
ExtendedNodeInstanceImpl nodeInstanceImpl = new ExtendedNodeInstanceImpl() {};
ExtendedNodeInstanceImpl nodeInstanceImpl = new ExtendedNodeInstanceImpl() {
};
nodeInstanceImpl.setProcessInstance(processImpl);
nodeInstanceImpl.setNodeId(fromExternalFormat("node_2"));
service.migrateNodeElement(nodeInstanceImpl);
Expand All @@ -99,7 +101,8 @@ public void testMigrationNodeNonExistent() {
MigrationPlanService service = new MigrationPlanService();
WorkflowProcessInstanceImpl processImpl = new RuleFlowProcessInstance();
processImpl.setProcess(new DummyProcess("process_A", "1"));
ExtendedNodeInstanceImpl nodeInstanceImpl = new ExtendedNodeInstanceImpl() {};
ExtendedNodeInstanceImpl nodeInstanceImpl = new ExtendedNodeInstanceImpl() {
};
nodeInstanceImpl.setProcessInstance(processImpl);
nodeInstanceImpl.setNodeId(fromExternalFormat("node_3"));
service.migrateNodeElement(nodeInstanceImpl);
Expand All @@ -113,7 +116,8 @@ public void testMigrationNodeNotMigratedWrongProcess() {
MigrationPlanService service = new MigrationPlanService();
WorkflowProcessInstanceImpl processImpl = new RuleFlowProcessInstance();
processImpl.setProcess(new DummyProcess("process_C", "1"));
ExtendedNodeInstanceImpl nodeInstanceImpl = new ExtendedNodeInstanceImpl() {};
ExtendedNodeInstanceImpl nodeInstanceImpl = new ExtendedNodeInstanceImpl() {
};
nodeInstanceImpl.setProcessInstance(processImpl);
nodeInstanceImpl.setNodeId(fromExternalFormat("node_3"));
service.migrateNodeElement(nodeInstanceImpl);
Expand Down
11 changes: 11 additions & 0 deletions kogito-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1758,6 +1758,17 @@
<version>${project.version}</version>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>jbpm-flow-migration</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>jbpm-flow-migration</artifactId>
<version>${project.version}</version>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>jbpm-flow</artifactId>
Expand Down

0 comments on commit 3f8044b

Please sign in to comment.