diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index ca27a42..04fd33c 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -30,6 +30,10 @@ defmodule Dispatcher do Proxy.forward conn, [], "http://bpmn/" end + post "/visio", %{ accept: [:any], layer: :api } do + Proxy.forward conn, [], "http://visio/" + end + ############################################################### # ipdc ############################################################### diff --git a/config/resources/domain.lisp b/config/resources/domain.lisp index 92a2ccb..fcec42f 100644 --- a/config/resources/domain.lisp +++ b/config/resources/domain.lisp @@ -58,7 +58,7 @@ (define-resource bpmnProcess () :class (s-prefix "bbo:Process") :has-one `((file :via ,(s-prefix "prov:wasDerivedFrom") - :as "bpmn-file")) + :as "bpmn-file")) :resource-base (s-url "http://data.lblod.info/bpmn-processes/") :on-path "bpmn-processes") diff --git a/config/resources/file.lisp b/config/resources/file.lisp index 1ec4851..67e1b22 100644 --- a/config/resources/file.lisp +++ b/config/resources/file.lisp @@ -11,9 +11,14 @@ (:status :url ,(s-prefix "adms:status"))) :has-one `((file :via ,(s-prefix "nie:dataSource") :inverse t - :as "download")) + :as "download") + (file :via ,(s-prefix "prov:wasDerivedFrom") + :as "vsdx-file")) :has-many `((process :via ,(s-prefix "nie:isPartOf") - :as "processes")) + :as "processes") + (file :via ,(s-prefix "prov:wasDerivedFrom") + :inverse t + :as "bpmn-files")) :resource-base (s-url "http://data.lblod.info/files/") :features `(include-uri) :on-path "files") \ No newline at end of file diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 88e2991..8ac8174 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -19,3 +19,5 @@ services: image: lblod/frontend-openproceshuis:latest bpmn: image: lblod/openproceshuis-bpmn-service:latest + visio: + image: lblod/openproceshuis-visio-service:latest diff --git a/docker-compose.yml b/docker-compose.yml index 17e363c..6dad098 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -126,6 +126,14 @@ services: - ./config/bpmn:/config - ./data/files:/share restart: always + visio: + logging: *default-logging + labels: + - "logging=true" + image: lblod/openproceshuis-visio-service:0.0.1 + volumes: + - ./data/files:/share + restart: always accountdetail: image: lblod/account-detail-service:0.1.0 labels: