Skip to content

Commit 353158a

Browse files
committed
DHF 4.x support
1 parent 708ebce commit 353158a

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

uml2es/docs/build.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The toolkit provides a gradle build file containing all model deployment and cod
4545
* "all" - All classes are considered entities. Ignore entities specified.
4646

4747
*Dependencies:*
48-
- Your gradle project is DHF 4.1
48+
- Your gradle project is DHF 4.1. If you prefer to use a more recent DHF 4.x release, make sure to change the DHF version in any *.gradle or gradle*.properties files you obtain from this toolkit.
4949
- You have deployed your UML model
5050
- Standard DHF environment properties: mlHost, mlFinalPort
5151

@@ -72,7 +72,7 @@ The toolkit provides a gradle build file containing all model deployment and cod
7272
- overwrite: true/false. If true and harmonization already exists, overwrite it. If you don't want to clobber, set to false.
7373

7474
*Dependencies:*
75-
- Your gradle project is DHF 4.1
75+
- Your gradle project is DHF 4.1. If you prefer to use a more recent DHF 4.x release, make sure to change the DHF version in any *.gradle or gradle*.properties files you obtain from this toolkit.
7676
- You have deployed your UML model
7777
- You have created the entity in question using uCreateDHFEntities
7878
- Standard DHF environment properties: mlHost, mlFinalPort

uml2es/tutorials/dmHubLab/step1/src/main/ml-modules/root/mapperGUILib.sjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function convertDmIde2DMF(dmuiMappingURI, dmfMappingURI, mainEntity) {
1515
if (!doc || doc == null) throw "Not found in modules DB: *" + dmuiMappingURI + "*";
1616
var dmTemplate = buildDMTemplate(doc, mainEntity, true);
1717
xdmp.documentInsert(dmfMappingURI, dmTemplate, {
18-
"collections": ["dm", "cookieCutter", "http://marklogic.com/entity-services/models", mainEntity],
18+
"collections": ["dm", "cookieCutter", /* "http://marklogic.com/entity-services/models", */ mainEntity],
1919
"permissions": xdmp.documentGetPermissions(dmuiMappingURI)
2020
});
2121
}

uml2es/uml2esTransform/src/main/ml-modules/root/xmi2es/cookieCutter.sjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ function writeFile(folder, name, content, asText, model, coll, stagingDB) {
415415
contentNode = textNode.toNode();
416416
}
417417
var uri = folder + name;
418-
var collections = [coll, "cookieCutter", "http://marklogic.com/entity-services/models"];
418+
var collections = [coll, "cookieCutter"]; //, "http://marklogic.com/entity-services/models"];
419419
if (model && model != "") collections.push(model);
420420
if (stagingDB && stagingDB != "") {
421421
xdmp.eval('declareUpdate(); xdmp.documentInsert(uri,contentNode, {"collections": collections})',

uml2es/uml2esTransform/uml2es4dhf.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ plugins {
3333

3434
// This gradle plugin extends the ml-gradle plugin with
3535
// commands that make the Data Hub Framework do its magic
36-
id 'com.marklogic.ml-data-hub' version '4.1.0'
36+
// You can change to any 4.x build. Must be 4.1.0 or higher. DHF 5 is not supported.
37+
id 'com.marklogic.ml-data-hub' version '4.1.0'
3738
}
3839

3940
repositories {
@@ -62,7 +63,8 @@ configurations {
6263
dependencies {
6364
// this allows you to write custom java code that depends
6465
// on the Data Hub Framework library
65-
compile 'com.marklogic:marklogic-data-hub:4.1.0'
66+
// You can change to any 4.x build. Must be 4.1.0 or higher. DHF 5 is not supported.
67+
compile 'com.marklogic:marklogic-data-hub:4.1.0'
6668
compile 'com.marklogic:marklogic-xcc:9.0.7'
6769

6870
mlcp "com.marklogic:mlcp:9.0.6"

0 commit comments

Comments
 (0)