
de.lise.fluxflow.mongo.job.JobRepository.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of springboot-mongo Show documentation
Show all versions of springboot-mongo Show documentation
A flexible workflow engine that helps to create and orchestrate business processes using domain code.
The newest version!
package de.lise.fluxflow.mongo.job
import de.lise.fluxflow.api.job.JobStatus
import org.springframework.data.mongodb.repository.MongoRepository
import org.springframework.data.mongodb.repository.Update
interface JobRepository : MongoRepository {
fun findByWorkflowId(workflowId: String): List
fun findByIdAndWorkflowId(id: String, workflowId: String): JobDocument?
@Update("{ '\$set': { 'jobStatus': 'Canceled' } }")
fun findAndSetJobStatusByWorkflowIdAndCancellationKeyAndJobStatusIn(
workflowId: String,
cancellationKey: String,
status: Set
)
fun deleteAllByWorkflowId(workflowId: String)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy