Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.activiti.engine.compatibility.Activiti5CompatibilityHandler Maven / Gradle / Ivy
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.activiti.engine.compatibility;
import java.io.InputStream;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.activiti.bpmn.model.BpmnModel;
import org.activiti.bpmn.model.MapExceptionEntry;
import org.activiti.engine.delegate.BpmnError;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.event.ActivitiEvent;
import org.activiti.engine.impl.persistence.deploy.ProcessDefinitionCacheEntry;
import org.activiti.engine.impl.persistence.entity.SignalEventSubscriptionEntity;
import org.activiti.engine.impl.persistence.entity.TaskEntity;
import org.activiti.engine.impl.persistence.entity.VariableInstance;
import org.activiti.engine.impl.repository.DeploymentBuilderImpl;
import org.activiti.engine.repository.Deployment;
import org.activiti.engine.repository.ProcessDefinition;
import org.activiti.engine.runtime.Clock;
import org.activiti.engine.runtime.Job;
import org.activiti.engine.runtime.ProcessInstance;
import org.activiti.engine.task.Attachment;
import org.activiti.engine.task.Comment;
import com.fasterxml.jackson.databind.node.ObjectNode;
public interface Activiti5CompatibilityHandler {
public static final String ACTIVITI_5_ENGINE_TAG = "activiti-5";
ProcessDefinition getProcessDefinition(String processDefinitionId);
ProcessDefinition getProcessDefinitionByKey(String processDefinitionKey);
org.activiti.bpmn.model.Process getProcessDefinitionProcessObject(String processDefinitionId);
BpmnModel getProcessDefinitionBpmnModel(String processDefinitionId);
ObjectNode getProcessDefinitionInfo(String processDefinitionId);
ProcessDefinitionCacheEntry resolveProcessDefinition(ProcessDefinition processDefinition);
boolean isProcessDefinitionSuspended(String processDefinitionId);
void addCandidateStarter(String processDefinitionId, String userId, String groupId);
void deleteCandidateStarter(String processDefinitionId, String userId, String groupId);
void suspendProcessDefinition(String processDefinitionId, String processDefinitionKey, boolean suspendProcessInstances, Date suspensionDate, String tenantId);
void activateProcessDefinition(String processDefinitionId, String processDefinitionKey, boolean activateProcessInstances, Date activationDate, String tenantId);
void setProcessDefinitionCategory(String processDefinitionId, String category);
Deployment deploy(DeploymentBuilderImpl deploymentBuilder);
void setDeploymentCategory(String deploymentId, String category);
void changeDeploymentTenantId(String deploymentId, String newTenantId);
void deleteDeployment(String deploymentId, boolean cascade);
ProcessInstance startProcessInstance(String processDefinitionKey, String processDefinitionId, Map variables, String businessKey, String tenantId, String processInstanceName);
ProcessInstance startProcessInstanceByMessage(String messageName, Map variables, String businessKey, String tenantId);
Object getExecutionVariable(String executionId, String variableName, boolean isLocal);
VariableInstance getExecutionVariableInstance(String executionId, String variableName, boolean isLocal);
Map getExecutionVariables(String executionId, Collection variableNames, boolean isLocal);
Map getExecutionVariableInstances(String executionId, Collection variableNames, boolean isLocal);
void setExecutionVariables(String executionId, Map variables, boolean isLocal);
void removeExecutionVariables(String executionId, Collection variableNames, boolean isLocal);
void updateBusinessKey(String processInstanceId, String businessKey);
void suspendProcessInstance(String processInstanceId);
void activateProcessInstance(String processInstanceId);
void addIdentityLinkForProcessInstance(String processInstanceId, String userId, String groupId, String identityLinkType);
void deleteIdentityLinkForProcessInstance(String processInstanceId, String userId, String groupId, String identityLinkType);
void deleteProcessInstance(String processInstanceId, String deleteReason);
void deleteHistoricProcessInstance(String processInstanceId);
void completeTask(TaskEntity taskEntity, Map variables, boolean localScope);
void claimTask(String taskId, String userId);
void setTaskVariables(String taskId, Map variables, boolean isLocal);
void removeTaskVariables(String taskId, Collection variableNames, boolean isLocal);
void setTaskDueDate(String taskId, Date dueDate);
void setTaskPriority(String taskId, int priority);
void deleteTask(String taskId, String deleteReason, boolean cascade);
void deleteHistoricTask(String taskId);
void saveTask(TaskEntity task);
void addIdentityLink(String taskId, String identityId, int identityIdType, String identityType);
void deleteIdentityLink(String taskId, String userId, String groupId, String identityLinkType);
Comment addComment(String taskId, String processInstanceId, String type, String message);
void deleteComment(String commentId, String taskId, String processInstanceId);
Attachment createAttachment(String attachmentType, String taskId, String processInstanceId, String attachmentName, String attachmentDescription, InputStream content, String url);
void saveAttachment(Attachment attachment);
void deleteAttachment(String attachmentId);
void trigger(String executionId, Map processVariables);
void messageEventReceived(String messageName, String executionId, Map processVariables, boolean async);
void signalEventReceived(String signalName, String executionId, Map processVariables, boolean async, String tenantId);
void signalEventReceived(SignalEventSubscriptionEntity signalEventSubscriptionEntity, Object payload, boolean async);
void executeJob(Job job);
void executeJobWithLockAndRetry(Job job);
void handleFailedJob(Job job, Throwable exception);
void deleteJob(String jobId);
void leaveExecution(DelegateExecution execution);
void propagateError(BpmnError bpmnError, DelegateExecution execution);
boolean mapException(Exception camelException, DelegateExecution execution, List mapExceptions);
Map getVariables(ProcessInstance processInstance);
Object getScriptingEngineValue(String payloadExpressionValue, String languageValue, DelegateExecution execution);
void throwErrorEvent(ActivitiEvent event);
void setClock(Clock clock);
void resetClock();
Object getRawProcessEngine();
Object getRawProcessConfiguration();
Object getRawCommandExecutor();
Object getCamelContextObject(String camelContextValue);
}