Skip to content

Commit

Permalink
Adding missing executor info for SyncopeStreamPullExecutor
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgrosso committed Jun 16, 2023
1 parent 30a254a commit 5662eae
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,8 @@ public List<ProvisioningReport> pull(final CSVPullSpec spec, final InputStream c
spec.getConflictResolutionAction(),
spec.getPullCorrelationRule(),
connector,
pullTask);
pullTask,
AuthContextUtils.getWho());
} catch (NotFoundException e) {
throw e;
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ List<ProvisioningReport> pull(
ConflictResolutionAction conflictResolutionAction,
String pullCorrelationRule,
Connector connector,
PullTaskTO pullTaskTO)
throws JobExecutionException;
PullTaskTO pullTaskTO,
String executor) throws JobExecutionException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ public List<ProvisioningReport> pull(
final ConflictResolutionAction conflictResolutionAction,
final String pullCorrelationRule,
final Connector connector,
final PullTaskTO pullTaskTO) throws JobExecutionException {
final PullTaskTO pullTaskTO,
final String executor) throws JobExecutionException {

LOG.debug("Executing stream pull");

Expand All @@ -188,6 +189,7 @@ public List<ProvisioningReport> pull(
profile.setConflictResolutionAction(conflictResolutionAction);
profile.getActions().addAll(getPullActions(pullTaskTO.getActions().stream().
map(implementationDAO::find).filter(Objects::nonNull).collect(Collectors.toList())));
profile.setExecutor(executor);

for (PullActions action : profile.getActions()) {
action.beforeAll(profile);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ public void pull() throws JobExecutionException, IOException {
ConflictResolutionAction.IGNORE,
null,
connector,
pullTask);
pullTask,
"whoever");
} catch (Exception e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit 5662eae

Please sign in to comment.