Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit 1d10a0a

Browse files
author
Gabo Manuel
committed
additional bug fixes needed
1 parent cb3823b commit 1d10a0a

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

rest-api/ext/processmodel.xqy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ function ext:put(
6969
let $enable := if (map:get($params,"enable") = "true") then fn:true() else fn:false()
7070
let $_ := xdmp:log("Enabled? : " || xs:string($enable))
7171

72+
let $input := xdmp:unquote(xdmp:quote($input))
7273
let $modelid := wfi:install-and-convert($input,map:get($params,"name"),(map:get($params,"major"),"1")[1],(map:get($params,"minor"),"0")[1], $enable )
7374

7475
let $out := <ext:createResponse><ext:outcome>SUCCESS</ext:outcome><ext:modelId>{$modelid}</ext:modelId></ext:createResponse>

src/app/models/workflow-import.xqy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ declare function m:create($processmodeluri as xs:string,$major as xs:string,$min
264264

265265
(: NOTE above also removes all child pipelines too - those starting with PROCESS__MAJOR__MINOR :)
266266
let $_ := xdmp:log("wfi:create : Now recreating pipeline(s)")
267-
let $_ := xdmp:log(concat('processmodeluri: ', $processmodeluri, 'name: ', $name, ', root: ', xdmp:quote($root)))
268267
let $pmap :=
269268
xdmp:eval('xquery version "1.0-ml";import module namespace m="http://marklogic.com/workflow-import" at "/app/models/workflow-import.xqy";'
270269
|| 'declare variable $m:pname as xs:string external;'

src/app/models/workflow-util.xqy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ declare function m:setProcessAsset($assetname as xs:string,$asset as node(), $pr
103103
'declare variable $wf:assetname as xs:string external;' ||
104104
'declare variable $wf:asset as node() external;' ||
105105
'let $uri := "/workflowengine/assets/" || fn:string-join(($wf:processName,$wf:major,$wf:minor),"/") || "/" || $wf:assetname ' ||
106-
'return (xdmp:document-insert($uri,$asset),$uri)'
106+
'return (xdmp:document-insert($uri,$wf:asset),$uri)'
107107
, (: TODO security permissions and properties for easy finding :)
108108

109109
(xs:QName("wf:processName"),$processName,xs:QName("wf:assetname"),$assetname,xs:QName("wf:major"),$major,

0 commit comments

Comments
 (0)