Java Code Examples for org.activiti.engine.impl.persistence.entity.ExecutionEntity#getBusinessKey()
The following examples show how to use
org.activiti.engine.impl.persistence.entity.ExecutionEntity#getBusinessKey() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FunctionEventListener.java From lemon with Apache License 2.0 | 6 votes |
public void onActivityStart(ActivitiActivityEvent event) { logger.debug("activity start {}", event); String processInstanceId = event.getProcessInstanceId(); ExecutionEntity executionEntity = Context.getCommandContext() .getExecutionEntityManager() .findExecutionById(processInstanceId); String businessKey = executionEntity.getBusinessKey(); String processDefinitionId = event.getProcessDefinitionId(); String activityId = event.getActivityId(); String activityName = this.findActivityName(activityId, processDefinitionId); int eventCode = 0; String eventName = "start"; String userId = Authentication.getAuthenticatedUserId(); this.invokeExpression(eventCode, eventName, businessKey, userId, activityId, activityName); }
Example 2
Source File: FunctionEventListener.java From lemon with Apache License 2.0 | 6 votes |
public void onActivityEnd(ActivitiActivityEvent event) { logger.debug("activity end {}", event); String processInstanceId = event.getProcessInstanceId(); ExecutionEntity executionEntity = Context.getCommandContext() .getExecutionEntityManager() .findExecutionById(processInstanceId); String businessKey = executionEntity.getBusinessKey(); String processDefinitionId = event.getProcessDefinitionId(); String activityId = event.getActivityId(); String activityName = this.findActivityName(activityId, processDefinitionId); int eventCode = 1; String eventName = "end"; String userId = Authentication.getAuthenticatedUserId(); this.invokeExpression(eventCode, eventName, businessKey, userId, activityId, activityName); }
Example 3
Source File: FunctionEventListener.java From lemon with Apache License 2.0 | 6 votes |
public void onTaskCompleted(ActivitiEntityEvent event) { logger.debug("task completed {}", event); String processInstanceId = event.getProcessInstanceId(); ExecutionEntity executionEntity = Context.getCommandContext() .getExecutionEntityManager() .findExecutionById(processInstanceId); String businessKey = executionEntity.getBusinessKey(); String processDefinitionId = event.getProcessDefinitionId(); Task task = (Task) event.getEntity(); String activityId = task.getTaskDefinitionKey(); String activityName = this.findActivityName(activityId, processDefinitionId); int eventCode = 5; String eventName = "complete"; String userId = Authentication.getAuthenticatedUserId(); this.invokeExpression(eventCode, eventName, businessKey, userId, activityId, activityName); }
Example 4
Source File: FunctionEventListener.java From lemon with Apache License 2.0 | 6 votes |
public void onProcessCompleted(ActivitiEntityEvent event) { logger.debug("process completed {}", event); String processInstanceId = event.getProcessInstanceId(); ExecutionEntity executionEntity = Context.getCommandContext() .getExecutionEntityManager() .findExecutionById(processInstanceId); String businessKey = executionEntity.getBusinessKey(); String processDefinitionId = event.getProcessDefinitionId(); String activityId = ""; String activityName = this.findActivityName(activityId, processDefinitionId); int eventCode = 24; String eventName = "process-end"; String userId = Authentication.getAuthenticatedUserId(); this.invokeExpression(eventCode, eventName, businessKey, userId, activityId, activityName); }
Example 5
Source File: FunctionEventListener.java From lemon with Apache License 2.0 | 6 votes |
public void onProcessCancelled(ActivitiCancelledEvent event) { logger.debug("process cancelled {}", event); String processInstanceId = event.getProcessInstanceId(); ExecutionEntity executionEntity = Context.getCommandContext() .getExecutionEntityManager() .findExecutionById(processInstanceId); String businessKey = executionEntity.getBusinessKey(); String processDefinitionId = event.getProcessDefinitionId(); String activityId = ""; String activityName = this.findActivityName(activityId, processDefinitionId); int eventCode = 23; String eventName = "process-close"; String userId = Authentication.getAuthenticatedUserId(); this.invokeExpression(eventCode, eventName, businessKey, userId, activityId, activityName); }