All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.lise.fluxflow.mongo.job.JobRepository.kt Maven / Gradle / Ivy

Go to download

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