Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PDA Testing Tool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
winfo
code-pro
PDA Testing Framework
PDA Testing Tool
Commits
4e000b95
Commit
4e000b95
authored
3 years ago
by
Henning Josef Moritz Werner Schmeink
Browse files
Options
Downloads
Patches
Plain Diff
added getUpdatedBPMNFlowSet
+ new path for rest + static path of the updated bpmn-file
parent
884c65e5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Testgenerator/src/main/java/de/fhmuenster/masterthesis/Testgenerator/rest/service/file/FileController.java
+22
-0
22 additions, 0 deletions
...hesis/Testgenerator/rest/service/file/FileController.java
with
22 additions
and
0 deletions
Testgenerator/src/main/java/de/fhmuenster/masterthesis/Testgenerator/rest/service/file/FileController.java
+
22
−
0
View file @
4e000b95
...
...
@@ -38,6 +38,28 @@ public class FileController {
return
bpmnContent
;
}
/*
* getUpdatedBPMNFlowSet()
* # FE2021
* # Wir benötigt um das neue BPMN-Modell einzulesen
*/
@RequestMapping
(
path
=
"/project/{projectId}/update/bpmn/x"
,
method
=
RequestMethod
.
GET
)
public
String
getUpdatedBPMNFlowSet
(
@PathVariable
(
required
=
true
)
Long
projectId
)
{
Project
projectForId
=
projectService
.
getProjectForId
(
projectId
);
// TODO: Update-Datei, muss noch ins Versionierungskonzept eingearbeitet werden
String
rootPath
=
projectForId
.
getProjectDirectories
().
getProjectRootPath
();
// D:\Eclipse orkspace\bpmn-testgenerator-tool-master\OnlineSchuhDemo
// Hardcoded, die Funktion getBpmnFiles() findet nicht mehrere bpmn dateien sonder nur eine
String
bpmnPath
=
"src\\main\\resources\\test.bpmn"
;
Path
bpmn
=
Paths
.
get
(
rootPath
,
bpmnPath
);
File
bpmnFile
=
new
File
(
bpmn
.
toString
());
String
bpmnContent
=
readFile
(
bpmnFile
);
return
bpmnContent
;
}
private
String
readFile
(
File
bpmnFile
)
{
try
{
return
FileUtils
.
readFileToString
(
bpmnFile
,
"UTF-8"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment