@@ -131,13 +131,15 @@ public List<String> getMlcpArguments() throws IOException, JSONException {
131131 arguments .add (sourceOptions .getDataFormat ());
132132 }
133133
134- arguments .add ("-transform_module" );
135- arguments .add ("/com.marklogic.hub/mlcp-flow-transform.xqy" );
136- arguments .add ("-transform_namespace" );
137- arguments .add ("http://marklogic.com/data-hub/mlcp-flow-transform" );
138- arguments .add ("-transform_param" );
139- arguments .add ("\" " + sourceOptions .getTransformParams () + "\" " );
140-
134+ String transformModule = sourceOptions .getTransformModule ();
135+ if (transformModule != null ) {
136+ arguments .add ("-transform_module" );
137+ arguments .add ("\" " + transformModule +"\" " );
138+ arguments .add ("-transform_namespace" );
139+ arguments .add ("\" " + sourceOptions .getTransformNamespace () +"\" " );
140+ arguments .add ("-transform_param" );
141+ arguments .add ("\" " + sourceOptions .getTransformParams () + "\" " );
142+ }
141143
142144 return arguments ;
143145 }
@@ -167,6 +169,8 @@ public static class SourceOptions {
167169 private String dataFormat = "json" ;
168170 private String inputFileType ;
169171 private String otherOptions ;
172+ private String transformModule ;
173+ private String transformNamespace ;
170174
171175 public SourceOptions (String entityName , String flowName , String flowType , Format dataFormat ) {
172176 this .entityName = entityName ;
@@ -217,6 +221,22 @@ protected String getTransformParams() {
217221 "<params><entity-name>%s</entity-name><flow-name>%s</flow-name><flow-type>%s</flow-type></params>" ,
218222 entityName , flowName , flowType );
219223 }
224+
225+ public String getTransformModule () {
226+ return transformModule ;
227+ }
228+
229+ public void setTransformModule (String transformModule ) {
230+ this .transformModule = transformModule ;
231+ }
232+
233+ public String getTransformNamespace () {
234+ return transformNamespace ;
235+ }
236+
237+ public void setTransformNamespace (String transformNamespace ) {
238+ this .transformNamespace = transformNamespace ;
239+ }
220240 }
221241
222242 public List <String > getMlcpOptions (MlcpSource source ) throws IOException , JSONException {
0 commit comments