Skip to content

Commit

Permalink
pass datasource to bsh script
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Nov 21, 2011
1 parent 2f82e3d commit 9dda090
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -223,10 +223,10 @@ public void load() throws IOException {
Map<String, Object> variables = new HashMap<String, Object>();
Node identity = nodeService.findIdentity();
variables.put("SOURCE_NODE_ID", context.getNodeId());
variables.put("SOURCE_NODE", context.getNode());
variables.put("DATASOURCE", context.getJdbcTemplate().getDataSource());
if (identity != null) {
variables.put("TARGET_NODE_ID", identity.getNodeId());
variables.put("TARGET_EXTERNAL_ID", identity.getNodeId());
variables.put("TARGET_EXTERNAL_ID", identity.getExternalId());
variables.put("TARGET_NODE", identity);
}
AppUtils.runBsh(variables, tokens[1]);
Expand Down

0 comments on commit 9dda090

Please sign in to comment.