code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
public TaskReport createTaskReport() { return new TaskReportImpl(commandExecutor); }
@author Tom Baeyens @author Joram Barrez
createTaskReport
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/TaskServiceImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/TaskServiceImpl.java
Apache-2.0
@Override public void handleBpmnError(String taskId, String errorCode) { commandExecutor.execute(new HandleTaskBpmnErrorCmd(taskId, errorCode)); }
@author Tom Baeyens @author Joram Barrez
handleBpmnError
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/TaskServiceImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/TaskServiceImpl.java
Apache-2.0
@Override public void handleBpmnError(String taskId, String errorCode, String errorMessage) { commandExecutor.execute(new HandleTaskBpmnErrorCmd(taskId, errorCode, errorMessage)); }
@author Tom Baeyens @author Joram Barrez
handleBpmnError
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/TaskServiceImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/TaskServiceImpl.java
Apache-2.0
@Override public void handleBpmnError(String taskId, String errorCode, String errorMessage, Map<String, Object> variables) { commandExecutor.execute(new HandleTaskBpmnErrorCmd(taskId, errorCode, errorMessage, variables)); }
@author Tom Baeyens @author Joram Barrez
handleBpmnError
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/TaskServiceImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/TaskServiceImpl.java
Apache-2.0
@Override public void handleEscalation(String taskId, String escalationCode) { commandExecutor.execute(new HandleTaskEscalationCmd(taskId, escalationCode)); }
@author Tom Baeyens @author Joram Barrez
handleEscalation
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/TaskServiceImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/TaskServiceImpl.java
Apache-2.0
@Override public void handleEscalation(String taskId, String escalationCode, Map<String, Object> variables) { commandExecutor.execute(new HandleTaskEscalationCmd(taskId, escalationCode, variables)); }
@author Tom Baeyens @author Joram Barrez
handleEscalation
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/TaskServiceImpl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/TaskServiceImpl.java
Apache-2.0
@Override public boolean createJobs(BatchEntity batch) { T configuration = readConfiguration(batch.getConfigurationBytes()); String deploymentId = null; DeploymentMappings idMappings = configuration.getIdMappings(); boolean deploymentAware = idMappings != null && !idMappings.isEmpty(); List<Stri...
Common methods for batch job handlers based on list of ids, providing serialization, configuration instantiation, etc. @author Askar Akhmerov
createJobs
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
Apache-2.0
@Override public final void execute(final BatchJobConfiguration configuration, final ExecutionEntity execution, final CommandContext commandContext, final String tenantId) { // load handler config String byteArrayId = configu...
Common methods for batch job handlers based on list of ids, providing serialization, configuration instantiation, etc. @author Askar Akhmerov
execute
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
Apache-2.0
protected void sanitizeMappings(DeploymentMappings idMappings, List<String> ids) { // for mixed version SeedJob execution, there might be ids that have been processed // without updating the mappings, this is corrected here, // see https://jira.camunda.com/browse/CAM-11188 int elementsToRemove = idMappi...
Common methods for batch job handlers based on list of ids, providing serialization, configuration instantiation, etc. @author Askar Akhmerov
sanitizeMappings
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
Apache-2.0
protected void createJobEntities(BatchEntity batch, T configuration, String deploymentId, List<String> processIds, int invocationsPerBatchJob) { if (processIds == null || processIds.isEmpty()) { return; } CommandContext commandContext = Context.getCommandContext(); ByteArrayManager byteArr...
Common methods for batch job handlers based on list of ids, providing serialization, configuration instantiation, etc. @author Askar Akhmerov
createJobEntities
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
Apache-2.0
protected void postProcessJob(T configuration, JobEntity job, T jobConfiguration) { // do nothing as default }
Common methods for batch job handlers based on list of ids, providing serialization, configuration instantiation, etc. @author Askar Akhmerov
postProcessJob
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
Apache-2.0
protected JobEntity createBatchJob(BatchEntity batch, ByteArrayEntity configuration) { BatchJobContext creationContext = new BatchJobContext(batch, configuration); return getJobDeclaration().createJobInstance(creationContext); }
Common methods for batch job handlers based on list of ids, providing serialization, configuration instantiation, etc. @author Askar Akhmerov
createBatchJob
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
Apache-2.0
@Override public void deleteJobs(BatchEntity batch) { List<JobEntity> jobs = Context.getCommandContext() .getJobManager() .findJobsByJobDefinitionId(batch.getBatchJobDefinitionId()); for (JobEntity job : jobs) { job.delete(); } }
Common methods for batch job handlers based on list of ids, providing serialization, configuration instantiation, etc. @author Askar Akhmerov
deleteJobs
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
Apache-2.0
@Override public BatchJobConfiguration newConfiguration(String canonicalString) { return new BatchJobConfiguration(canonicalString); }
Common methods for batch job handlers based on list of ids, providing serialization, configuration instantiation, etc. @author Askar Akhmerov
newConfiguration
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
Apache-2.0
@Override public void onDelete(BatchJobConfiguration configuration, JobEntity jobEntity) { String byteArrayId = configuration.getConfigurationByteArrayId(); if (byteArrayId != null) { Context.getCommandContext().getByteArrayManager() .deleteByteArrayById(byteArrayId); } }
Common methods for batch job handlers based on list of ids, providing serialization, configuration instantiation, etc. @author Askar Akhmerov
onDelete
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
Apache-2.0
protected ByteArrayEntity saveConfiguration(ByteArrayManager byteArrayManager, T jobConfiguration) { ByteArrayEntity configurationEntity = new ByteArrayEntity(); configurationEntity.setBytes(writeConfiguration(jobConfiguration)); byteArrayManager.insert(configurationEntity); return configurationEntity; ...
Common methods for batch job handlers based on list of ids, providing serialization, configuration instantiation, etc. @author Askar Akhmerov
saveConfiguration
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
Apache-2.0
@Override public byte[] writeConfiguration(T configuration) { JsonElement jsonObject = getJsonConverterInstance().toJsonObject(configuration); return JsonUtil.asBytes(jsonObject); }
Common methods for batch job handlers based on list of ids, providing serialization, configuration instantiation, etc. @author Askar Akhmerov
writeConfiguration
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
Apache-2.0
@Override public T readConfiguration(byte[] serializedConfiguration) { return getJsonConverterInstance().toObject(JsonUtil.asObject(serializedConfiguration)); }
Common methods for batch job handlers based on list of ids, providing serialization, configuration instantiation, etc. @author Askar Akhmerov
readConfiguration
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
Apache-2.0
@Override public Class<? extends DbEntity> getEntityType() { return BatchEntity.class; }
Common methods for batch job handlers based on list of ids, providing serialization, configuration instantiation, etc. @author Askar Akhmerov
getEntityType
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
Apache-2.0
@Override public OptimisticLockingResult failedOperation(final DbOperation operation) { if (operation instanceof DbEntityOperation) { return OptimisticLockingResult.IGNORE; } return OptimisticLockingResult.THROW; }
Common methods for batch job handlers based on list of ids, providing serialization, configuration instantiation, etc. @author Askar Akhmerov
failedOperation
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
Apache-2.0
@Override public int calculateInvocationsPerBatchJob(String batchType, T configuration) { ProcessEngineConfigurationImpl engineConfig = Context.getProcessEngineConfiguration(); Map<String, Integer> invocationsPerBatchJobByBatchType = engineConfig.getInvocationsPerBatchJobByBatchType(); Integer invocationC...
Common methods for batch job handlers based on list of ids, providing serialization, configuration instantiation, etc. @author Askar Akhmerov
calculateInvocationsPerBatchJob
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/AbstractBatchJobHandler.java
Apache-2.0
public void addDeploymentMappings(List<ImmutablePair<String, String>> mappings) { addDeploymentMappings(mappings, null); }
Add mappings of deployment ids to resource ids to the overall element mapping list. @param mappings the mappings to add
addDeploymentMappings
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchElementConfiguration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchElementConfiguration.java
Apache-2.0
public void addDeploymentMappings(List<ImmutablePair<String, String>> mappingsList, Collection<String> idList) { if (ids != null) { ids = null; mappings = null; } Set<String> missingIds = idList == null ? null : new HashSet<>(idList); mappingsList.forEach(pair -> { String deploymentId ...
Add mappings of deployment ids to resource ids to the overall element mapping list. All elements from <code>idList</code> that are not part of the mappings will be added to the list of <code>null</code> deployment id mappings. @param mappingsList the mappings to add @param idList the list of ids to c...
addDeploymentMappings
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchElementConfiguration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchElementConfiguration.java
Apache-2.0
public List<String> getIds() { if (ids == null) { createDeploymentMappings(); } return ids; }
@return the list of ids that are mapped to deployment ids, ordered by deployment id
getIds
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchElementConfiguration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchElementConfiguration.java
Apache-2.0
public DeploymentMappings getMappings() { if (mappings == null) { createDeploymentMappings(); } return mappings; }
@return the list of {@link DeploymentMapping}s
getMappings
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchElementConfiguration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchElementConfiguration.java
Apache-2.0
public boolean isEmpty() { return collectedMappings.isEmpty(); }
@return the list of {@link DeploymentMapping}s
isEmpty
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchElementConfiguration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchElementConfiguration.java
Apache-2.0
protected void createDeploymentMappings() { ids = new ArrayList<>(); mappings = new DeploymentMappings(); for (Entry<String, Set<String>> mapping : collectedMappings.entrySet()) { ids.addAll(mapping.getValue()); mappings.add(new DeploymentMapping(mapping.getKey(), mapping.getValue().size())); ...
@return the list of {@link DeploymentMapping}s
createDeploymentMappings
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchElementConfiguration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchElementConfiguration.java
Apache-2.0
protected ExecutionEntity resolveExecution(BatchEntity batch) { return null; }
Job declaration for batch monitor jobs. The batch monitor job polls for the completion of the batch.
resolveExecution
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobDeclaration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobDeclaration.java
Apache-2.0
protected MessageEntity newJobInstance(BatchEntity batch) { return new MessageEntity(); }
Job declaration for batch monitor jobs. The batch monitor job polls for the completion of the batch.
newJobInstance
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobDeclaration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobDeclaration.java
Apache-2.0
@Override protected JobHandlerConfiguration resolveJobHandlerConfiguration(BatchEntity batch) { return new BatchMonitorJobConfiguration(batch.getId()); }
Job declaration for batch monitor jobs. The batch monitor job polls for the completion of the batch.
resolveJobHandlerConfiguration
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobDeclaration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobDeclaration.java
Apache-2.0
@Override protected String resolveJobDefinitionId(BatchEntity batch) { return batch.getMonitorJobDefinitionId(); }
Job declaration for batch monitor jobs. The batch monitor job polls for the completion of the batch.
resolveJobDefinitionId
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobDeclaration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobDeclaration.java
Apache-2.0
public ParameterValueProvider getJobPriorityProvider() { long batchJobPriority = Context.getProcessEngineConfiguration() .getBatchJobPriority(); return new ConstantValueProvider(batchJobPriority); }
Job declaration for batch monitor jobs. The batch monitor job polls for the completion of the batch.
getJobPriorityProvider
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobDeclaration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobDeclaration.java
Apache-2.0
public String getType() { return TYPE; }
Job handler for batch monitor jobs. The batch monitor job polls for the completion of the batch.
getType
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobHandler.java
Apache-2.0
public void execute(BatchMonitorJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) { String batchId = configuration.getBatchId(); BatchEntity batch = commandContext.getBatchManager().findBatchById(configuration.getBatchId()); ensureNotNull("Batch with...
Job handler for batch monitor jobs. The batch monitor job polls for the completion of the batch.
execute
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobHandler.java
Apache-2.0
@Override public BatchMonitorJobConfiguration newConfiguration(String canonicalString) { return new BatchMonitorJobConfiguration(canonicalString); }
Job handler for batch monitor jobs. The batch monitor job polls for the completion of the batch.
newConfiguration
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobHandler.java
Apache-2.0
public String getBatchId() { return batchId; }
Job handler for batch monitor jobs. The batch monitor job polls for the completion of the batch.
getBatchId
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobHandler.java
Apache-2.0
@Override public String toCanonicalString() { return batchId; }
Job handler for batch monitor jobs. The batch monitor job polls for the completion of the batch.
toCanonicalString
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobHandler.java
Apache-2.0
public void onDelete(BatchMonitorJobConfiguration configuration, JobEntity jobEntity) { // do nothing }
Job handler for batch monitor jobs. The batch monitor job polls for the completion of the batch.
onDelete
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchMonitorJobHandler.java
Apache-2.0
protected ExecutionEntity resolveExecution(BatchEntity batch) { return null; }
Job declaration for batch seed jobs. The batch seed job creates all batch jobs required to complete the batch.
resolveExecution
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobDeclaration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobDeclaration.java
Apache-2.0
protected MessageEntity newJobInstance(BatchEntity batch) { return new MessageEntity(); }
Job declaration for batch seed jobs. The batch seed job creates all batch jobs required to complete the batch.
newJobInstance
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobDeclaration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobDeclaration.java
Apache-2.0
@Override protected JobHandlerConfiguration resolveJobHandlerConfiguration(BatchEntity batch) { return new BatchSeedJobConfiguration(batch.getId()); }
Job declaration for batch seed jobs. The batch seed job creates all batch jobs required to complete the batch.
resolveJobHandlerConfiguration
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobDeclaration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobDeclaration.java
Apache-2.0
@Override protected String resolveJobDefinitionId(BatchEntity batch) { return batch.getSeedJobDefinitionId(); }
Job declaration for batch seed jobs. The batch seed job creates all batch jobs required to complete the batch.
resolveJobDefinitionId
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobDeclaration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobDeclaration.java
Apache-2.0
public ParameterValueProvider getJobPriorityProvider() { long batchJobPriority = Context.getProcessEngineConfiguration() .getBatchJobPriority(); return new ConstantValueProvider(batchJobPriority); }
Job declaration for batch seed jobs. The batch seed job creates all batch jobs required to complete the batch.
getJobPriorityProvider
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobDeclaration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobDeclaration.java
Apache-2.0
public String getType() { return TYPE; }
The batch seed job handler is responsible to create all jobs to be executed by the batch. If all jobs are created a seed monitor job is created to oversee the completion of the batch (see {@link BatchMonitorJobHandler}).
getType
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobHandler.java
Apache-2.0
public void execute(BatchSeedJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) { String batchId = configuration.getBatchId(); BatchEntity batch = commandContext.getBatchManager().findBatchById(batchId); ensureNotNull("Batch with id '" + batchId + "' ...
The batch seed job handler is responsible to create all jobs to be executed by the batch. If all jobs are created a seed monitor job is created to oversee the completion of the batch (see {@link BatchMonitorJobHandler}).
execute
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobHandler.java
Apache-2.0
@Override public BatchSeedJobConfiguration newConfiguration(String canonicalString) { return new BatchSeedJobConfiguration(canonicalString); }
The batch seed job handler is responsible to create all jobs to be executed by the batch. If all jobs are created a seed monitor job is created to oversee the completion of the batch (see {@link BatchMonitorJobHandler}).
newConfiguration
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobHandler.java
Apache-2.0
public String getBatchId() { return batchId; }
The batch seed job handler is responsible to create all jobs to be executed by the batch. If all jobs are created a seed monitor job is created to oversee the completion of the batch (see {@link BatchMonitorJobHandler}).
getBatchId
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobHandler.java
Apache-2.0
@Override public String toCanonicalString() { return batchId; }
The batch seed job handler is responsible to create all jobs to be executed by the batch. If all jobs are created a seed monitor job is created to oversee the completion of the batch (see {@link BatchMonitorJobHandler}).
toCanonicalString
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobHandler.java
Apache-2.0
public void onDelete(BatchSeedJobConfiguration configuration, JobEntity jobEntity) { // do nothing }
The batch seed job handler is responsible to create all jobs to be executed by the batch. If all jobs are created a seed monitor job is created to oversee the completion of the batch (see {@link BatchMonitorJobHandler}).
onDelete
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/BatchSeedJobHandler.java
Apache-2.0
public String getDeploymentId() { return NULL_ID.equals(deploymentId) ? null : deploymentId; }
Aggregated information on deployment ids and the number of related resources
getDeploymentId
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMapping.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMapping.java
Apache-2.0
public int getCount() { return count; }
Aggregated information on deployment ids and the number of related resources
getCount
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMapping.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMapping.java
Apache-2.0
public List<String> getIds(List<String> ids) { return ids.subList(0, count); }
Aggregated information on deployment ids and the number of related resources
getIds
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMapping.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMapping.java
Apache-2.0
public void removeIds(int numberOfIds) { count -= numberOfIds; }
Aggregated information on deployment ids and the number of related resources
removeIds
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMapping.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMapping.java
Apache-2.0
@Override public String toString() { return new StringJoiner(";").add(deploymentId).add(String.valueOf(count)).toString(); }
Aggregated information on deployment ids and the number of related resources
toString
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMapping.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMapping.java
Apache-2.0
@Override public int hashCode() { return Objects.hash(count, deploymentId); }
Aggregated information on deployment ids and the number of related resources
hashCode
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMapping.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMapping.java
Apache-2.0
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof DeploymentMapping)) { return false; } DeploymentMapping other = (DeploymentMapping) obj; return count == other.count && Objects.equals(deploymentId, other.deploymentId); }
Aggregated information on deployment ids and the number of related resources
equals
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMapping.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMapping.java
Apache-2.0
public static DeploymentMappings of(DeploymentMapping mapping) { DeploymentMappings mappings = new DeploymentMappings(); mappings.add(mapping); return mappings; }
List of aggregated information on deployment ids and the number of related resources
of
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMappings.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMappings.java
Apache-2.0
@Override public boolean add(DeploymentMapping mapping) { overallIdCount += mapping.getCount(); return super.add(mapping); }
List of aggregated information on deployment ids and the number of related resources
add
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMappings.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMappings.java
Apache-2.0
@Override public DeploymentMapping remove(int mappingIndex) { overallIdCount -= get(mappingIndex).getCount(); return super.remove(mappingIndex); }
List of aggregated information on deployment ids and the number of related resources
remove
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMappings.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMappings.java
Apache-2.0
@Override public boolean remove(Object mapping) { if (super.remove(mapping)) { overallIdCount -= ((DeploymentMapping) mapping).getCount(); return true; } return false; }
List of aggregated information on deployment ids and the number of related resources
remove
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMappings.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMappings.java
Apache-2.0
public int getOverallIdCount() { return overallIdCount; }
List of aggregated information on deployment ids and the number of related resources
getOverallIdCount
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMappings.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/DeploymentMappings.java
Apache-2.0
public String getDeleteReason() { return deleteReason; }
Configuration object that is passed to the Job that will actually perform execution of deletion. <p> This object will be serialized and persisted as run will be performed asynchronously. @author Askar Akhmerov @see org.camunda.bpm.engine.impl.batch.deletion.DeleteProcessInstanceBatchConfigurationJsonConverter
getDeleteReason
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfiguration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfiguration.java
Apache-2.0
public void setDeleteReason(String deleteReason) { this.deleteReason = deleteReason; }
Configuration object that is passed to the Job that will actually perform execution of deletion. <p> This object will be serialized and persisted as run will be performed asynchronously. @author Askar Akhmerov @see org.camunda.bpm.engine.impl.batch.deletion.DeleteProcessInstanceBatchConfigurationJsonConverter
setDeleteReason
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfiguration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfiguration.java
Apache-2.0
public boolean isSkipCustomListeners() { return skipCustomListeners; }
Configuration object that is passed to the Job that will actually perform execution of deletion. <p> This object will be serialized and persisted as run will be performed asynchronously. @author Askar Akhmerov @see org.camunda.bpm.engine.impl.batch.deletion.DeleteProcessInstanceBatchConfigurationJsonConverter
isSkipCustomListeners
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfiguration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfiguration.java
Apache-2.0
public boolean isSkipSubprocesses() { return skipSubprocesses; }
Configuration object that is passed to the Job that will actually perform execution of deletion. <p> This object will be serialized and persisted as run will be performed asynchronously. @author Askar Akhmerov @see org.camunda.bpm.engine.impl.batch.deletion.DeleteProcessInstanceBatchConfigurationJsonConverter
isSkipSubprocesses
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfiguration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfiguration.java
Apache-2.0
public void setSkipSubprocesses(boolean skipSubprocesses) { this.skipSubprocesses = skipSubprocesses; }
Configuration object that is passed to the Job that will actually perform execution of deletion. <p> This object will be serialized and persisted as run will be performed asynchronously. @author Askar Akhmerov @see org.camunda.bpm.engine.impl.batch.deletion.DeleteProcessInstanceBatchConfigurationJsonConverter
setSkipSubprocesses
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfiguration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfiguration.java
Apache-2.0
public boolean isSkipIoMappings() { return skipIoMappings; }
Configuration object that is passed to the Job that will actually perform execution of deletion. <p> This object will be serialized and persisted as run will be performed asynchronously. @author Askar Akhmerov @see org.camunda.bpm.engine.impl.batch.deletion.DeleteProcessInstanceBatchConfigurationJsonConverter
isSkipIoMappings
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfiguration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfiguration.java
Apache-2.0
public void setSkipIoMappings(boolean skipIoMappings) { this.skipIoMappings = skipIoMappings; }
Configuration object that is passed to the Job that will actually perform execution of deletion. <p> This object will be serialized and persisted as run will be performed asynchronously. @author Askar Akhmerov @see org.camunda.bpm.engine.impl.batch.deletion.DeleteProcessInstanceBatchConfigurationJsonConverter
setSkipIoMappings
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfiguration.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfiguration.java
Apache-2.0
@Override public JsonObject writeConfiguration(DeleteProcessInstanceBatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addField(json, DELETE_REASON, configuration.getDeleteReason()); JsonUtil.addListField(json, PROCESS_INSTANCE_ID_MAPPINGS, DeploymentMappingJsonConver...
Perform serialization of DeleteProcessInstanceBatchConfiguration into JSON format. @author Askar Akhmerov
writeConfiguration
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfigurationJsonConverter.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfigurationJsonConverter.java
Apache-2.0
@Override public DeleteProcessInstanceBatchConfiguration readConfiguration(JsonObject json) { DeleteProcessInstanceBatchConfiguration configuration = new DeleteProcessInstanceBatchConfiguration( readProcessInstanceIds(json), readIdMappings(json), null, JsonUtil.getBoolean(json, SKI...
Perform serialization of DeleteProcessInstanceBatchConfiguration into JSON format. @author Askar Akhmerov
readConfiguration
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfigurationJsonConverter.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfigurationJsonConverter.java
Apache-2.0
protected List<String> readProcessInstanceIds(JsonObject jsonObject) { return JsonUtil.asStringList(JsonUtil.getArray(jsonObject, PROCESS_INSTANCE_IDS)); }
Perform serialization of DeleteProcessInstanceBatchConfiguration into JSON format. @author Askar Akhmerov
readProcessInstanceIds
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfigurationJsonConverter.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfigurationJsonConverter.java
Apache-2.0
protected DeploymentMappings readIdMappings(JsonObject json) { return JsonUtil.asList(JsonUtil.getArray(json, PROCESS_INSTANCE_ID_MAPPINGS), DeploymentMappingJsonConverter.INSTANCE, DeploymentMappings::new); }
Perform serialization of DeleteProcessInstanceBatchConfiguration into JSON format. @author Askar Akhmerov
readIdMappings
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfigurationJsonConverter.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/deletion/DeleteProcessInstanceBatchConfigurationJsonConverter.java
Apache-2.0
public String getType() { return Batch.TYPE_CORRELATE_MESSAGE; }
Job handler for message correlation jobs. The jobs correlate a message to a list of process instances.
getType
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/message/MessageCorrelationBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/message/MessageCorrelationBatchJobHandler.java
Apache-2.0
public JobDeclaration<BatchJobContext, MessageEntity> getJobDeclaration() { return JOB_DECLARATION; }
Job handler for message correlation jobs. The jobs correlate a message to a list of process instances.
getJobDeclaration
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/message/MessageCorrelationBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/message/MessageCorrelationBatchJobHandler.java
Apache-2.0
protected MessageCorrelationBatchConfigurationJsonConverter getJsonConverterInstance() { return MessageCorrelationBatchConfigurationJsonConverter.INSTANCE; }
Job handler for message correlation jobs. The jobs correlate a message to a list of process instances.
getJsonConverterInstance
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/message/MessageCorrelationBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/message/MessageCorrelationBatchJobHandler.java
Apache-2.0
@Override protected MessageCorrelationBatchConfiguration createJobConfiguration(MessageCorrelationBatchConfiguration configuration, List<String> processIdsForJob) { return new MessageCorrelationBatchConfiguration( processIdsForJob, configuration.getMessageName(), configuration.getBatchId()...
Job handler for message correlation jobs. The jobs correlate a message to a list of process instances.
createJobConfiguration
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/message/MessageCorrelationBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/message/MessageCorrelationBatchJobHandler.java
Apache-2.0
@Override protected void postProcessJob(MessageCorrelationBatchConfiguration configuration, JobEntity job, MessageCorrelationBatchConfiguration jobConfiguration) { // if there is only one process instance to adjust, set its ID to the job so exclusive scheduling is possible if (jobConfiguration.getIds() != nul...
Job handler for message correlation jobs. The jobs correlate a message to a list of process instances.
postProcessJob
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/message/MessageCorrelationBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/message/MessageCorrelationBatchJobHandler.java
Apache-2.0
@Override public void executeHandler(MessageCorrelationBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, String tenantId) { String batchId = batchConfiguration.getBatchId(); M...
Job handler for message correlation jobs. The jobs correlate a message to a list of process instances.
executeHandler
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/message/MessageCorrelationBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/message/MessageCorrelationBatchJobHandler.java
Apache-2.0
protected void setVariables(String batchId, MessageCorrelationBuilder correlationBuilder, CommandContext commandContext) { Map<String, ?> variables = null; if (batchId != null) { variables = VariableUtil.findBatchVariablesSerialized(batchId, comm...
Job handler for message correlation jobs. The jobs correlate a message to a list of process instances.
setVariables
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/batch/message/MessageCorrelationBatchJobHandler.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/batch/message/MessageCorrelationBatchJobHandler.java
Apache-2.0
@Override public void doLeave(ActivityExecution execution) { PvmActivity currentActivity = execution.getActivity(); ActivityImpl compensationHandler = ((ActivityImpl) currentActivity).findCompensationHandler(); // subscription for compensation event subprocess is already created if(compensationHandl...
Subclasses that call leave() will first pass through this method, before the regular {@link FlowNodeActivityBehavior#leave(ActivityExecution)} is called.
doLeave
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/AbstractBpmnActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/AbstractBpmnActivityBehavior.java
Apache-2.0
protected boolean isCompensationEventSubprocess(ActivityImpl activity) { return activity.isCompensationHandler() && activity.isSubProcessScope() && activity.isTriggeredByEvent(); }
Subclasses that call leave() will first pass through this method, before the regular {@link FlowNodeActivityBehavior#leave(ActivityExecution)} is called.
isCompensationEventSubprocess
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/AbstractBpmnActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/AbstractBpmnActivityBehavior.java
Apache-2.0
protected void createCompensateEventSubscription(ActivityExecution execution, ActivityImpl compensationHandler) { // the compensate event subscription is created at subprocess or miBody of the the current activity PvmActivity currentActivity = execution.getActivity(); ActivityExecution scopeExecution = exec...
Subclasses that call leave() will first pass through this method, before the regular {@link FlowNodeActivityBehavior#leave(ActivityExecution)} is called.
createCompensateEventSubscription
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/AbstractBpmnActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/AbstractBpmnActivityBehavior.java
Apache-2.0
protected void executeWithErrorPropagation(ActivityExecution execution, Callable<Void> toExecute) throws Exception { String activityInstanceId = execution.getActivityInstanceId(); try { toExecute.call(); } catch (Exception ex) { if (activityInstanceId.equals(execution.getActivityInstanceId())) {...
Takes an {@link ActivityExecution} and an {@link Callable} and wraps the call to the Callable with the proper error propagation. This method also makes sure that exceptions not caught by following activities in the process will be thrown and not propagated. @param execution @param toExecute @throws Exception
executeWithErrorPropagation
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/AbstractBpmnActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/AbstractBpmnActivityBehavior.java
Apache-2.0
@Override public void signal(ActivityExecution execution, String signalName, Object signalData) throws Exception { if(SIGNAL_COMPENSATION_DONE.equals(signalName)) { signalCompensationDone(execution); } else { super.signal(execution, signalName, signalData); } }
Takes an {@link ActivityExecution} and an {@link Callable} and wraps the call to the Callable with the proper error propagation. This method also makes sure that exceptions not caught by following activities in the process will be thrown and not propagated. @param execution @param toExecute @throws Exception
signal
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/AbstractBpmnActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/AbstractBpmnActivityBehavior.java
Apache-2.0
protected void signalCompensationDone(ActivityExecution execution) { // default behavior is to join compensating executions and propagate the signal if all executions have compensated // only wait for non-event-scope executions cause a compensation event subprocess consume the compensation event and // do ...
Takes an {@link ActivityExecution} and an {@link Callable} and wraps the call to the Callable with the proper error propagation. This method also makes sure that exceptions not caught by following activities in the process will be thrown and not propagated. @param execution @param toExecute @throws Exception
signalCompensationDone
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/AbstractBpmnActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/AbstractBpmnActivityBehavior.java
Apache-2.0
@Override public ConditionalEventDefinition getConditionalEventDefinition() { return conditionalEvent; }
@author Christopher Zell <christopher.zell@camunda.com>
getConditionalEventDefinition
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/BoundaryConditionalEventActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/BoundaryConditionalEventActivityBehavior.java
Apache-2.0
@Override public void leaveOnSatisfiedCondition(final EventSubscriptionEntity eventSubscription, final VariableEvent variableEvent) { final PvmExecutionImpl execution = eventSubscription.getExecution(); if (execution != null && !execution.isEnded() && execution.isScope() && conditionalEvent.tryEvalua...
@author Christopher Zell <christopher.zell@camunda.com>
leaveOnSatisfiedCondition
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/BoundaryConditionalEventActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/BoundaryConditionalEventActivityBehavior.java
Apache-2.0
public void performDefaultOutgoingBehavior(ActivityExecution activityExecution) { performOutgoingBehavior(activityExecution, true); }
Performs the default outgoing BPMN 2.0 behavior, which is having parallel paths of executions for the outgoing sequence flow. More precisely: every sequence flow that has a condition which evaluates to true (or which doesn't have a condition), is selected for continuation of the process instance. If multiple sequencer...
performDefaultOutgoingBehavior
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/BpmnActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/BpmnActivityBehavior.java
Apache-2.0
public void performIgnoreConditionsOutgoingBehavior(ActivityExecution activityExecution) { performOutgoingBehavior(activityExecution, false); }
Performs the default outgoing BPMN 2.0 behavior (@see {@link #performDefaultOutgoingBehavior(ActivityExecution)}), but without checking the conditions on the outgoing sequence flow. This means that every outgoing sequence flow is selected for continuing the process instance, regardless of having a condition or not. In...
performIgnoreConditionsOutgoingBehavior
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/BpmnActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/BpmnActivityBehavior.java
Apache-2.0
protected void performOutgoingBehavior(ActivityExecution execution, boolean checkConditions) { LOG.leavingActivity(execution.getActivity().getId()); String defaultSequenceFlow = (String) execution.getActivity().getProperty("default"); List<PvmTransition> transitionsToTake = new ArrayList<>(); ...
Actual implementation of leaving an activity. @param execution The current execution context @param checkConditions Whether or not to check conditions before determining whether or not to take a transition.
performOutgoingBehavior
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/BpmnActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/BpmnActivityBehavior.java
Apache-2.0
protected boolean isAncestorCompensationThrowing(ActivityExecution execution) { ActivityExecution parent = execution.getParent(); while (parent != null) { if (CompensationBehavior.isCompensationThrowing((PvmExecutionImpl) parent)) { return true; } parent = parent.getParent(); } ...
Actual implementation of leaving an activity. @param execution The current execution context @param checkConditions Whether or not to check conditions before determining whether or not to take a transition.
isAncestorCompensationThrowing
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/BpmnActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/BpmnActivityBehavior.java
Apache-2.0
protected DelegateVariableMapping getDelegateVariableMapping(Object instance) { if (instance instanceof DelegateVariableMapping) { return (DelegateVariableMapping) instance; } else { throw LOG.missingDelegateVariableMappingParentClassException( instance.getClass().getName(), ...
The class name of the delegated variable mapping, which should be used.
getDelegateVariableMapping
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
Apache-2.0
protected DelegateVariableMapping resolveDelegation(ActivityExecution execution) { Object delegate = resolveDelegateClass(execution); return delegate != null ? getDelegateVariableMapping(delegate) : null; }
The class name of the delegated variable mapping, which should be used.
resolveDelegation
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
Apache-2.0
public Object resolveDelegateClass(final ActivityExecution execution) { ProcessApplicationReference targetProcessApplication = ProcessApplicationContextUtil.getTargetProcessApplication((ExecutionEntity) execution); if (ProcessApplicationContextUtil.requiresContextSwitch(targetProcessApplication)) { ...
The class name of the delegated variable mapping, which should be used.
resolveDelegateClass
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
Apache-2.0
@Override public Object call() throws Exception { return resolveDelegateClass(execution); }
The class name of the delegated variable mapping, which should be used.
call
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
Apache-2.0
protected Object instantiateDelegateClass(ActivityExecution execution) { Object delegate = null; if (expression != null) { delegate = expression.getValue(execution); } else if (className != null) { delegate = ClassDelegateUtil.instantiateDelegate(className, null); } return delegate; }
The class name of the delegated variable mapping, which should be used.
instantiateDelegateClass
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
Apache-2.0
@Override public void execute(final ActivityExecution execution) throws Exception { final VariableMap variables = getInputVariables(execution); final DelegateVariableMapping varMapping = resolveDelegation(execution); if (varMapping != null) { invokeVarMappingDelegation(new DelegateInvocation(execut...
The class name of the delegated variable mapping, which should be used.
execute
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
Apache-2.0
@Override protected void invoke() throws Exception { varMapping.mapInputVariables(execution, variables); }
The class name of the delegated variable mapping, which should be used.
invoke
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
Apache-2.0
@Override public void passOutputVariables(final ActivityExecution execution, final VariableScope subInstance) { // only data. no control flow available on this execution. VariableMap variables = filterVariables(getOutputVariables(subInstance)); VariableMap localVariables = getOutputVariablesLocal(subInsta...
The class name of the delegated variable mapping, which should be used.
passOutputVariables
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
Apache-2.0
@Override protected void invoke() throws Exception { varMapping.mapOutputVariables(execution, subInstance); }
The class name of the delegated variable mapping, which should be used.
invoke
java
camunda/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/behavior/CallableElementActivityBehavior.java
Apache-2.0