Skip to content

Commit

Permalink
rename test and put Batch Id in Job interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mboskamp committed Sep 20, 2024
1 parent fe8f455 commit 552c152
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions engine/src/main/java/org/camunda/bpm/engine/runtime/Job.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,15 @@ public interface Job {
/** The date/time when this job has been created */
Date getCreateTime();

/**
* The ID of the batch associated with this job. <code>null</code> if no batch is associated with this job.
* The following jobs are associated with batches:
* <ul>
* <li>Seed Jobs</li>
* <li>Monitor Jobs</li>
* <li>Batch Execution Jobs</li>
* </ul>
* @return The ID of the batch associated to the Job.
*/
String getBatchId();
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
import org.junit.Test;
import org.junit.rules.RuleChain;

public class BatchOperationJobIdTest {
public class JobEntityAndJobLogBatchIdTest {

protected ProcessEngineRule engineRule = new ProvidedProcessEngineRule();
protected ProcessEngineTestRule testRule = new ProcessEngineTestRule(engineRule);
Expand Down

0 comments on commit 552c152

Please sign in to comment.