1.5

Running a Data Mapping Operation
Problem
You want to run a data mapping operation to generate a Data Set using a data file and a data
mapping configuration as inputs.
Solution
The solution is to make a series of requests using the following URIs and method types to
submit, monitor progress and ultimately retrieve the result of the data mapping operation. There
is also the option of cancelling an operation during processing if required. These requests can
be submitted via the Data Mapping REST service:
Process Data Mapping
/rest/serverengine/workflow/datamining/{configId}/
{dataFileId}
POST
Get Progress of
Operation
/rest/serverengine/workflow/datamining/getProgress/
{operationId}
GET
Get Result of Operation
/rest/serverengine/workflow/datamining/getResult/
{operationId}
POST
Cancel an Operation
/rest/serverengine/workflow/datamining/cancel/
{operationId}
POST
Example
HTML5
dm-process.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Process Data Mapping Example</title>
<script src="../../common/lib/js/jquery-
1.11.3.min.js"></script>
<script src="../../common/js/common.js"></script>
<script src="js/dm-process.js"></script>
Page 100