-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate presentation from business logic
- Loading branch information
Showing
53 changed files
with
534 additions
and
499 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
18 changes: 18 additions & 0 deletions
18
...-manager-api/src/main/scala/pl/touk/nussknacker/engine/api/deployment/StatusDetails.scala
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,18 @@ | ||
package pl.touk.nussknacker.engine.api.deployment | ||
|
||
import io.circe.Json | ||
import pl.touk.nussknacker.engine.api.ProcessVersion | ||
import pl.touk.nussknacker.engine.deployment.{DeploymentId, ExternalDeploymentId} | ||
|
||
case class StatusDetails( | ||
status: StateStatus, | ||
deploymentId: Option[DeploymentId], | ||
externalDeploymentId: Option[ExternalDeploymentId] = None, | ||
version: Option[ProcessVersion] = None, | ||
startTime: Option[Long] = None, | ||
attributes: Option[Json] = None, | ||
errors: List[String] = List.empty | ||
) { | ||
def externalDeploymentIdUnsafe: ExternalDeploymentId = | ||
externalDeploymentId.getOrElse(throw new IllegalStateException(s"externalDeploymentId is missing")) | ||
} |
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
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
Oops, something went wrong.