Skip to content

Commit 2271d2f

Browse files
rahulvudutalaSanjeevani19
authored andcommitted
DHFPROD-9949: Example project changes
1 parent 654a2d2 commit 2271d2f

File tree

20 files changed

+33871
-29
lines changed

20 files changed

+33871
-29
lines changed

examples/reference-entity-model/build.gradle

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -50,34 +50,17 @@ test {
5050
useJUnitPlatform()
5151
}
5252

53-
task importZipCodes(type: com.marklogic.gradle.task.MlcpTask) {
53+
task importZipCodes(type: com.marklogic.gradle.task.RunFlowTask, group: "Run flow") {
5454
description = "Imports a document for each zip code defined in the zipCodes.zip file. These are used by the mapCustomersJSON mapping step."
55-
classpath = configurations.mlcp
56-
command = "IMPORT"
57-
port = 8010
58-
input_file_path = "input/zipCodes/zipCodes.zip"
59-
input_file_type = "delimited_text"
60-
input_compressed = true
61-
document_type = "json"
62-
output_uri_prefix = "/zipCode/"
63-
output_uri_suffix = ".json"
64-
output_permissions = "data-hub-common,read,data-hub-developer,update"
65-
output_collections = "zipCode"
66-
thread_count = 16
67-
transform_module = "/custom-modules/mlcp/zipCodeTransform.sjs"
68-
delimiter = ","
55+
flowName = "LoadSupportingModules"
56+
steps = ["2"]
6957
}
7058

71-
task importProductConcepts(type: com.marklogic.gradle.task.MlcpTask) {
59+
task importProductConcepts(type: com.marklogic.gradle.task.RunFlowTask, group: "Run flow") {
7260
description = "Imports a document for each zip code defined in the zipCodes.zip file. These are used by the mapCustomersJSON mapping step."
73-
classpath = configurations.mlcp
74-
command = "IMPORT"
75-
port = 8011
76-
input_file_path = "input/productConcepts.ttl"
77-
input_file_type = "rdf"
78-
output_permissions = "data-hub-common,read,data-hub-developer,update"
79-
output_collections = "productConcepts,http://marklogic.com/semantics#default-graph"
80-
thread_count = 16
61+
flowName = "LoadSupportingModules"
62+
steps = ["1"]
63+
8164
}
8265

8366
["CurateCustomerJSON", "CurateCustomerXML", "CurateNamespacedCustomers",
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name" : "LoadSupportingModules",
3+
"description" : "Flow description",
4+
"steps" : {
5+
"1" : {
6+
"stepId" : "product-concepts-ingestion"
7+
},
8+
"2" : {
9+
"stepId" : "ingest-zip-ingestion"
10+
}
11+
},
12+
"lastUpdated" : "2023-02-16T10:01:35.7514-08:00"
13+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Cloud Environment Properties
2+
mlCloudApiKey=admin:admin
3+
4+
# Basepath Configuration
5+
mlStagingBasePath=/data-hub/staging
6+
mlFinalBasePath=/data-hub/final
7+
mlJobBasePath=/data-hub/jobs
8+
mlManageBasePath=/local/manage
9+
mlAppServicesBasePath=/local/app-services
10+
mlAdminBasePath=/local/admin
11+
12+
# AppServer SSL configuration
13+
mlAdminSimpleSsl=true
14+
mlManageSimpleSsl=true
15+
mlAppServicesSimpleSsl=true
16+
mlAuthentication=cloud
17+
mlSslHostnameVerifier=ANY

0 commit comments

Comments
 (0)