diff --git a/README.md b/README.md index 3f2898200c08f70d5755a48f197f3cd699535029..6eab8be562209a9d0a22999de5d34e1c45ac1046 100644 --- a/README.md +++ b/README.md @@ -1,92 +1,33 @@ # User Journey Services Engine +The User Journey Services Engine (UJSE) can installed via docker compose. The composition includes: +- A PostgreSQL database. +- The UJSE with its HTTP API. +The HTTP API offered by the UJSE is specified [here](https://git.code.tecnalia.com/across/public/user-journey-service-delivery/user-journey-services-engine/ujse_openapi.yaml). -## Getting started +## Installation requirements +UJSE requires the following ACROSS components to be already installed: -To make it easy for you to get started with GitLab, here's a list of recommended next steps. +- [Transparency Dashboard Backend](https://git.code.tecnalia.com/across/public/citizen-front-end/transparency-dashboard/transparency-dashboard-ui): to get the list of given consents by each citizen and the status of them. +- [Usage Control](https://git.code.tecnalia.com/across/public/citizen-data-ownership-and-usage-control/usage-control/Usagecontrol): to do the enforcement of the usage policies defined by the citizen -Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)! - -## Add your files - -- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files -- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command: - -``` -cd existing_repo -git remote add origin https://git.code.tecnalia.com/across/private/user-journey-service-delivery/userjourneyservicesengine.git -git branch -M main -git push -uf origin main -``` - -## Integrate with your tools - -- [ ] [Set up project integrations](https://git.code.tecnalia.com/across/private/user-journey-service-delivery/userjourneyservicesengine/-/settings/integrations) - -## Collaborate with your team - -- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/) -- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html) -- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically) -- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/) -- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html) - -## Test and Deploy - -Use the built-in continuous integration in GitLab. - -- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html) -- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/) -- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html) -- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/) -- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html) - -*** - -# Editing this README - -When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template. - -## Suggestions for a good README -Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information. - -## Name -Choose a self-explaining name for your project. - -## Description -Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors. - -## Badges -On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge. - -## Visuals -Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method. +To install the project, you need to have Docker and Docker-compose installed on your machine. If you don't have it, you can install it by following the instructions on the official Docker website. ## Installation -Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection. - -## Usage -Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README. +Clone this repository: -## Support -Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc. - -## Roadmap -If you have ideas for releases in the future, it is a good idea to list them in the README. - -## Contributing -State if you are open to contributions and what your requirements are for accepting them. - -For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self. +``` bash +git clone https://git.code.tecnalia.com/across/public/user-journey-service-delivery/user-journey-services-engine.git +``` -You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser. +Create and start the containers specified in the docker-compose.yml file: -## Authors and acknowledgment -Show your appreciation to those who have contributed to the project. +``` bash +docker-compose up -d +``` ## License -For open source projects, say how it is licensed. -## Project status -If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers. +Read the [license file](./LICENSE) for more information. + diff --git a/bpmn_files/SampleProcess.bpmn b/bpmn_files/SampleProcess.bpmn deleted file mode 100644 index 36e9e43075912bf96abbdeb5ac0bfbc330957b58..0000000000000000000000000000000000000000 --- a/bpmn_files/SampleProcess.bpmn +++ /dev/null @@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- origin at X=0.0 Y=0.0 --> -<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:ext="http://org.eclipse.bpmn2/ext" xmlns:xs="http://www.w3.org/2001/XMLSchema" id="Definitions_1" exporter="org.eclipse.bpmn2.modeler.core" exporterVersion="1.4.2.Final-v20171109-1930-B1" targetNamespace="http://org.eclipse.bpmn2/default/process"> - <bpmn2:process id="process_1" name="Default Process" isExecutable="false"> - <bpmn2:startEvent id="StartEvent_1" name="Start Event 1"> - <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing> - </bpmn2:startEvent> - <bpmn2:endEvent id="EndEvent_1" name="End Event 1"> - <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming> - </bpmn2:endEvent> - <bpmn2:scriptTask id="ScriptTask_1" name="Script Task 1"> - <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming> - <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing> - </bpmn2:scriptTask> - <bpmn2:sequenceFlow id="SequenceFlow_2" sourceRef="StartEvent_1" targetRef="ScriptTask_1"/> - <bpmn2:sequenceFlow id="SequenceFlow_3" sourceRef="ScriptTask_1" targetRef="EndEvent_1"/> - </bpmn2:process> - <bpmndi:BPMNDiagram id="BPMNDiagram_1" name="Default Process Diagram"> - <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="process_1"> - <bpmndi:BPMNShape id="BPMNShape_1" bpmnElement="StartEvent_1"> - <dc:Bounds height="36.0" width="36.0" x="100.0" y="100.0"/> - <bpmndi:BPMNLabel id="BPMNLabel_1" labelStyle="BPMNLabelStyle_1"> - <dc:Bounds height="34.0" width="80.0" x="78.0" y="136.0"/> - </bpmndi:BPMNLabel> - </bpmndi:BPMNShape> - <bpmndi:BPMNShape id="BPMNShape_2" bpmnElement="EndEvent_1"> - <dc:Bounds height="36.0" width="36.0" x="500.0" y="100.0"/> - <bpmndi:BPMNLabel id="BPMNLabel_2" labelStyle="BPMNLabelStyle_1"> - <dc:Bounds height="17.0" width="79.0" x="479.0" y="136.0"/> - </bpmndi:BPMNLabel> - </bpmndi:BPMNShape> - <bpmndi:BPMNShape id="BPMNShape_ScriptTask_1" bpmnElement="ScriptTask_1" isExpanded="true"> - <dc:Bounds height="61.0" width="139.0" x="211.0" y="160.0"/> - <bpmndi:BPMNLabel id="BPMNLabel_3" labelStyle="BPMNLabelStyle_1"> - <dc:Bounds height="17.0" width="86.0" x="237.0" y="182.0"/> - </bpmndi:BPMNLabel> - </bpmndi:BPMNShape> - <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="BPMNShape_1" targetElement="BPMNShape_ScriptTask_1"> - <di:waypoint xsi:type="dc:Point" x="118.0" y="136.0"/> - <di:waypoint xsi:type="dc:Point" x="118.0" y="190.0"/> - <di:waypoint xsi:type="dc:Point" x="211.0" y="190.0"/> - <bpmndi:BPMNLabel id="BPMNLabel_4"/> - </bpmndi:BPMNEdge> - <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="BPMNShape_ScriptTask_1" targetElement="BPMNShape_2"> - <di:waypoint xsi:type="dc:Point" x="350.0" y="190.0"/> - <di:waypoint xsi:type="dc:Point" x="518.0" y="190.0"/> - <di:waypoint xsi:type="dc:Point" x="518.0" y="136.0"/> - <bpmndi:BPMNLabel id="BPMNLabel_5"/> - </bpmndi:BPMNEdge> - </bpmndi:BPMNPlane> - <bpmndi:BPMNLabelStyle id="BPMNLabelStyle_1"> - <dc:Font name="arial" size="9.0"/> - </bpmndi:BPMNLabelStyle> - </bpmndi:BPMNDiagram> -</bpmn2:definitions> \ No newline at end of file diff --git a/bpmn_files/exampleFOKUS.bpmn b/bpmn_files/exampleFOKUS.bpmn deleted file mode 100644 index 9869aea98cd77a7b037e9dfcbce9713e2a8fd5a7..0000000000000000000000000000000000000000 --- a/bpmn_files/exampleFOKUS.bpmn +++ /dev/null @@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:g="http://www.jboss.org/drools/flow/gpd" xmlns:java="http://www.java.com/javaTypes" xmlns:tns="http://www.jboss.org/drools" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.jboss.org/drools" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd" id="Definition" exporter="org.eclipse.bpmn2.modeler.core" exporterVersion="1.4.2.Final-v20171109-1930-B1"> - <process id="def_process" name="Default Process" isExecutable="true" xmlns:tns="http://www.jboss.org/drools" tns:packageName="defaultPackage" processType="Private"> - <startEvent id="def_start_event" name="Default Start Event"> - <extensionElements> - <tns:metaData name="elementname"> - <tns:metaValue>Default Start Event</tns:metaValue> - </tns:metaData> - </extensionElements> - </startEvent> - <endEvent id="def_end_event" name="Default End Event"> - <extensionElements> - <tns:metaData name="elementname"> - <tns:metaValue>Default End Event</tns:metaValue> - </tns:metaData> - </extensionElements> - </endEvent> - <serviceTask id="service_task_search_1" name="Search for universities"> - <documentation>serviceId:search_1</documentation> - </serviceTask> - <serviceTask id="service_task_funding_1" name="Apply for funding"> - <documentation>serviceId:funding_1</documentation> - </serviceTask> - <serviceTask id="service_task_application_1" name="Apply at university"> - <documentation>serviceId:application_1</documentation> - </serviceTask> - <sequenceFlow id="sequence_flow_search_1" sourceRef="def_start_event" targetRef="service_task_search_1"></sequenceFlow> - <sequenceFlow id="sequence_flow_funding_1" sourceRef="service_task_search_1" targetRef="service_task_funding_1"></sequenceFlow> - <sequenceFlow id="sequence_flow_application_1" sourceRef="service_task_funding_1" targetRef="service_task_application_1"></sequenceFlow> - <sequenceFlow id="sequence_flow_def_end_event" sourceRef="service_task_application_1" targetRef="def_end_event"></sequenceFlow> - </process> - <bpmndi:BPMNDiagram id="BPMNDiagram_def_process"> - <bpmndi:BPMNPlane bpmnElement="def_process" id="BPMNPlane_def_process"> - <bpmndi:BPMNShape bpmnElement="def_start_event" id="BPMNShape_def_start_event"> - <omgdc:Bounds height="36.0" width="36.0" x="0.0" y="15.0"></omgdc:Bounds> - </bpmndi:BPMNShape> - <bpmndi:BPMNShape bpmnElement="def_end_event" id="BPMNShape_def_end_event"> - <omgdc:Bounds height="36.0" width="36.0" x="645.0" y="15.0"></omgdc:Bounds> - </bpmndi:BPMNShape> - <bpmndi:BPMNShape bpmnElement="service_task_search_1" id="BPMNShape_service_task_search_1"> - <omgdc:Bounds height="65.0" width="127.0" x="93.0" y="1.0"></omgdc:Bounds> - </bpmndi:BPMNShape> - <bpmndi:BPMNShape bpmnElement="service_task_funding_1" id="BPMNShape_service_task_funding_1"> - <omgdc:Bounds height="65.0" width="127.0" x="277.0" y="1.0"></omgdc:Bounds> - </bpmndi:BPMNShape> - <bpmndi:BPMNShape bpmnElement="service_task_application_1" id="BPMNShape_service_task_application_1"> - <omgdc:Bounds height="65.0" width="127.0" x="461.0" y="1.0"></omgdc:Bounds> - </bpmndi:BPMNShape> - <bpmndi:BPMNEdge bpmnElement="sequence_flow_search_1" id="BPMNEdge_sequence_flow_search_1"> - <omgdi:waypoint x="36.0" y="33.0"></omgdi:waypoint> - <omgdi:waypoint x="93.0" y="33.0"></omgdi:waypoint> - </bpmndi:BPMNEdge> - <bpmndi:BPMNEdge bpmnElement="sequence_flow_funding_1" id="BPMNEdge_sequence_flow_funding_1"> - <omgdi:waypoint x="220.0" y="33.0"></omgdi:waypoint> - <omgdi:waypoint x="277.0" y="33.0"></omgdi:waypoint> - </bpmndi:BPMNEdge> - <bpmndi:BPMNEdge bpmnElement="sequence_flow_application_1" id="BPMNEdge_sequence_flow_application_1"> - <omgdi:waypoint x="404.0" y="33.0"></omgdi:waypoint> - <omgdi:waypoint x="461.0" y="33.0"></omgdi:waypoint> - </bpmndi:BPMNEdge> - <bpmndi:BPMNEdge bpmnElement="sequence_flow_def_end_event" id="BPMNEdge_sequence_flow_def_end_event"> - <omgdi:waypoint x="588.0" y="33.0"></omgdi:waypoint> - <omgdi:waypoint x="645.0" y="33.0"></omgdi:waypoint> - </bpmndi:BPMNEdge> - </bpmndi:BPMNPlane> - </bpmndi:BPMNDiagram> -</definitions> \ No newline at end of file diff --git a/bpmn_files/studyInGermany.bpmn b/bpmn_files/studyInGermany.bpmn deleted file mode 100644 index 47a3ef79b9df5358db993ca91db97ed0110d734b..0000000000000000000000000000000000000000 --- a/bpmn_files/studyInGermany.bpmn +++ /dev/null @@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:g="http://www.jboss.org/drools/flow/gpd" xmlns:java="http://www.java.com/javaTypes" xmlns:tns="http://www.jboss.org/drools" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.jboss.org/drools" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd" id="Definition" exporter="org.eclipse.bpmn2.modeler.core" exporterVersion="1.4.2.Final-v20171109-1930-B1"> - <process id="example" name="Example" isExecutable="true" xmlns:tns="http://www.jboss.org/drools" tns:packageName="defaultPackage" processType="Private"> - <startEvent id="_1" name="Start Event"> - <extensionElements> - <tns:metaData name="elementname"> - <tns:metaValue>Start Event</tns:metaValue> - </tns:metaData> - </extensionElements> - </startEvent> - <endEvent id="EndEvent_1" name="End Event "> - <extensionElements> - <tns:metaData name="elementname"> - <tns:metaValue>End Event 1</tns:metaValue> - </tns:metaData> - </extensionElements> - </endEvent> - <scriptTask id="stepId2" name="Fill out application & submit it" scriptFormat="http://www.java.com/java" activiti:autoStoreVariables="false"> - <documentation>serviceId:992c3775-c79d-4d9d-9219-3b4166de34f5</documentation> - <script>System.out.println("Welcome to license check");</script> - </scriptTask> - <sequenceFlow id="flow2" sourceRef="stepId2" targetRef="EndEvent_1"></sequenceFlow> - <scriptTask id="stepId1" name="Search & select university" scriptFormat="javascript" activiti:autoStoreVariables="false"> - <documentation>serviceId:efab4474-9112-45e6-be69-a864df9d247c</documentation> - <script>System.out.println("Welcome to license check");</script> - </scriptTask> - <sequenceFlow id="flow3" sourceRef="stepId1" targetRef="stepId2"></sequenceFlow> - <sequenceFlow id="flow4" sourceRef="_1" targetRef="stepId1"></sequenceFlow> - </process> - <bpmndi:BPMNDiagram id="BPMNDiagram_example"> - <bpmndi:BPMNPlane bpmnElement="example" id="BPMNPlane_example"> - <bpmndi:BPMNShape bpmnElement="_1" id="BPMNShape__1"> - <omgdc:Bounds height="36.0" width="36.0" x="70.0" y="77.0"></omgdc:Bounds> - </bpmndi:BPMNShape> - <bpmndi:BPMNShape bpmnElement="EndEvent_1" id="BPMNShape_EndEvent_1"> - <omgdc:Bounds height="36.0" width="36.0" x="720.0" y="77.0"></omgdc:Bounds> - </bpmndi:BPMNShape> - <bpmndi:BPMNShape bpmnElement="stepId2" id="BPMNShape_stepId2"> - <omgdc:Bounds height="65.0" width="127.0" x="460.0" y="61.0"></omgdc:Bounds> - </bpmndi:BPMNShape> - <bpmndi:BPMNShape bpmnElement="stepId1" id="BPMNShape_stepId1"> - <omgdc:Bounds height="65.0" width="127.0" x="221.0" y="61.0"></omgdc:Bounds> - </bpmndi:BPMNShape> - <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2"> - <omgdi:waypoint x="587.0" y="93.0"></omgdi:waypoint> - <omgdi:waypoint x="720.0" y="95.0"></omgdi:waypoint> - </bpmndi:BPMNEdge> - <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3"> - <omgdi:waypoint x="348.0" y="93.0"></omgdi:waypoint> - <omgdi:waypoint x="460.0" y="93.0"></omgdi:waypoint> - </bpmndi:BPMNEdge> - <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4"> - <omgdi:waypoint x="106.0" y="95.0"></omgdi:waypoint> - <omgdi:waypoint x="221.0" y="93.0"></omgdi:waypoint> - </bpmndi:BPMNEdge> - </bpmndi:BPMNPlane> - </bpmndi:BPMNDiagram> -</definitions> \ No newline at end of file diff --git a/bpmn_files/studyInGreece.bpmn b/bpmn_files/studyInGreece.bpmn deleted file mode 100644 index 3db624e7a03eadeb7ceab1933245fe2ab2da0fe0..0000000000000000000000000000000000000000 --- a/bpmn_files/studyInGreece.bpmn +++ /dev/null @@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:g="http://www.jboss.org/drools/flow/gpd" xmlns:java="http://www.java.com/javaTypes" xmlns:tns="http://www.jboss.org/drools" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.jboss.org/drools" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd" id="Definition" exporter="org.eclipse.bpmn2.modeler.core" exporterVersion="1.4.2.Final-v20171109-1930-B1"> - <process id="example" name="Example" isExecutable="true" xmlns:tns="http://www.jboss.org/drools" tns:packageName="defaultPackage" processType="Private"> - <startEvent id="_1" name="Start Event"> - <extensionElements> - <tns:metaData name="elementname"> - <tns:metaValue>Start Event</tns:metaValue> - </tns:metaData> - </extensionElements> - </startEvent> - <endEvent id="EndEvent_1" name="End Event "> - <extensionElements> - <tns:metaData name="elementname"> - <tns:metaValue>End Event 1</tns:metaValue> - </tns:metaData> - </extensionElements> - </endEvent> - <scriptTask id="stepId1" name="Create an application" scriptFormat="javascript" activiti:autoStoreVariables="false"> - <documentation>serviceId:992c3775-c79d-4d9d-9219-3b4166de34f7</documentation> - <script>System.out.println("Welcome to license check");</script> - </scriptTask> - <sequenceFlow id="flow4" sourceRef="_1" targetRef="stepId1"></sequenceFlow> - <sequenceFlow id="flow5" sourceRef="stepId1" targetRef="EndEvent_1"></sequenceFlow> - </process> - <bpmndi:BPMNDiagram id="BPMNDiagram_example"> - <bpmndi:BPMNPlane bpmnElement="example" id="BPMNPlane_example"> - <bpmndi:BPMNShape bpmnElement="_1" id="BPMNShape__1"> - <omgdc:Bounds height="36.0" width="36.0" x="70.0" y="77.0"></omgdc:Bounds> - </bpmndi:BPMNShape> - <bpmndi:BPMNShape bpmnElement="EndEvent_1" id="BPMNShape_EndEvent_1"> - <omgdc:Bounds height="36.0" width="36.0" x="530.0" y="77.0"></omgdc:Bounds> - </bpmndi:BPMNShape> - <bpmndi:BPMNShape bpmnElement="stepId1" id="BPMNShape_stepId1"> - <omgdc:Bounds height="65.0" width="127.0" x="221.0" y="61.0"></omgdc:Bounds> - </bpmndi:BPMNShape> - <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4"> - <omgdi:waypoint x="106.0" y="95.0"></omgdi:waypoint> - <omgdi:waypoint x="221.0" y="93.0"></omgdi:waypoint> - </bpmndi:BPMNEdge> - <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5"> - <omgdi:waypoint x="348.0" y="93.0"></omgdi:waypoint> - <omgdi:waypoint x="530.0" y="95.0"></omgdi:waypoint> - </bpmndi:BPMNEdge> - </bpmndi:BPMNPlane> - </bpmndi:BPMNDiagram> -</definitions> \ No newline at end of file diff --git a/bpmn_files/studyInGreeceWrong.bpmn b/bpmn_files/studyInGreeceWrong.bpmn deleted file mode 100644 index a93325571e3365f4593717463027a4b0d2557d6b..0000000000000000000000000000000000000000 --- a/bpmn_files/studyInGreeceWrong.bpmn +++ /dev/null @@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:g="http://www.jboss.org/drools/flow/gpd" xmlns:java="http://www.java.com/javaTypes" xmlns:tns="http://www.jboss.org/drools" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.jboss.org/drools" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd" id="Definition" exporter="org.eclipse.bpmn2.modeler.core" exporterVersion="1.4.2.Final-v20171109-1930-B1"> - <process id="example" name="Example" isExecutable="true" xmlns:tns="http://www.jboss.org/drools" tns:packageName="defaultPackage" processType="Private"> - <startEvent id="_1" name="Start Event"> - <extensionElements> - <tns:metaData name="elementname"> - <tns:metaValue>Start Event</tns:metaValue> - </tns:metaData> - </extensionElements> - </startEvent> - <endEvent id="EndEvent_1" name="End Event "> - <extensionElements> - <tns:metaData name="elementname"> - <tns:metaValue>End Event 1</tns:metaValue> - </tns:metaData> - </extensionElements> - </endEvent> - <scriptTask id="stepId2" name="Fill out application & submit it" scriptFormat="http://www.java.com/java" activiti:autoStoreVariables="false"> - <documentation>serviceId:992c3775-c79d-4d9d-9219-3b4166de34f5</documentation> - <script>System.out.println("Welcome to license check");</script> - </scriptTask> - <sequenceFlow id="flow2" sourceRef="stepId2" targetRef="EndEvent_1"></sequenceFlow> - <scriptTask id="stepId1" name="Search & select university" scriptFormat="javascript" activiti:autoStoreVariables="false"> - <documentation>serviceId:efab4474-9112-45e6-be69-a864df9d247cnoexiste</documentation> - <script>System.out.println("Welcome to license check");</script> - </scriptTask> - <sequenceFlow id="flow3" sourceRef="stepId1" targetRef="stepId2"></sequenceFlow> - <sequenceFlow id="flow4" sourceRef="_1" targetRef="stepId1"></sequenceFlow> - </process> - <bpmndi:BPMNDiagram id="BPMNDiagram_example"> - <bpmndi:BPMNPlane bpmnElement="example" id="BPMNPlane_example"> - <bpmndi:BPMNShape bpmnElement="_1" id="BPMNShape__1"> - <omgdc:Bounds height="36.0" width="36.0" x="70.0" y="77.0"></omgdc:Bounds> - </bpmndi:BPMNShape> - <bpmndi:BPMNShape bpmnElement="EndEvent_1" id="BPMNShape_EndEvent_1"> - <omgdc:Bounds height="36.0" width="36.0" x="720.0" y="77.0"></omgdc:Bounds> - </bpmndi:BPMNShape> - <bpmndi:BPMNShape bpmnElement="stepId2" id="BPMNShape_stepId2"> - <omgdc:Bounds height="65.0" width="127.0" x="460.0" y="61.0"></omgdc:Bounds> - </bpmndi:BPMNShape> - <bpmndi:BPMNShape bpmnElement="stepId1" id="BPMNShape_stepId1"> - <omgdc:Bounds height="65.0" width="127.0" x="221.0" y="61.0"></omgdc:Bounds> - </bpmndi:BPMNShape> - <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2"> - <omgdi:waypoint x="587.0" y="93.0"></omgdi:waypoint> - <omgdi:waypoint x="720.0" y="95.0"></omgdi:waypoint> - </bpmndi:BPMNEdge> - <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3"> - <omgdi:waypoint x="348.0" y="93.0"></omgdi:waypoint> - <omgdi:waypoint x="460.0" y="93.0"></omgdi:waypoint> - </bpmndi:BPMNEdge> - <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4"> - <omgdi:waypoint x="106.0" y="95.0"></omgdi:waypoint> - <omgdi:waypoint x="221.0" y="93.0"></omgdi:waypoint> - </bpmndi:BPMNEdge> - </bpmndi:BPMNPlane> - </bpmndi:BPMNDiagram> -</definitions> diff --git a/bpmn_libs/org.eclipse.bpmn2-0.8.2-jboss.jar b/bpmn_libs/org.eclipse.bpmn2-0.8.2-jboss.jar deleted file mode 100644 index 3399ce5f802d65a91560c5450ee1c42c26a47eac..0000000000000000000000000000000000000000 Binary files a/bpmn_libs/org.eclipse.bpmn2-0.8.2-jboss.jar and /dev/null differ diff --git a/ujse_openapi.yaml b/ujse_openapi.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a6218ba582e9ac9d2fbbed5b0a6f1e4765cbf03f --- /dev/null +++ b/ujse_openapi.yaml @@ -0,0 +1,2496 @@ +{ + "openapi":"3.0.1", + "info":{ + "title":"Across UJSE", + "description":"Api Documentation", + "termsOfService":"", + "contact":{ + "email":"" + }, + "license":{ + "name":"Apache 2.0", + "url":"http://www.apache.org/licenses/LICENSE-2.0" + }, + "version":"1.0" + }, + "servers":[ + { + "url":"/across/1.0" + } + ], + "security":[ + { + "bearer-jwt":[ + "read", + "write" + ] + }, + { + "openid-connect":[ + "read", + "write" + ] + } + ], + "paths":{ + "/workflowManagement/{workflowId}":{ + "put":{ + "tags":[ + "modelling-tool-api-controller" + ], + "summary":"update workflow trust label", + "operationId":"updateWorkflow", + "parameters":[ + { + "name":"workflowId", + "in":"path", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + }, + { + "name":"trust", + "in":"query", + "required":true, + "schema":{ + "type":"boolean" + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + }, + "delete":{ + "tags":[ + "modelling-tool-api-controller" + ], + "summary":"delete a Workflow giving workflowId", + "operationId":"deleteWorkflow", + "parameters":[ + { + "name":"workflowId", + "in":"path", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + }, + "204":{ + "description":"No Content", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/workflowExecutionManagement/workflowName":{ + "put":{ + "tags":[ + "citizen-frontend-api-controller" + ], + "summary":"rename workflow name", + "operationId":"workflowName", + "parameters":[ + { + "name":"workflowInstanceId", + "in":"query", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + }, + { + "name":"name", + "in":"query", + "required":true, + "schema":{ + "type":"string" + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/UserWorkflowStore" + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/workflowExecutionManagement/setWorkflowStatus":{ + "put":{ + "tags":[ + "citizen-frontend-api-controller" + ], + "summary":"setWorkflowStatus", + "operationId":"setWorkflowStatus", + "parameters":[ + { + "name":"workflowInstanceId", + "in":"query", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + }, + { + "name":"status", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/WorkflowStatusOutput" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/workflowExecutionManagement/setServiceStatus":{ + "put":{ + "tags":[ + "citizen-frontend-api-controller" + ], + "summary":"setServiceStatus", + "operationId":"setServiceStatus", + "parameters":[ + { + "name":"workflowInstanceId", + "in":"query", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + }, + { + "name":"phaseId", + "in":"query", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + }, + { + "name":"actionId", + "in":"query", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + }, + { + "name":"serviceId", + "in":"query", + "required":true, + "schema":{ + "type":"string" + } + }, + { + "name":"status", + "in":"query", + "required":true, + "schema":{ + "type":"string" + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "204":{ + "description":"No Content", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/ActionServiceStatusOutput" + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/workflowExecutionManagement/setServiceStatusAsynchronous":{ + "put":{ + "tags":[ + "citizen-frontend-api-controller" + ], + "summary":"setServiceStatusAsynchronous", + "operationId":"setServiceStatusAsynchronous", + "parameters":[ + { + "name":"status", + "in":"query", + "required":true, + "schema":{ + "type":"string" + } + }, + { + "name":"token", + "in":"query", + "required":true, + "schema":{ + "type":"string" + } + }, + { + "name":"serviceOutput", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "204":{ + "description":"No Content", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/ActionServiceStatusOutput" + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/workflowExecutionManagement/setActionStatus":{ + "put":{ + "tags":[ + "citizen-frontend-api-controller" + ], + "summary":"setActionStatus", + "operationId":"setActionStatus", + "parameters":[ + { + "name":"workflowInstanceId", + "in":"query", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + }, + { + "name":"phaseId", + "in":"query", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + }, + { + "name":"actionId", + "in":"query", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + }, + { + "name":"status", + "in":"query", + "required":true, + "schema":{ + "type":"string" + } + } + ], + "responses":{ + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/ActionStatusOutput" + } + } + } + }, + "401":{ + "description":"Unauthorized", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/workflowExecutionManagement/killWorkflow":{ + "put":{ + "tags":[ + "citizen-frontend-api-controller" + ], + "summary":"kill a workflow", + "operationId":"killWorkflow", + "parameters":[ + { + "name":"workflowInstanceId", + "in":"query", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/WorkflowStatusOutput" + } + } + } + }, + "204":{ + "description":"No Content", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/workflowManagement":{ + "get":{ + "tags":[ + "modelling-tool-api-controller" + ], + "summary":"getAllWorkflows", + "operationId":"getAllWorkflows", + "responses":{ + "404":{ + "description":"Not Found", + "content":{ + "application/json":{ + "schema":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/WorkflowStore" + } + } + } + } + }, + "401":{ + "description":"Unauthorized", + "content":{ + "application/json":{ + "schema":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/WorkflowStore" + } + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json":{ + "schema":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/WorkflowStore" + } + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/WorkflowStore" + } + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + }, + "post":{ + "tags":[ + "modelling-tool-api-controller" + ], + "summary":"addOrUpdateWorkflow", + "operationId":"addOrUpdateWorkflow", + "requestBody":{ + "content":{ + "multipart/form-data":{ + "schema":{ + "required":[ + "json file" + ], + "type":"object", + "properties":{ + "json file":{ + "type":"string", + "format":"binary" + } + } + } + } + } + }, + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/workflowExecutionManagement/executeService":{ + "post":{ + "tags":[ + "citizen-frontend-api-controller" + ], + "summary":"execute step", + "operationId":"executeService", + "parameters":[ + { + "name":"workflowInstanceId", + "in":"query", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + }, + { + "name":"phaseId", + "in":"query", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + }, + { + "name":"actionId", + "in":"query", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + }, + { + "name":"serviceId", + "in":"query", + "required":true, + "schema":{ + "type":"string" + } + }, + { + "name":"token", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + } + ], + "requestBody":{ + "content":{ + "multipart/form-data":{ + "schema":{ + "required":[ + "inputData" + ], + "type":"object", + "properties":{ + "inputData":{ + "type":"array", + "description":"Step input data", + "items":{ + "type":"string", + "format":"binary" + } + } + } + } + } + } + }, + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/ExecuteStepOutput" + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/workflowExecutionManagement/createUserWorkflowInstance":{ + "post":{ + "tags":[ + "citizen-frontend-api-controller" + ], + "summary":"create a new workflow instance", + "operationId":"createUserWorkflowInstance", + "parameters":[ + { + "name":"countryOrigin", + "in":"query", + "required":true, + "schema":{ + "type":"string" + } + }, + { + "name":"countryDestination", + "in":"query", + "required":true, + "schema":{ + "type":"string" + } + }, + { + "name":"workflowType", + "in":"query", + "required":true, + "schema":{ + "type":"string", + "enum":[ + "study", + "work" + ] + } + }, + { + "name":"name", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "204":{ + "description":"No Content", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/UserWorkflowModel" + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/logManagement":{ + "get":{ + "tags":[ + "log-api-controller" + ], + "summary":"get logs with no pagination", + "operationId":"getAllLogs", + "parameters":[ + { + "name":"workflowInstanceId", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + }, + { + "name":"phaseId", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + }, + { + "name":"actionId", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + }, + { + "name":"serviceId", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "application/json":{ + "schema":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/LogStore" + } + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json":{ + "schema":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/LogStore" + } + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/LogStore" + } + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + }, + "post":{ + "tags":[ + "log-api-controller" + ], + "summary":"save log", + "operationId":"saveLog", + "parameters":[ + { + "name":"description", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + }, + { + "name":"workflowInstanceId", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + }, + { + "name":"phaseId", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + }, + { + "name":"actionId", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + }, + { + "name":"serviceId", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + }, + "204":{ + "description":"No Content", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/workflowManagement/getWorkflowsDescription":{ + "get":{ + "tags":[ + "modelling-tool-api-controller" + ], + "summary":"getWorkflowsDescription", + "operationId":"getWorkflowsDescription", + "responses":{ + "404":{ + "description":"Not Found", + "content":{ + "application/json":{ + "schema":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/WorkflowModel" + } + } + } + } + }, + "401":{ + "description":"Unauthorized", + "content":{ + "application/json":{ + "schema":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/WorkflowModel" + } + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json":{ + "schema":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/WorkflowModel" + } + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/WorkflowModel" + } + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/workflowManagement/getWorkflowTrust/{workflowId}":{ + "get":{ + "tags":[ + "modelling-tool-api-controller" + ], + "summary":"get workflow trust label", + "operationId":"getWorkflowTrust", + "parameters":[ + { + "name":"workflowId", + "in":"path", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + }, + "204":{ + "description":"No Content", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + } + } + } + }, + "/workflowManagement/getWorkflowDescriptionById/{workflowId}":{ + "get":{ + "tags":[ + "modelling-tool-api-controller" + ], + "summary":"getWorkflowDescriptionById", + "operationId":"getWorkflowDescriptionById", + "parameters":[ + { + "name":"workflowId", + "in":"path", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + } + ], + "responses":{ + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/WorkflowModel" + } + } + } + }, + "401":{ + "description":"Unauthorized", + "content":{ + "application/json;charset=utf-8":{ + "schema":{ + "$ref":"#/components/schemas/WorkflowModel" + } + } + } + }, + "204":{ + "description":"No Content", + "content":{ + "application/json;charset=utf-8":{ + "schema":{ + "$ref":"#/components/schemas/WorkflowModel" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json;charset=utf-8":{ + "schema":{ + "$ref":"#/components/schemas/WorkflowModel" + } + } + } + } + } + } + }, + "/workflowManagement/getWorkflowById/{workflowId}":{ + "get":{ + "tags":[ + "modelling-tool-api-controller" + ], + "summary":"getWorkflowById", + "operationId":"getWorkflowById", + "parameters":[ + { + "name":"workflowId", + "in":"path", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "text/plain":{ + "schema":{ + "type":"array", + "items":{ + "type":"string", + "format":"byte" + } + } + } + } + }, + "204":{ + "description":"No Content", + "content":{ + "text/plain":{ + "schema":{ + "type":"array", + "items":{ + "type":"string", + "format":"byte" + } + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "text/plain":{ + "schema":{ + "type":"array", + "items":{ + "type":"string", + "format":"byte" + } + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + } + } + } + }, + "/workflowExecutionManagement/getWorkflowStatus":{ + "get":{ + "tags":[ + "citizen-frontend-api-controller" + ], + "summary":"getWorkflowStatus", + "operationId":"getWorkflowStatus", + "parameters":[ + { + "name":"workflowInstanceId", + "in":"query", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/WorkflowStatusOutput" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/workflowExecutionManagement/getUserWorkflowsInstances":{ + "get":{ + "tags":[ + "citizen-frontend-api-controller" + ], + "summary":"get list of workflow instances of a user", + "operationId":"getUserWorkflowsInstances", + "parameters":[ + { + "name":"countryOrigin", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + }, + { + "name":"countryDestination", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + }, + { + "name":"workflowType", + "in":"query", + "required":false, + "schema":{ + "type":"string", + "enum":[ + "study", + "work" + ] + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "application/json":{ + "schema":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/UserWorkflowModel" + } + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json":{ + "schema":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/UserWorkflowModel" + } + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/UserWorkflowModel" + } + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/workflowExecutionManagement/getUserWorkflowInstanceById":{ + "get":{ + "tags":[ + "citizen-frontend-api-controller" + ], + "summary":"get an existing workflow instance", + "operationId":"getUserWorkflowInstanceById", + "parameters":[ + { + "name":"workflowInstanceId", + "in":"query", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "application/json":{ + "schema":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/UserWorkflowModel" + } + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json":{ + "schema":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/UserWorkflowModel" + } + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/UserWorkflowModel" + } + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/workflowExecutionManagement/getServiceInfo":{ + "get":{ + "tags":[ + "citizen-frontend-api-controller" + ], + "summary":"get service info", + "operationId":"getServiceInfo", + "parameters":[ + { + "name":"serviceId", + "in":"query", + "required":true, + "schema":{ + "type":"string" + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json":{ + "schema":{ + "type":"object" + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/ServiceStore" + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/logManagement/StatisticsInfo":{ + "get":{ + "tags":[ + "log-api-controller" + ], + "summary":"get statiscs info", + "operationId":"getStatisticsInfo", + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/StatisticsInfo" + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/StatisticsInfo" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/StatisticsInfo" + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/logManagement/Paged":{ + "get":{ + "tags":[ + "log-api-controller" + ], + "summary":"get logs with pagination", + "operationId":"getAllLogsPaged", + "parameters":[ + { + "name":"workflowInstanceId", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + }, + { + "name":"phaseId", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + }, + { + "name":"actionId", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + }, + { + "name":"serviceId", + "in":"query", + "required":false, + "schema":{ + "type":"string" + } + }, + { + "name":"pageNo", + "in":"query", + "required":true, + "schema":{ + "type":"integer", + "format":"int32" + } + }, + { + "name":"pageSize", + "in":"query", + "required":true, + "schema":{ + "type":"integer", + "format":"int32" + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/LogResponse" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/LogResponse" + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "application/json":{ + "schema":{ + "$ref":"#/components/schemas/LogResponse" + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + }, + "/workflowExecutionManagement/{workflowInstanceId}":{ + "delete":{ + "tags":[ + "citizen-frontend-api-controller" + ], + "summary":"delete a workflowInstance", + "operationId":"deleteWorkflowInstance", + "parameters":[ + { + "name":"workflowInstanceId", + "in":"path", + "required":true, + "schema":{ + "type":"string", + "format":"uuid" + } + } + ], + "responses":{ + "401":{ + "description":"Unauthorized", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + }, + "204":{ + "description":"No Content", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + }, + "403":{ + "description":"Forbidden", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + }, + "200":{ + "description":"OK", + "content":{ + "text/plain":{ + "schema":{ + "type":"string" + } + } + } + } + }, + "security":[ + { + "bearer-jwt":[ + + ] + }, + { + "openid-connect":[ + + ] + } + ] + } + } + }, + "components":{ + "schemas":{ + "UserWorkflowStore":{ + "type":"object", + "properties":{ + "workflowInstanceId":{ + "type":"string", + "format":"uuid" + }, + "createdAt":{ + "type":"integer", + "format":"int64" + }, + "userId":{ + "type":"string", + "format":"uuid" + }, + "workflowId":{ + "type":"string", + "format":"uuid" + }, + "workflowType":{ + "type":"string" + }, + "countryOrigin":{ + "type":"string" + }, + "countryDestination":{ + "type":"string" + }, + "workflowStatus":{ + "type":"string" + }, + "trust":{ + "type":"boolean" + }, + "workflowContent":{ + "type":"string" + }, + "name":{ + "type":"string" + }, + "description":{ + "type":"string" + } + } + }, + "WorkflowStatusOutput":{ + "type":"object", + "properties":{ + "workflowInstanceId":{ + "type":"string", + "format":"uuid" + }, + "status":{ + "type":"string" + } + } + }, + "ActionServiceStatusOutput":{ + "type":"object", + "properties":{ + "workflowInstanceId":{ + "type":"string", + "format":"uuid" + }, + "phaseId":{ + "type":"string", + "format":"uuid" + }, + "actionId":{ + "type":"string", + "format":"uuid" + }, + "serviceId":{ + "type":"string" + }, + "status":{ + "type":"string" + }, + "serviceOutput":{ + "type":"string" + } + } + }, + "ActionStatusOutput":{ + "type":"object", + "properties":{ + "workflowInstanceId":{ + "type":"string", + "format":"uuid" + }, + "phaseId":{ + "type":"string", + "format":"uuid" + }, + "actionId":{ + "type":"string", + "format":"uuid" + }, + "status":{ + "type":"string" + } + } + }, + "ExecuteStepOutput":{ + "type":"object", + "properties":{ + "stepStatus":{ + "type":"string" + }, + "outputData":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/OutputDataElem" + } + } + } + }, + "OutputDataElem":{ + "type":"object", + "properties":{ + "outputId":{ + "type":"string" + }, + "title":{ + "type":"string" + }, + "type":{ + "type":"string" + }, + "language":{ + "type":"string" + }, + "description":{ + "type":"string" + }, + "content":{ + "type":"array", + "items":{ + "type":"string", + "format":"byte" + } + }, + "contentType":{ + "type":"string" + } + } + }, + "UserWorkflowModel":{ + "type":"object", + "properties":{ + "workflowInstanceId":{ + "type":"string", + "format":"uuid" + }, + "workflowContent":{ + "type":"string" + }, + "servicesWithoutConsent":{ + "type":"string" + }, + "description":{ + "type":"string" + }, + "createdAt":{ + "type":"integer", + "format":"int64" + }, + "name":{ + "type":"string" + }, + "userId":{ + "type":"string", + "format":"uuid" + }, + "workflowId":{ + "type":"string", + "format":"uuid" + }, + "workflowType":{ + "type":"string" + }, + "countryOrigin":{ + "type":"string" + }, + "countryDestination":{ + "type":"string" + }, + "workflowStatus":{ + "type":"string" + }, + "trust":{ + "type":"boolean" + } + }, + "xml":{ + "name":"UserWorkflowModel" + } + }, + "WorkflowStore":{ + "type":"object", + "properties":{ + "workflowId":{ + "type":"string", + "format":"uuid" + }, + "workflowType":{ + "type":"string" + }, + "countryOrigin":{ + "type":"string" + }, + "countryDestination":{ + "type":"string" + }, + "trust":{ + "type":"boolean" + }, + "jsonfile":{ + "type":"array", + "items":{ + "type":"string", + "format":"byte" + } + }, + "jsonfileInternal":{ + "type":"array", + "items":{ + "type":"string", + "format":"byte" + } + }, + "jsonfileName":{ + "type":"string" + } + } + }, + "WorkflowModel":{ + "type":"object", + "properties":{ + "workflowContent":{ + "type":"string" + }, + "description":{ + "type":"string" + }, + "workflowId":{ + "type":"string", + "format":"uuid" + }, + "workflowType":{ + "type":"string" + }, + "countryOrigin":{ + "type":"string" + }, + "countryDestination":{ + "type":"string" + } + }, + "xml":{ + "name":"WorkflowModel" + } + }, + "InputData":{ + "type":"object", + "properties":{ + "inputId":{ + "type":"string" + }, + "type":{ + "type":"string" + }, + "multiple":{ + "type":"boolean" + }, + "description":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/InputDataDescription" + } + }, + "required":{ + "type":"boolean" + }, + "source":{ + "$ref":"#/components/schemas/InputSource" + }, + "readonly":{ + "type":"boolean" + }, + "datamap":{ + "type":"string" + } + } + }, + "InputDataDescription":{ + "type":"object", + "properties":{ + "title":{ + "type":"string" + }, + "description":{ + "type":"string" + }, + "locale":{ + "type":"string" + } + } + }, + "InputSource":{ + "type":"object", + "properties":{ + "accessUrl":{ + "type":"string" + }, + "format":{ + "type":"string" + }, + "description":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/LocaleDescription" + } + } + } + }, + "LocaleDescription":{ + "type":"object", + "properties":{ + "description":{ + "type":"string" + }, + "locale":{ + "type":"string" + } + } + }, + "ServiceStore":{ + "type":"object", + "properties":{ + "channel":{ + "type":"string" + }, + "contact":{ + "type":"string" + }, + "location":{ + "type":"string" + }, + "inputDataRequired":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/InputData" + } + } + } + }, + "LogStore":{ + "type":"object", + "properties":{ + "userId":{ + "type":"string" + }, + "workflowInstanceId":{ + "type":"string" + }, + "phaseId":{ + "type":"string" + }, + "actionId":{ + "type":"string" + }, + "serviceId":{ + "type":"string" + }, + "description":{ + "type":"string" + }, + "createdOn":{ + "type":"string" + }, + "updatedByUser":{ + "type":"boolean" + } + } + }, + "StatisticsInfo":{ + "type":"object", + "properties":{ + "numStartedJourney":{ + "type":"integer", + "format":"int64", + "writeOnly":true + }, + "numUsersStartedJourney":{ + "type":"integer", + "format":"int64" + }, + "numStartedJourneys":{ + "type":"integer", + "format":"int64" + } + } + }, + "LogResponse":{ + "type":"object", + "properties":{ + "content":{ + "type":"array", + "items":{ + "$ref":"#/components/schemas/LogStore" + } + }, + "pageNo":{ + "type":"integer", + "format":"int32" + }, + "pageSize":{ + "type":"integer", + "format":"int32" + }, + "totalElements":{ + "type":"integer", + "format":"int64" + }, + "totalPages":{ + "type":"integer", + "format":"int32" + }, + "last":{ + "type":"boolean" + } + } + } + }, + "securitySchemes":{ + "openid-connect":{ + "type":"openIdConnect", + "openIdConnectUrl":"https://idp-security-dev.k8s.across-h2020.eu/realms/eidas-greece/.well-known/openid-configuration" + }, + "bearer-jwt":{ + "type":"http", + "scheme":"bearer", + "bearerFormat":"JWT" + } + } + } +} \ No newline at end of file