
META-INF.batch-jobs.batchletRInlineCDATA.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright (c) 2015 Red Hat, Inc. and/or its affiliates. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/ SPDX-License-Identifier: EPL-2.0 --> <!DOCTYPE job [ <!ENTITY batchlet-properties-segment SYSTEM "batchlet-properties-segment.xml"> ]> <job id="batchletRInline" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/jobXML_1_0.xsd" version="1.0"> <step id="batchletRInline.step1"> <batchlet> &batchlet-properties-segment; <script type="Renjin"> <![CDATA[ stop <- function() { print("In stop function\n"); } # reads numbers.csv file and calculate statistics of all these numbers # process <- function() { tbl <- read.table(file.path(tempdir(), "numbers.csv"), header=FALSE, sep=",") numbers <- tbl[2] print(summary(numbers)) } ]]> </script> </batchlet> </step> </job>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy