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 |
|---|---|---|---|---|---|---|---|
protected List<ResourceEntity> getResourcesByName(Map<String, Set<String>> resourcesByName, CommandContext commandContext) {
List<ResourceEntity> result = new ArrayList<>();
ResourceManager resourceManager = commandContext.getResourceManager();
for (String deploymentId : resourcesByName.keySet()) {
... | @author Tom Baeyens
@author Joram Barrez
@author Thorben Lindhauer
@author Daniel Meyer | getResourcesByName | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | Apache-2.0 |
protected List<? extends ProcessDefinition> getDeployedProcesses(CommandContext commandContext, DeploymentWithDefinitions deployment) {
List<? extends ProcessDefinition> deployedProcessDefinitions = deployment.getDeployedProcessDefinitions();
if (deployedProcessDefinitions == null) {
// existing deploym... | @author Tom Baeyens
@author Joram Barrez
@author Thorben Lindhauer
@author Daniel Meyer | getDeployedProcesses | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | Apache-2.0 |
protected String[] getProcessDefinitionsFromResources(CommandContext commandContext,
DeploymentEntity deploymentToRegister,
Collection ignoredResources) {
Set<String> processDefinitionKeys = new HashSet<>();
// get process definition keys for already available process definitions
processDefini... | @author Tom Baeyens
@author Joram Barrez
@author Thorben Lindhauer
@author Daniel Meyer | getProcessDefinitionsFromResources | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | Apache-2.0 |
protected Set<String> parseProcessDefinitionKeys(Collection<Resource> resources) {
Set<String> processDefinitionKeys = new HashSet<>(resources.size());
for (Resource resource : resources) {
if (isBpmnResource(resource)) {
ByteArrayInputStream byteStream = new ByteArrayInputStream(resource.getByt... | @author Tom Baeyens
@author Joram Barrez
@author Thorben Lindhauer
@author Daniel Meyer | parseProcessDefinitionKeys | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | Apache-2.0 |
protected Set<String> getAllDeploymentIds(DeploymentBuilderImpl deploymentBuilder) {
Set<String> result = new HashSet<>();
String nameFromDeployment = deploymentBuilder.getNameFromDeployment();
if (nameFromDeployment != null && !nameFromDeployment.isEmpty()) {
result.add(nameFromDeployment);
}
... | @author Tom Baeyens
@author Joram Barrez
@author Thorben Lindhauer
@author Daniel Meyer | getAllDeploymentIds | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | Apache-2.0 |
protected void checkDuplicateResourceName(List<ResourceEntity> resources) {
Map<String, ResourceEntity> resourceMap = new HashMap<>();
for (ResourceEntity resource : resources) {
String name = resource.getName();
ResourceEntity duplicate = resourceMap.get(name);
if (duplicate != null) {
... | @author Tom Baeyens
@author Joram Barrez
@author Thorben Lindhauer
@author Daniel Meyer | checkDuplicateResourceName | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | Apache-2.0 |
protected void checkCreateAndReadDeployments(CommandContext commandContext, Set<String> deploymentIds) {
for(CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) {
checker.checkCreateDeployment();
for (String deploymentId : deploymentIds) {
checker.checkR... | @author Tom Baeyens
@author Joram Barrez
@author Thorben Lindhauer
@author Daniel Meyer | checkCreateAndReadDeployments | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | Apache-2.0 |
protected boolean isBpmnResource(Resource resourceEntity) {
return StringUtil.hasAnySuffix(resourceEntity.getName(), BpmnDeployer.BPMN_RESOURCE_SUFFIXES);
} | @author Tom Baeyens
@author Joram Barrez
@author Thorben Lindhauer
@author Daniel Meyer | isBpmnResource | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | Apache-2.0 |
protected boolean isCmmnResource(Resource resourceEntity) {
return StringUtil.hasAnySuffix(resourceEntity.getName(), CmmnDeployer.CMMN_RESOURCE_SUFFIXES);
} | @author Tom Baeyens
@author Joram Barrez
@author Thorben Lindhauer
@author Daniel Meyer | isCmmnResource | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | Apache-2.0 |
protected void ensureDeploymentsWithIdsExists(Set<String> expected, List<DeploymentEntity> actual) {
Map<String, DeploymentEntity> deploymentMap = new HashMap<>();
for (DeploymentEntity deployment : actual) {
deploymentMap.put(deployment.getId(), deployment);
}
List<String> missingDeployments = g... | @author Tom Baeyens
@author Joram Barrez
@author Thorben Lindhauer
@author Daniel Meyer | ensureDeploymentsWithIdsExists | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | Apache-2.0 |
protected void ensureResourcesWithIdsExist(String deploymentId, Set<String> expectedIds, List<ResourceEntity> actual) {
Map<String, ResourceEntity> resources = new HashMap<>();
for (ResourceEntity resource : actual) {
resources.put(resource.getId(), resource);
}
ensureResourcesWithKeysExist(deploy... | @author Tom Baeyens
@author Joram Barrez
@author Thorben Lindhauer
@author Daniel Meyer | ensureResourcesWithIdsExist | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | Apache-2.0 |
protected void ensureResourcesWithNamesExist(String deploymentId, Set<String> expectedNames, List<ResourceEntity> actual) {
Map<String, ResourceEntity> resources = new HashMap<>();
for (ResourceEntity resource : actual) {
resources.put(resource.getName(), resource);
}
ensureResourcesWithKeysExist(... | @author Tom Baeyens
@author Joram Barrez
@author Thorben Lindhauer
@author Daniel Meyer | ensureResourcesWithNamesExist | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | Apache-2.0 |
protected void ensureResourcesWithKeysExist(String deploymentId, Set<String> expectedKeys, Map<String, ResourceEntity> actual, String valueProperty) {
List<String> missingResources = getMissingElements(expectedKeys, actual);
if (!missingResources.isEmpty()) {
StringBuilder builder = new StringBuilder();
... | @author Tom Baeyens
@author Joram Barrez
@author Thorben Lindhauer
@author Daniel Meyer | ensureResourcesWithKeysExist | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeployCmd.java | Apache-2.0 |
@Override
public HistoryLevel execute(final CommandContext commandContext) {
final Integer databaseHistoryLevel = HistoryLevelSetupCommand.databaseHistoryLevel(commandContext);
HistoryLevel result = null;
if (databaseHistoryLevel != null) {
for (final HistoryLevel historyLevel : historyLevels) {
... | Read the already configured historyLevel from DB and map to given list of total levels. | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DetermineHistoryLevelCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DetermineHistoryLevelCmd.java | Apache-2.0 |
@Override
public List<ProcessInstance> execute(final CommandContext commandContext) {
final ConditionHandler conditionHandler = commandContext.getProcessEngineConfiguration().getConditionHandler();
final ConditionSet conditionSet = new ConditionSet(builder);
List<ConditionHandlerResult> results = conditi... | Evaluates the conditions to start processes by conditional start events
@author Yana Vasileva | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/EvaluateStartConditionCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/EvaluateStartConditionCmd.java | Apache-2.0 |
protected void checkAuthorization(CommandContext commandContext, ConditionHandlerResult result) {
for (CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) {
ProcessDefinitionEntity definition = result.getProcessDefinition();
checker.checkCreateProcessInstance(de... | Evaluates the conditions to start processes by conditional start events
@author Yana Vasileva | checkAuthorization | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/EvaluateStartConditionCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/EvaluateStartConditionCmd.java | Apache-2.0 |
protected ProcessInstance instantiateProcess(CommandContext commandContext, ConditionHandlerResult result) {
ProcessDefinitionEntity processDefinitionEntity = result.getProcessDefinition();
ActivityImpl startEvent = processDefinitionEntity.findActivity(result.getActivity().getActivityId());
ExecutionEntity... | Evaluates the conditions to start processes by conditional start events
@author Yana Vasileva | instantiateProcess | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/EvaluateStartConditionCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/EvaluateStartConditionCmd.java | Apache-2.0 |
public Void execute(CommandContext commandContext) {
ensureNotNull("jobId", jobId);
final JobEntity job = commandContext.getDbEntityManager().selectById(JobEntity.class, jobId);
final ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration();
final IdentitySer... | @author Tom Baeyens
@author Daniel Meyer | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/ExecuteJobsCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/ExecuteJobsCmd.java | Apache-2.0 |
@Override
public List<LockedExternalTask> execute(CommandContext commandContext) {
validateInput();
for (TopicFetchInstruction instruction : fetchInstructions.values()) {
instruction.ensureVariablesInitialized();
}
List<ExternalTaskEntity> externalTasks = commandContext
.getExternalTaskM... | @author Thorben Lindhauer
@author Christopher Zell | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/FetchExternalTasksCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/FetchExternalTasksCmd.java | Apache-2.0 |
protected void filterOnOptimisticLockingFailure(CommandContext commandContext, final List<LockedExternalTask> tasks) {
commandContext.getDbEntityManager().registerOptimisticLockingListener(new OptimisticLockingListener() {
@Override
public Class<? extends DbEntity> getEntityType() {
return Exte... | @author Thorben Lindhauer
@author Christopher Zell | filterOnOptimisticLockingFailure | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/FetchExternalTasksCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/FetchExternalTasksCmd.java | Apache-2.0 |
@Override
public Class<? extends DbEntity> getEntityType() {
return ExternalTaskEntity.class;
} | @author Thorben Lindhauer
@author Christopher Zell | getEntityType | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/FetchExternalTasksCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/FetchExternalTasksCmd.java | Apache-2.0 |
@Override
public OptimisticLockingResult failedOperation(DbOperation operation) {
if (operation instanceof DbEntityOperation) {
DbEntityOperation dbEntityOperation = (DbEntityOperation) operation;
DbEntity dbEntity = dbEntityOperation.getEntity();
boolean failedOperationEnt... | @author Thorben Lindhauer
@author Christopher Zell | failedOperation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/FetchExternalTasksCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/FetchExternalTasksCmd.java | Apache-2.0 |
protected void validateInput() {
EnsureUtil.ensureNotNull("workerId", workerId);
EnsureUtil.ensureGreaterThanOrEqual("maxResults", maxResults, 0);
for (TopicFetchInstruction instruction : fetchInstructions.values()) {
EnsureUtil.ensureNotNull("topicName", instruction.getTopicName());
EnsureUtil... | @author Thorben Lindhauer
@author Christopher Zell | validateInput | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/FetchExternalTasksCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/FetchExternalTasksCmd.java | Apache-2.0 |
protected List<QueryOrderingProperty> orderingPropertiesWithPriority(boolean usePriority,
List<QueryOrderingProperty> queryOrderingProperties) {
List<QueryOrderingProperty> results = new ArrayList<>();
// Priority needs to be the first item... | @author Thorben Lindhauer
@author Christopher Zell | orderingPropertiesWithPriority | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/FetchExternalTasksCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/FetchExternalTasksCmd.java | Apache-2.0 |
public ActivityInstance execute(CommandContext commandContext) {
ensureNotNull("processInstanceId", processInstanceId);
List<ExecutionEntity> executionList = loadProcessInstance(processInstanceId, commandContext);
if (executionList.isEmpty()) {
return null;
}
checkGetActivityInstance(proces... | <p>Creates an activity instance tree according to the following strategy:
<ul>
<li> Event scope executions are not considered at all
<li> For every leaf execution, generate an activity/transition instance;
the activity instance id is set in the leaf execution and the parent instance id is set in the parent execu... | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | Apache-2.0 |
protected void checkGetActivityInstance(String processInstanceId, CommandContext commandContext) {
for(CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) {
checker.checkReadProcessInstance(processInstanceId);
}
} | <p>Creates an activity instance tree according to the following strategy:
<ul>
<li> Event scope executions are not considered at all
<li> For every leaf execution, generate an activity/transition instance;
the activity instance id is set in the leaf execution and the parent instance id is set in the parent execu... | checkGetActivityInstance | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | Apache-2.0 |
protected void orderById(List<ExecutionEntity> leaves) {
Collections.sort(leaves, ExecutionIdComparator.INSTANCE);
} | <p>Creates an activity instance tree according to the following strategy:
<ul>
<li> Event scope executions are not considered at all
<li> For every leaf execution, generate an activity/transition instance;
the activity instance id is set in the leaf execution and the parent instance id is set in the parent execu... | orderById | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | Apache-2.0 |
protected ActivityInstanceImpl createActivityInstance(PvmExecutionImpl scopeExecution, ScopeImpl scope,
String activityInstanceId, String parentActivityInstanceId,
Map<String, List<Incident>> incidentsByExecution) {
ActivityInstanceImpl actInst = new ActivityInstanceImpl();
actInst.setId(activityIn... | <p>Creates an activity instance tree according to the following strategy:
<ul>
<li> Event scope executions are not considered at all
<li> For every leaf execution, generate an activity/transition instance;
the activity instance id is set in the leaf execution and the parent instance id is set in the parent execu... | createActivityInstance | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | Apache-2.0 |
protected TransitionInstanceImpl createTransitionInstance(PvmExecutionImpl execution,
Map<String, List<Incident>> incidentsByExecution) {
TransitionInstanceImpl transitionInstance = new TransitionInstanceImpl();
// can use execution id as persistent ID for transition as an execution
// can execute as... | <p>Creates an activity instance tree according to the following strategy:
<ul>
<li> Event scope executions are not considered at all
<li> For every leaf execution, generate an activity/transition instance;
the activity instance id is set in the leaf execution and the parent instance id is set in the parent execu... | createTransitionInstance | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | Apache-2.0 |
protected void populateChildInstances(Map<String, ActivityInstanceImpl> activityInstances,
Map<String, TransitionInstanceImpl> transitionInstances) {
Map<ActivityInstanceImpl, List<ActivityInstanceImpl>> childActivityInstances
= new HashMap<ActivityInstanceImpl, List<ActivityInstanceImpl>>();
Map<Ac... | <p>Creates an activity instance tree according to the following strategy:
<ul>
<li> Event scope executions are not considered at all
<li> For every leaf execution, generate an activity/transition instance;
the activity instance id is set in the leaf execution and the parent instance id is set in the parent execu... | populateChildInstances | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | Apache-2.0 |
protected <S, T> void putListElement(Map<S, List<T>> mapOfLists, S key, T listElement) {
List<T> list = mapOfLists.get(key);
if (list == null) {
list = new ArrayList<T>();
mapOfLists.put(key, list);
}
list.add(listElement);
} | <p>Creates an activity instance tree according to the following strategy:
<ul>
<li> Event scope executions are not considered at all
<li> For every leaf execution, generate an activity/transition instance;
the activity instance id is set in the leaf execution and the parent instance id is set in the parent execu... | putListElement | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | Apache-2.0 |
protected ExecutionEntity filterProcessInstance(List<ExecutionEntity> executionList) {
for (ExecutionEntity execution : executionList) {
if (execution.isProcessInstanceExecution()) {
return execution;
}
}
throw new ProcessEngineException("Could not determine process instance execution")... | <p>Creates an activity instance tree according to the following strategy:
<ul>
<li> Event scope executions are not considered at all
<li> For every leaf execution, generate an activity/transition instance;
the activity instance id is set in the leaf execution and the parent instance id is set in the parent execu... | filterProcessInstance | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | Apache-2.0 |
protected List<ExecutionEntity> filterLeaves(List<ExecutionEntity> executionList) {
List<ExecutionEntity> leaves = new ArrayList<ExecutionEntity>();
for (ExecutionEntity execution : executionList) {
// although executions executing throwing compensation events are not leaves in the tree,
// they are... | <p>Creates an activity instance tree according to the following strategy:
<ul>
<li> Event scope executions are not considered at all
<li> For every leaf execution, generate an activity/transition instance;
the activity instance id is set in the leaf execution and the parent instance id is set in the parent execu... | filterLeaves | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | Apache-2.0 |
protected List<ExecutionEntity> filterNonEventScopeExecutions(List<ExecutionEntity> executionList) {
List<ExecutionEntity> nonEventScopeExecutions = new ArrayList<ExecutionEntity>();
for (ExecutionEntity execution : executionList) {
if (!execution.isEventScope()) {
nonEventScopeExecutions.add(exec... | <p>Creates an activity instance tree according to the following strategy:
<ul>
<li> Event scope executions are not considered at all
<li> For every leaf execution, generate an activity/transition instance;
the activity instance id is set in the leaf execution and the parent instance id is set in the parent execu... | filterNonEventScopeExecutions | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | Apache-2.0 |
protected List<ExecutionEntity> loadProcessInstance(String processInstanceId, CommandContext commandContext) {
List<ExecutionEntity> result = null;
// first try to load from cache
// check whether the process instance is already (partially) loaded in command context
List<ExecutionEntity> cachedExecuti... | <p>Creates an activity instance tree according to the following strategy:
<ul>
<li> Event scope executions are not considered at all
<li> For every leaf execution, generate an activity/transition instance;
the activity instance id is set in the leaf execution and the parent instance id is set in the parent execu... | loadProcessInstance | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | Apache-2.0 |
protected List<ExecutionEntity> loadFromDb(final String processInstanceId, final CommandContext commandContext) {
List<ExecutionEntity> executions = commandContext.getExecutionManager().findExecutionsByProcessInstanceId(processInstanceId);
ExecutionEntity processInstance = commandContext.getExecutionManager().... | <p>Creates an activity instance tree according to the following strategy:
<ul>
<li> Event scope executions are not considered at all
<li> For every leaf execution, generate an activity/transition instance;
the activity instance id is set in the leaf execution and the parent instance id is set in the parent execu... | loadFromDb | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | Apache-2.0 |
protected void loadChildExecutionsFromCache(ExecutionEntity execution, List<ExecutionEntity> childExecutions) {
List<ExecutionEntity> childrenOfThisExecution = execution.getExecutions();
if(childrenOfThisExecution != null) {
childExecutions.addAll(childrenOfThisExecution);
for (ExecutionEntity child... | Loads all executions that are part of this process instance tree from the dbSqlSession cache.
(optionally querying the db if a child is not already loaded.
@param execution the current root execution (already contained in childExecutions)
@param childExecutions the list in which all child executions should be collecte... | loadChildExecutionsFromCache | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | Apache-2.0 |
protected Map<String, List<Incident>> groupIncidentIdsByExecutionId(CommandContext commandContext) {
List<IncidentEntity> incidents = commandContext.getIncidentManager().findIncidentsByProcessInstance(processInstanceId);
Map<String, List<Incident>> result = new HashMap<>();
for (IncidentEntity incidentEntit... | Loads all executions that are part of this process instance tree from the dbSqlSession cache.
(optionally querying the db if a child is not already loaded.
@param execution the current root execution (already contained in childExecutions)
@param childExecutions the list in which all child executions should be collecte... | groupIncidentIdsByExecutionId | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | Apache-2.0 |
protected List<String> getIncidentIds(Map<String, List<Incident>> incidents,
PvmExecutionImpl execution) {
List<String> incidentIds = new ArrayList<>();
List<Incident> incidentList = incidents.get(execution.getId());
if (incidentList != null) {
for (Incident incident : incidentList) {
in... | Loads all executions that are part of this process instance tree from the dbSqlSession cache.
(optionally querying the db if a child is not already loaded.
@param execution the current root execution (already contained in childExecutions)
@param childExecutions the list in which all child executions should be collecte... | getIncidentIds | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | Apache-2.0 |
protected List<Incident> getIncidents(Map<String, List<Incident>> incidents,
PvmExecutionImpl execution) {
List<Incident> incidentList = incidents.get(execution.getId());
if (incidentList != null) {
return incidentList;
} else {
return Collections.emptyList();
}
} | Loads all executions that are part of this process instance tree from the dbSqlSession cache.
(optionally querying the db if a child is not already loaded.
@param execution the current root execution (already contained in childExecutions)
@param childExecutions the list in which all child executions should be collecte... | getIncidents | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | Apache-2.0 |
@Override
public int compare(ExecutionEntity o1, ExecutionEntity o2) {
return o1.getId().compareTo(o2.getId());
} | Loads all executions that are part of this process instance tree from the dbSqlSession cache.
(optionally querying the db if a child is not already loaded.
@param execution the current root execution (already contained in childExecutions)
@param childExecutions the list in which all child executions should be collecte... | compare | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetActivityInstanceCmd.java | Apache-2.0 |
public BpmnModelInstance execute(CommandContext commandContext) {
ProcessEngineConfigurationImpl configuration = Context.getProcessEngineConfiguration();
final DeploymentCache deploymentCache = configuration.getDeploymentCache();
ProcessDefinitionEntity processDefinition = deploymentCache.findDeployedProce... | Gives access to a deploy BPMN model instance which can be accessed by
the BPMN model API.
@author Sebastian Menski | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetDeploymentBpmnModelInstanceCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetDeploymentBpmnModelInstanceCmd.java | Apache-2.0 |
public InputStream execute(final CommandContext commandContext) {
ProcessDefinitionEntity processDefinition = Context
.getProcessEngineConfiguration()
.getDeploymentCache()
.findDeployedProcessDefinitionById(processDefinitionId);
for(CommandChecker checker : commandContext.g... | Gives access to a deployed process diagram, e.g., a PNG image, through a
stream of bytes.
@author Falko Menge | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetDeploymentProcessDiagramCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetDeploymentProcessDiagramCmd.java | Apache-2.0 |
public DiagramLayout execute(final CommandContext commandContext) {
ProcessDefinitionEntity processDefinition = Context
.getProcessEngineConfiguration()
.getDeploymentCache()
.findDeployedProcessDefinitionById(processDefinitionId);
for(CommandChecker checker : commandContext.getProcessE... | Provides positions and dimensions of elements in a process diagram as
provided by {@link GetDeploymentProcessDiagramCmd}.
This command requires a process model and a diagram image to be deployed.
@author Falko Menge | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetDeploymentProcessDiagramLayoutCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetDeploymentProcessDiagramLayoutCmd.java | Apache-2.0 |
public InputStream execute(final CommandContext commandContext) {
ProcessDefinitionEntity processDefinition = Context
.getProcessEngineConfiguration()
.getDeploymentCache()
.findDeployedProcessDefinitionById(processDefinitionId);
for(CommandChecker checker : commandContext.g... | Gives access to a deployed process model, e.g., a BPMN 2.0 XML file, through
a stream of bytes.
@author Falko Menge | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetDeploymentProcessModelCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetDeploymentProcessModelCmd.java | Apache-2.0 |
public VariableMap execute(CommandContext commandContext) {
ensureNotNull("executionId", executionId);
ExecutionEntity execution = commandContext
.getExecutionManager()
.findExecutionById(executionId);
ensureNotNull("execution " + executionId + " doesn't exist", "execution", execution);
c... | @author Tom Baeyens
@author Daniel Meyer | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetExecutionVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetExecutionVariablesCmd.java | Apache-2.0 |
protected void checkGetExecutionVariables(ExecutionEntity execution, CommandContext commandContext) {
for(CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) {
checker.checkReadProcessInstanceVariable(execution);
}
} | @author Tom Baeyens
@author Daniel Meyer | checkGetExecutionVariables | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetExecutionVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetExecutionVariablesCmd.java | Apache-2.0 |
public List<IdentityLink> execute(CommandContext commandContext) {
ensureNotNull("taskId", taskId);
TaskManager taskManager = commandContext.getTaskManager();
TaskEntity task = taskManager.findTaskById(taskId);
ensureNotNull("Cannot find task with id " + taskId, "task", task);
checkGetIdentityLink... | @author Joram Barrez
@author Falko Menge | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetIdentityLinksForTaskCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetIdentityLinksForTaskCmd.java | Apache-2.0 |
protected void checkGetIdentityLink(TaskEntity task, CommandContext commandContext) {
for (CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) {
checker.checkReadTask(task);
}
} | @author Joram Barrez
@author Falko Menge | checkGetIdentityLink | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetIdentityLinksForTaskCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetIdentityLinksForTaskCmd.java | Apache-2.0 |
public Object execute(CommandContext commandContext) {
ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration();
DeploymentCache deploymentCache = processEngineConfiguration.getDeploymentCache();
ProcessDefinitionEntity processDefinition = deploymentCache.findDeplo... | @author Tom Baeyens
@author Joram Barrez | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetRenderedStartFormCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetRenderedStartFormCmd.java | Apache-2.0 |
public Picture execute(CommandContext commandContext) {
ensureNotNull("userId", userId);
IdentityInfoEntity pictureInfo = commandContext.getIdentityInfoManager()
.findUserInfoByUserIdAndKey(userId, "picture");
if (pictureInfo != null) {
String pictureByteArrayId = pictureInfo.getValue();
... | @author Daniel Meyer
@author Tom Baeyens | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetUserPictureCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/GetUserPictureCmd.java | Apache-2.0 |
@Override
protected void validateInput() {
super.validateInput();
EnsureUtil.ensureNotNull("errorCode", errorCode);
} | The error code of the corresponding bpmn error. | validateInput | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleExternalTaskBpmnErrorCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleExternalTaskBpmnErrorCmd.java | Apache-2.0 |
@Override
public String getErrorMessageOnWrongWorkerAccess() {
return "Bpmn error of External Task " + externalTaskId + " cannot be reported by worker '" + workerId;
} | The error code of the corresponding bpmn error. | getErrorMessageOnWrongWorkerAccess | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleExternalTaskBpmnErrorCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleExternalTaskBpmnErrorCmd.java | Apache-2.0 |
@Override
public void execute(ExternalTaskEntity externalTask) {
externalTask.bpmnError(errorCode, errorMessage, variables);
} | The error code of the corresponding bpmn error. | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleExternalTaskBpmnErrorCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleExternalTaskBpmnErrorCmd.java | Apache-2.0 |
@Override
protected void validateInput() {
EnsureUtil.ensureNotNull("workerId", workerId);
} | Validates the current input of the command. | validateInput | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleExternalTaskCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleExternalTaskCmd.java | Apache-2.0 |
protected boolean validateWorkerViolation(ExternalTaskEntity externalTask) {
return !workerId.equals(externalTask.getWorkerId());
} | Validates the caller's workerId against the workerId of the external task. | validateWorkerViolation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleExternalTaskCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleExternalTaskCmd.java | Apache-2.0 |
@Override
public void execute(ExternalTaskEntity externalTask) {
externalTask.failed(errorMessage, errorDetails, retries, retryDuration, variables, localVariables);
} | Overloaded constructor to support short and full error messages
@param externalTaskId
@param workerId
@param errorMessage
@param errorDetails
@param retries
@param retryDuration | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleExternalTaskFailureCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleExternalTaskFailureCmd.java | Apache-2.0 |
@Override
protected void validateInput() {
super.validateInput();
EnsureUtil.ensureGreaterThanOrEqual("retries", retries, 0);
EnsureUtil.ensureGreaterThanOrEqual("retryDuration", retryDuration, 0);
} | Overloaded constructor to support short and full error messages
@param externalTaskId
@param workerId
@param errorMessage
@param errorDetails
@param retries
@param retryDuration | validateInput | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleExternalTaskFailureCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleExternalTaskFailureCmd.java | Apache-2.0 |
@Override
public String getErrorMessageOnWrongWorkerAccess() {
return "Failure of External Task " + externalTaskId + " cannot be reported by worker '" + workerId;
} | Overloaded constructor to support short and full error messages
@param externalTaskId
@param workerId
@param errorMessage
@param errorDetails
@param retries
@param retryDuration | getErrorMessageOnWrongWorkerAccess | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleExternalTaskFailureCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleExternalTaskFailureCmd.java | Apache-2.0 |
protected void validateInput() {
ensureNotEmpty(BadUserRequestException.class,"taskId", taskId);
ensureNotEmpty(BadUserRequestException.class, "errorCode", errorCode);
} | Command to handle a task BPMN error. | validateInput | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleTaskBpmnErrorCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleTaskBpmnErrorCmd.java | Apache-2.0 |
@Override
public Void execute(CommandContext commandContext) {
validateInput();
TaskEntity task = commandContext.getTaskManager().findTaskById(taskId);
ensureNotNull(NotFoundException.class,"Cannot find task with id " + taskId, "task", task);
for(CommandChecker checker : commandContext.getProcessEng... | Command to handle a task BPMN error. | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleTaskBpmnErrorCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/HandleTaskBpmnErrorCmd.java | Apache-2.0 |
@Override
public Boolean execute(CommandContext commandContext) {
return false;
} | @deprecated Always returns <code>false</code>
The sending telemetry data feature is removed.
Please remove any usages of the command. | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/IsTelemetryEnabledCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/IsTelemetryEnabledCmd.java | Apache-2.0 |
@Override
public Void execute(CommandContext commandContext) {
ensureNotNull("executionId", executionId);
EventSubscriptionManager eventSubscriptionManager = commandContext.getEventSubscriptionManager();
List<EventSubscriptionEntity> eventSubscriptions = null;
if (messageName != null) {
eventSu... | @author Daniel Meyer
@author Joram Barrez | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/MessageEventReceivedCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/MessageEventReceivedCmd.java | Apache-2.0 |
protected SetExecutionVariablesCmd getSetVariableCmd() {
return new SetExecutionVariablesCmd(entityId, variables, isLocal);
} | Patches execution variables: First, applies modifications to existing variables and then deletes
specified variables.
@author Thorben Lindhauer | getSetVariableCmd | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/PatchExecutionVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/PatchExecutionVariablesCmd.java | Apache-2.0 |
protected RemoveExecutionVariablesCmd getRemoveVariableCmd() {
return new RemoveExecutionVariablesCmd(entityId, deletions, isLocal);
} | Patches execution variables: First, applies modifications to existing variables and then deletes
specified variables.
@author Thorben Lindhauer | getRemoveVariableCmd | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/PatchExecutionVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/PatchExecutionVariablesCmd.java | Apache-2.0 |
public void logVariableOperation(CommandContext commandContext) {
commandContext.getOperationLogManager().logVariableOperation(getLogEntryOperation(), entityId, null,
PropertyChange.EMPTY_CHANGE);
} | Patches execution variables: First, applies modifications to existing variables and then deletes
specified variables.
@author Thorben Lindhauer | logVariableOperation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/PatchExecutionVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/PatchExecutionVariablesCmd.java | Apache-2.0 |
protected AbstractSetVariableCmd getSetVariableCmd() {
return new SetTaskVariablesCmd(entityId, variables, isLocal);
} | Patches task variables: First, applies modifications to existing variables and then deletes
specified variables.
@author kristin.polenz@camunda.com | getSetVariableCmd | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/PatchTaskVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/PatchTaskVariablesCmd.java | Apache-2.0 |
protected AbstractRemoveVariableCmd getRemoveVariableCmd() {
return new RemoveTaskVariablesCmd(entityId, deletions, isLocal);
} | Patches task variables: First, applies modifications to existing variables and then deletes
specified variables.
@author kristin.polenz@camunda.com | getRemoveVariableCmd | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/PatchTaskVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/PatchTaskVariablesCmd.java | Apache-2.0 |
public void logVariableOperation(CommandContext commandContext) {
commandContext.getOperationLogManager().logVariableOperation(getLogEntryOperation(), null, entityId,
PropertyChange.EMPTY_CHANGE);
} | Patches task variables: First, applies modifications to existing variables and then deletes
specified variables.
@author kristin.polenz@camunda.com | logVariableOperation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/PatchTaskVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/PatchTaskVariablesCmd.java | Apache-2.0 |
@Override
public PurgeReport execute(CommandContext commandContext) {
PurgeReport purgeReport = new PurgeReport();
// purge the database
DatabasePurgeReport databasePurgeReport = purgeDatabase(commandContext);
purgeReport.setDatabasePurgeReport(databasePurgeReport);
// purge the deployment cache... | Purges the database and the deployment cache.
That means that each entity will be removed from the database and from the cache.
The command returns a purge report. That report contains information of the
deleted rows for each table and the values from the cache which are removed.
@author Christopher Zell <christopher.... | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/PurgeDatabaseAndCacheCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/PurgeDatabaseAndCacheCmd.java | Apache-2.0 |
private DatabasePurgeReport purgeDatabase(CommandContext commandContext) {
DbEntityManager dbEntityManager = commandContext.getDbEntityManager();
// For MySQL we have to disable foreign key check,
// to delete the table data as bulk operation (execution, incident etc.)
// The flag will be reset by the D... | Purges the database and the deployment cache.
That means that each entity will be removed from the database and from the cache.
The command returns a purge report. That report contains information of the
deleted rows for each table and the values from the cache which are removed.
@author Christopher Zell <christopher.... | purgeDatabase | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/PurgeDatabaseAndCacheCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/PurgeDatabaseAndCacheCmd.java | Apache-2.0 |
protected ExecutionEntity getEntity() {
ensureNotNull("executionId", entityId);
ExecutionEntity execution = commandContext
.getExecutionManager()
.findExecutionById(entityId);
ensureNotNull("execution " + entityId + " doesn't exist", "execution", execution);
checkRemoveExecutionVariables(... | @author roman.smirnov
@author Joram Barrez | getEntity | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/RemoveExecutionVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/RemoveExecutionVariablesCmd.java | Apache-2.0 |
@Override
protected ExecutionEntity getContextExecution() {
return getEntity();
} | @author roman.smirnov
@author Joram Barrez | getContextExecution | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/RemoveExecutionVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/RemoveExecutionVariablesCmd.java | Apache-2.0 |
protected void logVariableOperation(AbstractVariableScope scope) {
ExecutionEntity execution = (ExecutionEntity) scope;
commandContext.getOperationLogManager().logVariableOperation(getLogEntryOperation(), execution.getId(), null, PropertyChange.EMPTY_CHANGE);
} | @author roman.smirnov
@author Joram Barrez | logVariableOperation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/RemoveExecutionVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/RemoveExecutionVariablesCmd.java | Apache-2.0 |
protected void checkRemoveExecutionVariables(ExecutionEntity execution) {
for(CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) {
checker.checkUpdateProcessInstanceVariables(execution);
}
} | @author roman.smirnov
@author Joram Barrez | checkRemoveExecutionVariables | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/RemoveExecutionVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/RemoveExecutionVariablesCmd.java | Apache-2.0 |
protected TaskEntity getEntity() {
ensureNotNull("taskId", entityId);
TaskEntity task = commandContext
.getTaskManager()
.findTaskById(entityId);
ensureNotNull("Cannot find task with id " + entityId, "task", task);
checkRemoveTaskVariables(task);
return task;
} | @author roman.smirnov
@author Joram Barrez | getEntity | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/RemoveTaskVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/RemoveTaskVariablesCmd.java | Apache-2.0 |
@Override
protected ExecutionEntity getContextExecution() {
return getEntity().getExecution();
} | @author roman.smirnov
@author Joram Barrez | getContextExecution | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/RemoveTaskVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/RemoveTaskVariablesCmd.java | Apache-2.0 |
protected void logVariableOperation(AbstractVariableScope scope) {
TaskEntity task = (TaskEntity) scope;
commandContext.getOperationLogManager().logVariableOperation(getLogEntryOperation(), null, task.getId(), PropertyChange.EMPTY_CHANGE);
} | @author roman.smirnov
@author Joram Barrez | logVariableOperation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/RemoveTaskVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/RemoveTaskVariablesCmd.java | Apache-2.0 |
protected void checkRemoveTaskVariables(TaskEntity task) {
for(CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) {
checker.checkUpdateTaskVariable(task);
}
} | @author roman.smirnov
@author Joram Barrez | checkRemoveTaskVariables | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/RemoveTaskVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/RemoveTaskVariablesCmd.java | Apache-2.0 |
protected ExecutionEntity getEntity() {
ensureNotNull("executionId", entityId);
ExecutionEntity execution = commandContext
.getExecutionManager()
.findExecutionById(entityId);
if (failIfNotExists) {
ensureNotNull("execution " + entityId + " doesn't exist", "execution", execution);
}
... | @author Tom Baeyens
@author Joram Barrez | getEntity | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExecutionVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExecutionVariablesCmd.java | Apache-2.0 |
@Override
protected ExecutionEntity getContextExecution() {
return getEntity();
} | @author Tom Baeyens
@author Joram Barrez | getContextExecution | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExecutionVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExecutionVariablesCmd.java | Apache-2.0 |
protected void logVariableOperation(AbstractVariableScope scope) {
ExecutionEntity execution = (ExecutionEntity) scope;
commandContext.getOperationLogManager().logVariableOperation(getLogEntryOperation(), execution.getId(),
null, PropertyChange.EMPTY_CHANGE);
} | @author Tom Baeyens
@author Joram Barrez | logVariableOperation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExecutionVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExecutionVariablesCmd.java | Apache-2.0 |
protected void checkSetExecutionVariables(ExecutionEntity execution) {
for(CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) {
checker.checkUpdateProcessInstanceVariables(execution);
}
} | @author Tom Baeyens
@author Joram Barrez | checkSetExecutionVariables | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExecutionVariablesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExecutionVariablesCmd.java | Apache-2.0 |
@Override
protected void execute(ExternalTaskEntity externalTask) {
externalTask.setPriority(priority);
} | The priority that should set on the external task. | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExternalTaskPriorityCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExternalTaskPriorityCmd.java | Apache-2.0 |
@Override
protected void validateInput() {
} | The priority that should set on the external task. | validateInput | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExternalTaskPriorityCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExternalTaskPriorityCmd.java | Apache-2.0 |
@Override
protected String getUserOperationLogOperationType() {
return UserOperationLogEntry.OPERATION_TYPE_SET_PRIORITY;
} | The priority that should set on the external task. | getUserOperationLogOperationType | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExternalTaskPriorityCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExternalTaskPriorityCmd.java | Apache-2.0 |
@Override
protected List<PropertyChange> getUserOperationLogPropertyChanges(ExternalTaskEntity externalTask) {
return Collections.singletonList(new PropertyChange("priority", externalTask.getPriority(), priority));
} | The priority that should set on the external task. | getUserOperationLogPropertyChanges | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExternalTaskPriorityCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExternalTaskPriorityCmd.java | Apache-2.0 |
@Override
protected void validateInput() {
EnsureUtil.ensureGreaterThanOrEqual(BadUserRequestException.class, "The number of retries cannot be negative", "retries", retries, 0);
} | @author Thorben Lindhauer
@author Christopher Zell | validateInput | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExternalTaskRetriesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExternalTaskRetriesCmd.java | Apache-2.0 |
@Override
protected void execute(ExternalTaskEntity externalTask) {
externalTask.setRetriesAndManageIncidents(retries);
} | @author Thorben Lindhauer
@author Christopher Zell | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExternalTaskRetriesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExternalTaskRetriesCmd.java | Apache-2.0 |
@Override
protected String getUserOperationLogOperationType() {
if (writeUserOperationLog) {
return UserOperationLogEntry.OPERATION_TYPE_SET_EXTERNAL_TASK_RETRIES;
}
return super.getUserOperationLogOperationType();
} | @author Thorben Lindhauer
@author Christopher Zell | getUserOperationLogOperationType | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExternalTaskRetriesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExternalTaskRetriesCmd.java | Apache-2.0 |
@Override
protected List<PropertyChange> getUserOperationLogPropertyChanges(ExternalTaskEntity externalTask) {
if (writeUserOperationLog) {
return Collections.singletonList(new PropertyChange("retries", externalTask.getRetries(), retries));
}
return super.getUserOperationLogPropertyChanges(externalT... | @author Thorben Lindhauer
@author Christopher Zell | getUserOperationLogPropertyChanges | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExternalTaskRetriesCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetExternalTaskRetriesCmd.java | Apache-2.0 |
public Void execute(CommandContext commandContext) {
ProcessEngineConfigurationImpl configuration = commandContext.getProcessEngineConfiguration();
// check that the new process definition is just another version of the same
// process definition that the process instance is using
ExecutionManager exec... | {@link Command} that changes the process definition version of an existing
process instance.
Warning: This command will NOT perform any migration magic and simply set the
process definition version in the database, assuming that the user knows,
what he or she is doing.
This is only useful for simple migrations. The n... | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetProcessDefinitionVersionCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetProcessDefinitionVersionCmd.java | Apache-2.0 |
@Override
public HistoryEvent createHistoryEvent(HistoryEventProducer producer) {
return producer.createProcessInstanceUpdateEvt(processInstance);
} | {@link Command} that changes the process definition version of an existing
process instance.
Warning: This command will NOT perform any migration magic and simply set the
process definition version in the database, assuming that the user knows,
what he or she is doing.
This is only useful for simple migrations. The n... | createHistoryEvent | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetProcessDefinitionVersionCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetProcessDefinitionVersionCmd.java | Apache-2.0 |
protected Map<String, String> getJobDefinitionMapping(List<JobDefinitionEntity> currentJobDefinitions, List<JobDefinitionEntity> newVersionJobDefinitions) {
Map<String, String> mapping = new HashMap<String, String>();
for (JobDefinitionEntity currentJobDefinition : currentJobDefinitions) {
for (JobDefini... | {@link Command} that changes the process definition version of an existing
process instance.
Warning: This command will NOT perform any migration magic and simply set the
process definition version in the database, assuming that the user knows,
what he or she is doing.
This is only useful for simple migrations. The n... | getJobDefinitionMapping | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetProcessDefinitionVersionCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetProcessDefinitionVersionCmd.java | Apache-2.0 |
protected boolean jobDefinitionsMatch(JobDefinitionEntity currentJobDefinition, JobDefinitionEntity newJobDefinition) {
boolean activitiesMatch = currentJobDefinition.getActivityId().equals(newJobDefinition.getActivityId());
boolean typesMatch =
(currentJobDefinition.getJobType() == null && newJobDefin... | {@link Command} that changes the process definition version of an existing
process instance.
Warning: This command will NOT perform any migration magic and simply set the
process definition version in the database, assuming that the user knows,
what he or she is doing.
This is only useful for simple migrations. The n... | jobDefinitionsMatch | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetProcessDefinitionVersionCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetProcessDefinitionVersionCmd.java | Apache-2.0 |
protected void switchVersionOfJob(JobEntity jobEntity, ProcessDefinitionEntity newProcessDefinition, Map<String, String> jobDefinitionMapping) {
jobEntity.setProcessDefinitionId(newProcessDefinition.getId());
jobEntity.setDeploymentId(newProcessDefinition.getDeploymentId());
String newJobDefinitionId = job... | {@link Command} that changes the process definition version of an existing
process instance.
Warning: This command will NOT perform any migration magic and simply set the
process definition version in the database, assuming that the user knows,
what he or she is doing.
This is only useful for simple migrations. The n... | switchVersionOfJob | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetProcessDefinitionVersionCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetProcessDefinitionVersionCmd.java | Apache-2.0 |
protected void validateAndSwitchVersionOfExecution(CommandContext commandContext, ExecutionEntity execution, ProcessDefinitionEntity newProcessDefinition) {
// check that the new process definition version contains the current activity
if (execution.getActivity() != null) {
String activityId = execution.g... | {@link Command} that changes the process definition version of an existing
process instance.
Warning: This command will NOT perform any migration magic and simply set the
process definition version in the database, assuming that the user knows,
what he or she is doing.
This is only useful for simple migrations. The n... | validateAndSwitchVersionOfExecution | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetProcessDefinitionVersionCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetProcessDefinitionVersionCmd.java | Apache-2.0 |
public Object execute(CommandContext commandContext) {
commandContext.getAuthorizationManager().checkCamundaAdminOrPermission(CommandChecker::checkSetProperty);
final PropertyManager propertyManager = commandContext.getPropertyManager();
PropertyEntity property = propertyManager
.findPropertyById(na... | <p>Command which can be used for setting the value of a property</p>
@author Daniel Meyer | execute | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetPropertyCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetPropertyCmd.java | Apache-2.0 |
@Override
protected String getUserOperationLogName() {
return UserOperationLogEntry.OPERATION_TYPE_SET_DESCRIPTION;
} | Public Constructor.
@param taskId the id of the task whose description should be changed
@param description the new description value to change to
@throws NullValueException in case the given taskId or the given description are null | getUserOperationLogName | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetTaskDescriptionCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetTaskDescriptionCmd.java | Apache-2.0 |
@Override
protected void executeSetOperation(TaskEntity task, String value) {
task.setDescription(value);
} | Public Constructor.
@param taskId the id of the task whose description should be changed
@param description the new description value to change to
@throws NullValueException in case the given taskId or the given description are null | executeSetOperation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetTaskDescriptionCmd.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/SetTaskDescriptionCmd.java | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.