This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/0.9.0: prepare release 0.9.0 add missing test, change .keep to readme files, log questionnaire-response pretty move user-task to its own process, update to dsf 0.9.0 update to dsf 0.9.0-SNAPSHOT, add display type add url type to questionnaire remove not needed extension element log user task after execution use default user task listener, move url and version to form key update to dsf version 0.8.0-SNAPSHOT adds taskHelper to user task improve questionnaire with more types update to dsf 0.7.0, improve questionnaire
- Loading branch information
Showing
24 changed files
with
530 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
1 change: 1 addition & 0 deletions
1
dsf-bpe-process-hello-world/src/main/java/org/highmed/dsf/bpe/message/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
`message` package typically used for implementing task message send events |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...pe-process-hello-world/src/main/java/org/highmed/dsf/bpe/service/LogUserTaskResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package org.highmed.dsf.bpe.service; | ||
|
||
import static org.highmed.dsf.bpe.ConstantsBase.BPMN_EXECUTION_VARIABLE_QUESTIONNAIRE_RESPONSE_COMPLETED; | ||
|
||
import java.util.Objects; | ||
|
||
import org.camunda.bpm.engine.delegate.DelegateExecution; | ||
import org.highmed.dsf.bpe.delegate.AbstractServiceDelegate; | ||
import org.highmed.dsf.fhir.authorization.read.ReadAccessHelper; | ||
import org.highmed.dsf.fhir.client.FhirWebserviceClientProvider; | ||
import org.highmed.dsf.fhir.task.TaskHelper; | ||
import org.hl7.fhir.r4.model.QuestionnaireResponse; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.beans.factory.InitializingBean; | ||
|
||
import ca.uhn.fhir.context.FhirContext; | ||
|
||
public class LogUserTaskResponse extends AbstractServiceDelegate implements InitializingBean | ||
{ | ||
private static final Logger logger = LoggerFactory.getLogger(LogUserTaskResponse.class); | ||
|
||
private final FhirContext fhirContext; | ||
|
||
public LogUserTaskResponse(FhirWebserviceClientProvider clientProvider, TaskHelper taskHelper, | ||
ReadAccessHelper readAccessHelper, FhirContext fhirContext) | ||
{ | ||
super(clientProvider, taskHelper, readAccessHelper); | ||
this.fhirContext = fhirContext; | ||
} | ||
|
||
@Override | ||
public void afterPropertiesSet() throws Exception | ||
{ | ||
super.afterPropertiesSet(); | ||
Objects.requireNonNull(fhirContext, "fhirContext"); | ||
} | ||
|
||
@Override | ||
protected void doExecute(DelegateExecution execution) | ||
{ | ||
QuestionnaireResponse questionnaireResponse = (QuestionnaireResponse) execution | ||
.getVariable(BPMN_EXECUTION_VARIABLE_QUESTIONNAIRE_RESPONSE_COMPLETED); | ||
|
||
logger.info("Completed QuestionnaireResponse: {}", | ||
fhirContext.newXmlParser().setPrettyPrint(true).encodeResourceToString(questionnaireResponse)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
1 change: 1 addition & 0 deletions
1
dsf-bpe-process-hello-world/src/main/java/org/highmed/dsf/bpe/variable/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
`variable` package typically used for implementing custom BPMN variable serializers |
54 changes: 54 additions & 0 deletions
54
dsf-bpe-process-hello-world/src/main/resources/bpe/helloUser.bpmn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bpmn:definitions xmlns:bpmn="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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1yb5vw3" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.0.0"> | ||
<bpmn:process id="highmedorg_helloUser" isExecutable="true" camunda:versionTag="#{version}"> | ||
<bpmn:sequenceFlow id="SequenceFlow_0bbhq2r" sourceRef="StartEvent_1" targetRef="userTask" /> | ||
<bpmn:endEvent id="EndEvent_0xd0x8k"> | ||
<bpmn:incoming>Flow_034bfq7</bpmn:incoming> | ||
</bpmn:endEvent> | ||
<bpmn:startEvent id="StartEvent_1"> | ||
<bpmn:outgoing>SequenceFlow_0bbhq2r</bpmn:outgoing> | ||
<bpmn:messageEventDefinition messageRef="Message_1nn2wdw" /> | ||
</bpmn:startEvent> | ||
<bpmn:sequenceFlow id="Flow_00nx7hv" sourceRef="userTask" targetRef="logUserTaskRespose" /> | ||
<bpmn:userTask id="userTask" name="User Task" camunda:formKey="http://highmed.org/fhir/Questionnaire/hello-user|#{version}"> | ||
<bpmn:incoming>SequenceFlow_0bbhq2r</bpmn:incoming> | ||
<bpmn:outgoing>Flow_00nx7hv</bpmn:outgoing> | ||
</bpmn:userTask> | ||
<bpmn:sequenceFlow id="Flow_034bfq7" sourceRef="logUserTaskRespose" targetRef="EndEvent_0xd0x8k" /> | ||
<bpmn:serviceTask id="logUserTaskRespose" name="log user task respose" camunda:class="org.highmed.dsf.bpe.service.LogUserTaskResponse"> | ||
<bpmn:incoming>Flow_00nx7hv</bpmn:incoming> | ||
<bpmn:outgoing>Flow_034bfq7</bpmn:outgoing> | ||
</bpmn:serviceTask> | ||
</bpmn:process> | ||
<bpmn:message id="Message_1nn2wdw" name="helloUser" /> | ||
<bpmndi:BPMNDiagram id="BPMNDiagram_1"> | ||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="highmedorg_helloUser"> | ||
<bpmndi:BPMNEdge id="Flow_034bfq7_di" bpmnElement="Flow_034bfq7"> | ||
<di:waypoint x="520" y="121" /> | ||
<di:waypoint x="612" y="121" /> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNEdge id="Flow_00nx7hv_di" bpmnElement="Flow_00nx7hv"> | ||
<di:waypoint x="360" y="121" /> | ||
<di:waypoint x="420" y="121" /> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNEdge id="SequenceFlow_0bbhq2r_di" bpmnElement="SequenceFlow_0bbhq2r"> | ||
<di:waypoint x="188" y="121" /> | ||
<di:waypoint x="260" y="121" /> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNShape id="EndEvent_0xd0x8k_di" bpmnElement="EndEvent_0xd0x8k"> | ||
<dc:Bounds x="612" y="103" width="36" height="36" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Activity_06hqzi2_di" bpmnElement="userTask"> | ||
<dc:Bounds x="260" y="81" width="100" height="80" /> | ||
<bpmndi:BPMNLabel /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Activity_1kldjfh_di" bpmnElement="logUserTaskRespose"> | ||
<dc:Bounds x="420" y="81" width="100" height="80" /> | ||
<bpmndi:BPMNLabel /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="StartEvent_0x5gijn_di" bpmnElement="StartEvent_1"> | ||
<dc:Bounds x="152" y="103" width="36" height="36" /> | ||
</bpmndi:BPMNShape> | ||
</bpmndi:BPMNPlane> | ||
</bpmndi:BPMNDiagram> | ||
</bpmn:definitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
dsf-bpe-process-hello-world/src/main/resources/fhir/ActivityDefinition/highmed-helloUser.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<ActivityDefinition xmlns="http://hl7.org/fhir"> | ||
<meta> | ||
<tag> | ||
<system value="http://highmed.org/fhir/CodeSystem/read-access-tag" /> | ||
<code value="ALL" /> | ||
</tag> | ||
</meta> | ||
<extension url="http://highmed.org/fhir/StructureDefinition/extension-process-authorization"> | ||
<extension url="message-name"> | ||
<valueString value="helloUser" /> | ||
</extension> | ||
<extension url="task-profile"> | ||
<valueCanonical value="http://highmed.org/fhir/StructureDefinition/task-hello-user|#{version}" /> | ||
</extension> | ||
<extension url="requester"> | ||
<valueCoding> | ||
<system value="http://highmed.org/fhir/CodeSystem/process-authorization" /> | ||
<code value="LOCAL_ALL" /> | ||
</valueCoding> | ||
</extension> | ||
<extension url="recipient"> | ||
<valueCoding> | ||
<system value="http://highmed.org/fhir/CodeSystem/process-authorization" /> | ||
<code value="LOCAL_ALL" /> | ||
</valueCoding> | ||
</extension> | ||
</extension> | ||
<url value="http://highmed.org/bpe/Process/helloUser" /> | ||
<!-- version managed by bpe --> | ||
<version value="#{version}" /> | ||
<name value="HelloUser" /> | ||
<title value="Hello User" /> | ||
<subtitle value="Example Template Process as template for implementation of novel processes with user-tasks" /> | ||
<!-- status managed by bpe --> | ||
<status value="unknown" /> | ||
<experimental value="false" /> | ||
<!-- date managed by bpe --> | ||
<date value="#{date}" /> | ||
<publisher value="HiGHmed" /> | ||
<contact> | ||
<name value="HiGHmed" /> | ||
<telecom> | ||
<system value="email" /> | ||
<value value="[email protected]" /> | ||
</telecom> | ||
</contact> | ||
<description value="Example process as template for implementation of novel processes with user-tasks" /> | ||
<kind value="Task" /> | ||
</ActivityDefinition> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.