marklogic-community / marklogicworkflow

Content and Human Centric Workflow for MarkLogic NoSQL systems
Other
19 stars 12 forks source link

Process Inbox should be wf:user not wf:assignee #133

Closed eouthwaite closed 6 years ago

eouthwaite commented 6 years ago

workflow-util inbox function should return results based on the user rather than assignee so that we are using the same element all the way through a process:

cts:element-value-query(xs:QName("wf:assignee"),($username,xdmp:get-current-user())[1]) should be cts:element-value-query(xs:QName("wf:user"),($username,xdmp:get-current-user())[1])

The workflow-import module sets use of wf:assignee so needs to be changed as well.

This has been fixed in an earlier version by a customer, but dev is sufficiently different that we need to ensure tests pass (the customer makes extensive use of dynamically assigned tasks).

Additionally, a test should also be created in the e2e xml and json tests between tests 16 and 17 to ensure that the user "admin" has been dynamically assigned (reuse test 08)

eouthwaite commented 6 years ago

altered import modules too