org.camunda.bpm.engine.management.JobDefinition Maven / Gradle / Ivy
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.camunda.bpm.engine.management;
import org.camunda.bpm.engine.repository.ProcessDefinition;
/**
* A Job Definition provides details about asynchronous background
* processing ("Jobs") performed by the process engine.
*
* Each Job Definition corresponds to a Timer or Asynchronous continuation
* job installed in the process engine. Jobs definitions are installed when
* BPMN 2.0 processes containing timer activities or asynchronous continuations
* are deployed.
*
* @author Daniel Meyer
*
*/
public interface JobDefinition {
/**
* @return the Id of the job definition.
*/
public abstract String getId();
/**
* @return the id of the {@link ProcessDefinition} this job definition is associated with.
*/
public abstract String getProcessDefinitionId();
/**
* @return the key of the {@link ProcessDefinition} this job definition is associated with.
*/
public abstract String getProcessDefinitionKey();
/**
* The Type of a job. Asynchronous continuation, timer, ...
*
* @return the type of a Job.
*/
public abstract String getJobType();
/**
* The configuration of a job definition provides details about the jobs which will be created.
* For timer jobs this method returns the timer configuration.
*
* @return the configuration of this job definition.
*/
public abstract String getJobConfiguration();
/**
* The Id of the activity (from BPMN 2.0 Xml) this Job Definition is associated with.
*
* @return the activity id for this Job Definition.
*/
public abstract String getActivityId();
/**
* Indicates whether this job definition is suspended. If a job Definition is suspended,
* No Jobs created form the job definition will be acquired by the job executor.
*
* @return true if this Job Definition is currently suspended.
*/
boolean isSuspended();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy