Loading data in batches to a table in ARIS Process Mining with webMethods.io
Tags: integration, tutorial, processmining, aris
Published: 2022-12-01 09:09:42

---
title: Loading data in batches to a table in ARIS Process Mining with webMethods.io
published: true
date: 2022-11-21 10:55:27 UTC
tags: integration, tutorial, processmining, aris
canonical_url: https://tech.forums.softwareag.com/t/loading-data-in-batches-to-a-table-in-aris-process-mining-with-webmethods-io/266250
---

## Summary

This article describes loading data in batches to a table in ARIS Process Mining using [webMethods.io](http://webMethods.io). This [webMethods.io](http://webMethods.io) workflow takes a JSON data as input in a specific format and

- Creates table in ARIS Process mining if it’s a new table.
- Uploads the data in batches from the input
- And commits the data when the all the sets in the batch are uploaded

When we have a huge amount of data to upload there are chances that we may run into memory issues. Especially when data transformation, loading of data and committing the transaction is required. An efficient way of moving bulk data between systems is by performing batch uploads.

The json structure uses a data Key and last commit value to identify if a set belongs to a certain batch. There are four workflows and a flow service used here:

- The main workflow which orchestrates the upload and commit logic
- setArisKey – Associates the data ingestion key from the first upload of ARIS with the dataKey of the batch
- getArisKey - Retrieves the ARISKey based on the dataKey in the input for all sets in the same batch
- deleteTheDatakey – Once the data is committed removes the Key from storage

The workflow also requires a flow service(map) formTableData\_batchUpdate to perform the transformation from json format to the ARIS required format

## 1.1 Prerequisites

The user needs to have a working account in ARIS with client id and a secret key

Working [webMethods.io](http://webmethods.io/) Integration cloud tenant.

Json Data in the requested format

## 1.2 Steps

1.Login to [webMethods.io](http://webmethods.io/)Integration tenant.
2.Create a new project or choose an existing project.
[![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/2/0/20c34d7f9709356b138781cb7183474b28bd18d1_2_690x390.png)](https://aws1.discourse-cdn.com/techcommunity/original/3X/2/0/20c34d7f9709356b138781cb7183474b28bd18d1.png "image")
3. Click on Import icon on the top right corner to import the workflow into your project.
[![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/9/a/9a6daa7278aef333233aaf9ff294ebfedf112fce_2_690x280.png)](https://aws1.discourse-cdn.com/techcommunity/original/3X/9/a/9a6daa7278aef333233aaf9ff294ebfedf112fce.png "image")
4. Select the archive file “Batchdata\_Arisprocess.Zip” shared in the article.
5. The workflow name and description are preloaded.
[![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/8/0/80e5f4050ee40514fcba1d9c8b1dd4d8fcc43dc2_2_690x411.png)](https://aws1.discourse-cdn.com/techcommunity/original/3X/8/0/80e5f4050ee40514fcba1d9c8b1dd4d8fcc43dc2.png "image")
6. Configure the account information for ARIS Process Mining(click on + button against Connect to ARIS Process Mining). Provide the account information like accountlabel, ariscloudurl, projectroom, datasetname, clientId and Client Secret.  
[![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/6/3/634dcafa238aa45118ad1493ae940e178c177358_2_409x499.png)](https://aws1.discourse-cdn.com/techcommunity/original/3X/6/3/634dcafa238aa45118ad1493ae940e178c177358.png "image")
7. Once the details have been entered you can save and import the workflow.
8. The workflow is imported successfully and now you can enable the flow service.  
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/4/5/45771e0df717080672c7d662af6e59e4467c5b85.png)
9. Once u enable the flow service you can import the formTableData\_batchUpdate.zip file
[![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/9/0/904ae81ec7cee65821c9d51cafbe37619686c579_2_690x358.png)](https://aws1.discourse-cdn.com/techcommunity/original/3X/9/0/904ae81ec7cee65821c9d51cafbe37619686c579.png "image")
[![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/5/3/532643acb1b848dd1196f2f8b46e1e3075f34ba1_2_690x287.png)](https://aws1.discourse-cdn.com/techcommunity/original/3X/5/3/532643acb1b848dd1196f2f8b46e1e3075f34ba1.png "image")
[![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/f/7/f776773e13894d868c25487bd1936e7b5b021b59_2_690x358.png)](https://aws1.discourse-cdn.com/techcommunity/original/3X/f/7/f776773e13894d868c25487bd1936e7b5b021b59.png "image")
10. Review the mappings
[![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/f/7/f776773e13894d868c25487bd1936e7b5b021b59_2_690x358.png)](https://aws1.discourse-cdn.com/techcommunity/original/3X/f/7/f776773e13894d868c25487bd1936e7b5b021b59.png "image")
11. The workflow requires the json file to be sent in a specific format.

```
{
	"RecordHeader": {
		"DataKeyID": "dataKeynumber",
		"lastCommit": "true/false"
	},
	"TableInput": {
		"TableName": "ARISTableName",
		"Namespace": "ARISTableNameSpace",
		"ColumnNames": {
			"Header": [{
					"name": "ColumnName1",
					"type": "ColumnName1Type"
				},
				{
					"name": "ColumnName2",
					"type": "ColumnName1Type"
				},
				{
					"name": "ColumnNameN",
					"type": "ColumnName1Type"
				}
			]
		},
		"ColumnData": {
			"Record": [{
					"data": [-- //Record 1
						"ColumnNameRecord1",
						"ColumnNameRecord2",
						"ColumnNameRecordN"
					]
				},
				{
					"data": [-- //Record 2
						"ColumnNameRecord1",
						"ColumnNameRecord2",
						"ColumnNameRecordN"
					]
				}
			]
		}
	}
}

```

Sample is also available in the webhook

```
{
"RecordHeader": {
		"DataKeyID": "dataKey1",
		"lastCommit": "false"
	},
"TableInput": {
		"TableName": "Service4",
		"Namespace": "ServiceDataNew",
		"ColumnNames": {
			"Header": [{
					"name": "CUSTOMER_ID",
					"type": "STRING"
				},
				{
					"name": "CUSTOMER_NAME",
					"type": "STRING"
				},
				{
					"name": "DATASOURCE_NAME",
					"type": "STRING"
				},
				{
					"name": "PRODUCT_NAME",
					"type": "STRING"
				},
				{
					"name": "PROCESS_KEY",
					"type": "STRING"
				},
				{
					"name": "PRODUCT_ID",
					"type": "STRING"
				}
			]
		},
"ColumnData": {
		Record": [{
			"data": [
				"CUST00001",
				"Rolls-Royce Ltd",
				"SMART MAINTENANCE",
				"Certuss Junior 80 - 400 TC",
				"SR-100028",
				"PROD00001"
					]
				},
				{
			"data": [
				"CUST00002",
				"Holiday Inn",
				"SMART MAINTENANCE",
				"Certuss Junior 80 - 400 TC",
				"SR-100029",
				"PROD00002"
					]
				}
		]
	}
	}
}

```

The above sample will upload the data but will not commit the data and for every data load we have to change the datakeyid and for the last commit you can make true so that the data will commit in the ARIS process mining.
12. You can check if the data is loaded by logging into ARIS
[![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/0/0/00da75e87fe309150cde50d3bb59032fbde3173f_2_690x375.jpeg)](https://aws1.discourse-cdn.com/techcommunity/original/3X/0/0/00da75e87fe309150cde50d3bb59032fbde3173f.jpeg "image")

[Process\_Mining\_BatchUpdate.zip](https://tech.forums.softwareag.com/uploads/short-url/izIxxMeAj1ysXHbXkC6h3aJhB36.zip) (260.4 KB)  
[formTableData\_batchUpdate.zip](https://tech.forums.softwareag.com/uploads/short-url/sPPhaMXxACfBSjwVgNoKPidfoRO.zip) (9.7 KB)

[Read full topic](https://tech.forums.softwareag.com/t/loading-data-in-batches-to-a-table-in-aris-process-mining-with-webmethods-io/266250)