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

Commit a0d4ec3

Browse files
committed
fix for invalid coercion ; document roxy installation ; make roxy executable
1 parent 0d51d63 commit a0d4ec3

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

documentation/INSTALL.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1+
## Roxy Installation
12

3+
To install via roxy, within the roxy directory, edit the properties file for the target environment - for example, ``deploy/local.properties`` and run the following commands:
24

3-
## Configure MIME types
5+
./ml local bootstrap
6+
./ml local deploy modules
7+
./ml local deploy cpf
8+
# ./ml local deploy content
49

5-
Default filenames for SCXML and BPMN2 bodels are .scxml and .bpmn respectively. These aren't recognised by MarkLogic
6-
by default. Add these types are application/xml mime types in MarkLogic Server for them to be handled correctly.
10+
### Configure MIME types
711

8-
## Configuring a database for MarkLogic Workflow
12+
Default filenames for SCXML and BPMN2 models are .scxml and .bpmn respectively. These aren't recognised by MarkLogic
13+
by default. Add these types are application/xml mime types in MarkLogic Server for them to be handled correctly. *This will be performed automatically via roxy bootstrap.*
14+
15+
### Configuring a database for MarkLogic Workflow
916

1017
You can install a MarkLogic Workflow modules database from the modules folder within this repository. Once done,
1118
your application's app server can be configured to either use this modules database, or more likely, use a modules
@@ -19,6 +26,8 @@ with no extra work from yourself.
1926
You need to ensure your content database has a Triggers database configured, and that CPF is enabled
2027
(with NO global domain) before you try and deploy a process model in MarkLogic Workflow.
2128

29+
*Installation including triggers and REST extensions will be performed automatically via the Roxy commands above.*
30+
2231
## Configure global process task settings
2332

2433
Some tasks require global configuration. An example of this is the email task which requires SMTP settings.

ml

100644100755
File mode changed.

src/app/models/workflow-util.xqy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ declare function m:list($processName as xs:string?) as element(wf:list) {
277277
(:
278278
: Called by the REST API only.
279279
:)
280-
declare function m:lock($processId as xs:string) as node()? {
280+
declare function m:lock($processId as xs:string) as xs:string? {
281+
(: when it works, should return empty-sequence() :)
281282
(: Check that this is a human queue task or user task :)
282283
let $props := m:getProperties($processId)
283284
return
@@ -310,7 +311,8 @@ declare function m:lock($processId as xs:string) as node()? {
310311
(:
311312
: Allow unlocking of a work item. (Not the same as completion). Does not return data.
312313
:)
313-
declare function m:unlock($processId as xs:string) as node()? {
314+
declare function m:unlock($processId as xs:string) as xs:string? {
315+
(: when it works, should return empty-sequence() :)
314316
let $props := m:getProperties($processId)
315317
return
316318
if ($props/wf:currentStep/wf:step-type = "userTask" and $props/wf:currentStep/wf:step-status = "ENTERED") then

0 commit comments

Comments
 (0)