protected HistoricFormPropertyEventEntity newHistoricFormPropertyEvent() { return new HistoricFormPropertyEventEntity(); }
public HistoryEvent createFormPropertyUpdateEvt(ExecutionEntity execution, String propertyId, String propertyValue, String taskId) { final IdGenerator idGenerator = Context.getProcessEngineConfiguration().getIdGenerator(); HistoricFormPropertyEventEntity historicFormPropertyEntity = newHistoricFormPropertyEvent(); historicFormPropertyEntity.setId(idGenerator.getNextId()); historicFormPropertyEntity.setEventType(HistoryEventTypes.FORM_PROPERTY_UPDATE.getEventName()); historicFormPropertyEntity.setTimestamp(ClockUtil.getCurrentTime()); historicFormPropertyEntity.setActivityInstanceId(execution.getActivityInstanceId()); historicFormPropertyEntity.setExecutionId(execution.getId()); historicFormPropertyEntity.setProcessDefinitionId(execution.getProcessDefinitionId()); historicFormPropertyEntity.setProcessInstanceId(execution.getProcessInstanceId()); historicFormPropertyEntity.setPropertyId(propertyId); historicFormPropertyEntity.setPropertyValue(propertyValue); historicFormPropertyEntity.setTaskId(taskId); historicFormPropertyEntity.setTenantId(execution.getTenantId()); historicFormPropertyEntity.setUserOperationId(Context.getCommandContext().getOperationId()); historicFormPropertyEntity.setRootProcessInstanceId(execution.getRootProcessInstanceId()); if (isHistoryRemovalTimeStrategyStart()) { provideRemovalTime(historicFormPropertyEntity); } ProcessDefinitionEntity definition = execution.getProcessDefinition(); if (definition != null) { historicFormPropertyEntity.setProcessDefinitionKey(definition.getKey()); } // initialize sequence counter initSequenceCounter(execution, historicFormPropertyEntity); return historicFormPropertyEntity; }
public HistoryEvent createFormPropertyUpdateEvt(ExecutionEntity execution, String propertyId, String propertyValue, String taskId) { final IdGenerator idGenerator = Context.getProcessEngineConfiguration().getIdGenerator(); HistoricFormPropertyEventEntity historicFormPropertyEntity = newHistoricFormPropertyEvent(); historicFormPropertyEntity.setId(idGenerator.getNextId()); historicFormPropertyEntity.setEventType(HistoryEventTypes.FORM_PROPERTY_UPDATE.getEventName()); historicFormPropertyEntity.setTimestamp(ClockUtil.getCurrentTime()); historicFormPropertyEntity.setActivityInstanceId(execution.getActivityInstanceId()); historicFormPropertyEntity.setExecutionId(execution.getId()); historicFormPropertyEntity.setProcessDefinitionId(execution.getProcessDefinitionId()); historicFormPropertyEntity.setProcessInstanceId(execution.getProcessInstanceId()); historicFormPropertyEntity.setPropertyId(propertyId); historicFormPropertyEntity.setPropertyValue(propertyValue); historicFormPropertyEntity.setTaskId(taskId); historicFormPropertyEntity.setTenantId(execution.getTenantId()); historicFormPropertyEntity.setUserOperationId(Context.getCommandContext().getOperationId()); historicFormPropertyEntity.setRootProcessInstanceId(execution.getRootProcessInstanceId()); if (isHistoryRemovalTimeStrategyStart()) { provideRemovalTime(historicFormPropertyEntity); } ProcessDefinitionEntity definition = execution.getProcessDefinition(); if (definition != null) { historicFormPropertyEntity.setProcessDefinitionKey(definition.getKey()); } // initialize sequence counter initSequenceCounter(execution, historicFormPropertyEntity); return historicFormPropertyEntity; }
public HistoryEvent createFormPropertyUpdateEvt(ExecutionEntity execution, String propertyId, String propertyValue, String taskId) { final IdGenerator idGenerator = Context.getProcessEngineConfiguration().getIdGenerator(); HistoricFormPropertyEventEntity historicFormPropertyEntity = newHistoricFormPropertyEvent(); historicFormPropertyEntity.setId(idGenerator.getNextId()); historicFormPropertyEntity.setEventType(HistoryEventTypes.FORM_PROPERTY_UPDATE.getEventName()); historicFormPropertyEntity.setTimestamp(ClockUtil.getCurrentTime()); historicFormPropertyEntity.setActivityInstanceId(execution.getActivityInstanceId()); historicFormPropertyEntity.setExecutionId(execution.getId()); historicFormPropertyEntity.setProcessDefinitionId(execution.getProcessDefinitionId()); historicFormPropertyEntity.setProcessInstanceId(execution.getProcessInstanceId()); historicFormPropertyEntity.setPropertyId(propertyId); historicFormPropertyEntity.setPropertyValue(propertyValue); historicFormPropertyEntity.setTaskId(taskId); historicFormPropertyEntity.setTenantId(execution.getTenantId()); historicFormPropertyEntity.setUserOperationId(Context.getCommandContext().getOperationId()); historicFormPropertyEntity.setRootProcessInstanceId(execution.getRootProcessInstanceId()); if (isHistoryRemovalTimeStrategyStart()) { provideRemovalTime(historicFormPropertyEntity); } ProcessDefinitionEntity definition = execution.getProcessDefinition(); if (definition != null) { historicFormPropertyEntity.setProcessDefinitionKey(definition.getKey()); } // initialize sequence counter initSequenceCounter(execution, historicFormPropertyEntity); return historicFormPropertyEntity; }
protected HistoricFormPropertyEventEntity newHistoricFormPropertyEvent() { return new HistoricFormPropertyEventEntity(); }
protected HistoricFormPropertyEventEntity newHistoricFormPropertyEvent() { return new HistoricFormPropertyEventEntity(); }