Skip to content

Commit f2ccc9c

Browse files
committed
changing data-hub-in-a-box to data-hub
1 parent 2beef37 commit f2ccc9c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Example:
5959
`<id>1</id>`
6060
`</employee>`
6161

62-
To insert/update this document with uri '/employee1.xml' into the database 'data-hub-in-a-box-STAGING' (with host 'localhost' and port '8010'), given a user 'admin' with password 'admin' and rest-writer role AND to be able to run the flow 'IngestFlow' of the 'Customer' entity, run the following:
62+
To insert/update this document with uri '/employee1.xml' into the database 'data-hub-STAGING' (with host 'localhost' and port '8010'), given a user 'admin' with password 'admin' and rest-writer role AND to be able to run the flow 'IngestFlow' of the 'Customer' entity, run the following:
6363

6464
`curl --anyauth --user admin:admin -X PUT -T ./documents/employee1.xml -H "Content-type:application/xml" 'http://localhost:8010/LATEST/documents?uri=/employee1.xml&transform=run-flow&trans:entity-name=Customer&trans:flow-name=IngestFlow'`
6565

@@ -75,7 +75,7 @@ If it is JSON ('application/json'), the content will be:
7575
Else if it is XML ('application/xml'), it will be:
7676

7777
`<?xml version="1.0" encoding="UTF-8"?>`
78-
`<envelope xmlns="http://marklogic.com/hub-in-a-box/envelope">`
78+
`<envelope xmlns="http://marklogic.com/data-hub/envelope">`
7979
`<headers>`
8080
`</headers>`
8181
`<triples>`

marklogic-data-hub/src/main/resources/ml-modules/transforms/run-flow.xqy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ xquery version "1.0-ml";
22

33
module namespace runFlow = "http://marklogic.com/rest-api/transform/run-flow";
44

5-
import module namespace flow = "http://marklogic.com/hub-in-a-box/flow-lib"
5+
import module namespace flow = "http://marklogic.com/data-hub/flow-lib"
66
at "/com.marklogic.hub/lib/flow-lib.xqy";
77

88
declare function runFlow:transform(
@@ -13,9 +13,9 @@ declare function runFlow:transform(
1313
{
1414
let $entityName := map:get($params, 'entity-name')
1515
let $flowName := map:get($params, 'flow-name')
16-
16+
1717
let $flow := flow:get-flow($entityName,$flowName,())
18-
18+
1919
let $uri := map:get($context, 'uri')
2020

2121
let $transformedContent := flow:run-plugins($flow, $uri, $content, $params)

0 commit comments

Comments
 (0)