Skip to content

Commit

Permalink
fixed optional base-path
Browse files Browse the repository at this point in the history
  • Loading branch information
lwluc committed Nov 10, 2023
1 parent a3a5e1c commit 0b09c0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ data class XesDefinition(

@Throws(Exception::class)
fun XesDefinition.toXMLFile(basePath: String?, logger: Logger? = null) {
val filename = "${basePath?.plus("/") ?: ""}$processDefinitionId.xml"
val prefix = if (!basePath.isNullOrEmpty()) "$basePath/" else ""
val filename = "$prefix$processDefinitionId.xml"

logger?.debug("Writing XES to file {}", filename)

Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ optimize:
token-base-url: https://login.cloud.camunda.io/oauth/token

xes-mapping:
base-path: <xes-result-filename-or-path>.xml
# Optionally: Specify the base bath for the resulting XML(s).
base-path:

0 comments on commit 0b09c0c

Please sign in to comment.