To run this example your build.gradle
file should contain the following task to execute the pipeline:
task executeCdapServiceNow (type:JavaExec) { mainClass = System.getProperty("mainClass") classpath = sourceSets.main.runtimeClasspath systemProperties System.getProperties() args System.getProperty("exec.args", "").split() }
Gradle ‘executeCdapServiceNow’ task allows to run the pipeline via the following command:
gradle clean executeCdapServiceNow -DmainClass=org.apache.beam.examples.complete.cdap.servicenow.CdapServiceNowToTxt \ -Dexec.args="--<argument>=<value> --<argument>=<value>"
To execute this pipeline, specify the parameters in the following format:
--clientId=your-client-id \ --clientSecret=your-client-secret \ --user=your-user \ --password=your-password \ --restApiEndpoint=your-endpoint \ --queryMode=Table \ --tableName=your-table \ --valueType=Actual \ --referenceName=your-reference-name \ --outputTxtFilePathPrefix=your-path-to-output-folder-with-filename-prefix
Please see CDAP ServiceNow Batch Source for more information.