Skip to content

Commit

Permalink
Merge pull request #111 from paxtonhare/adding_to_mae_fix
Browse files Browse the repository at this point in the history
changing data-hub-in-a-box to data-hub
  • Loading branch information
paxtonhare committed Mar 11, 2016
2 parents 2beef37 + f2ccc9c commit 3d39536
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Example:
`<id>1</id>`
`</employee>`

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:
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:

`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'`

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

`<?xml version="1.0" encoding="UTF-8"?>`
`<envelope xmlns="http://marklogic.com/hub-in-a-box/envelope">`
`<envelope xmlns="http://marklogic.com/data-hub/envelope">`
`<headers>`
`</headers>`
`<triples>`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ xquery version "1.0-ml";

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

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

declare function runFlow:transform(
Expand All @@ -13,9 +13,9 @@ declare function runFlow:transform(
{
let $entityName := map:get($params, 'entity-name')
let $flowName := map:get($params, 'flow-name')

let $flow := flow:get-flow($entityName,$flowName,())

let $uri := map:get($context, 'uri')

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

0 comments on commit 3d39536

Please sign in to comment.