Skip to content

Commit

Permalink
[kie-issues-386] Test case to verify dynamic task description during …
Browse files Browse the repository at this point in the history
…process migration / fix
  • Loading branch information
elguardian committed Jul 21, 2023
1 parent 0e1df2f commit c31bc90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ public Map<String, String> getInMappings() {
}

public void addInAssociation(DataAssociation dataAssociation) {
if (dataAssociation.getTarget().equals("Description")) {
getWork().setParameter(dataAssociation.getTarget(), dataAssociation.getAssignments().get(0).getFrom());
}
inMapping.add(dataAssociation);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ public void testAddTaskAfterActiveTaskNameExpression() {
assertEquals(ADDTASKAFTERACTIVE_EXPR_ID_V1, task.getProcessId());
assertEquals(DEPLOYMENT_ID_V1, task.getDeploymentId());
assertEquals("Active Task test", task.getName());
assertEquals("test", task.getDescription());
managerV1.disposeRuntimeEngine(runtime);

MigrationSpec migrationSpec = new MigrationSpec(DEPLOYMENT_ID_V1, pi1.getId(), DEPLOYMENT_ID_V2, ADDTASKAFTERACTIVE_EXPR_ID_V2);
Expand Down

0 comments on commit c31bc90

Please sign in to comment.