📄 job.java
字号:
package org.jbpm.model.scheduler;
import java.util.*;
/**
* contains the information for scheduling jobs.
* Note that definitionId, processInstanceId and tokenId are optional, but...
* <p>When definitionId is not provided, the scheduler will not use the definition-class-loader
* and hence only find classes that are visible to the jbpm classloader (not classes deployed
* in the process archives).
* </p>
* <p>When no tokenId or processInstanceId are provided, the ActionHandler cannot perform
* any methods in the ExecutionContext for which a token is needed (like e.g. the methods
* get- and setVariable)
* </p>
*/
public class Job {
private Long definitionId = null;
private String className = null;
private String configuration = null;
private Date dueDate = null;
private Long repeat = null;
private Long tokenId = null;
private Long processInstanceId = null;
public Job ( String className, Date dueDate ) {
this( className, null, dueDate );
}
public Job ( String className, long delay ) {
this( className, null, new Date( System.currentTimeMillis() + delay ) );
}
public Job ( String className, String configuration, long delay ) {
this( className, configuration, new Date( System.currentTimeMillis() + delay ) );
}
public Job ( String className, String configuration, Date dueDate ) {
this.className = className;
this.configuration = configuration;
this.dueDate = dueDate;
}
public String getClassName() { return className; }
public String getConfiguration() { return configuration; }
public Date getDueDate() { return dueDate; }
public Long getDefinitionId() { return definitionId; }
public void setDefinitionId(Long definitionId) { this.definitionId = definitionId; }
public Long getProcessInstanceId() { return processInstanceId; }
public void setProcessInstanceId(Long processInstanceId) { this.processInstanceId = processInstanceId; }
public Long getTokenId() { return tokenId; }
public void setTokenId(Long tokenId) { this.tokenId = tokenId; }
public Long getRepeat() { return repeat; }
public void setRepeat(Long repeat) { this.repeat = repeat; }
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -