Java Code Examples for org.camunda.bpm.engine.impl.history.event.HistoricProcessInstanceEventEntity#getRemovalTime()

The following examples show how to use org.camunda.bpm.engine.impl.history.event.HistoricProcessInstanceEventEntity#getRemovalTime() . 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: AddCommentCmd.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
protected void provideRemovalTime(CommentEntity comment) {
  String rootProcessInstanceId = comment.getRootProcessInstanceId();
  if (rootProcessInstanceId != null) {
    HistoricProcessInstanceEventEntity historicRootProcessInstance = getHistoricRootProcessInstance(rootProcessInstanceId);

    if (historicRootProcessInstance != null) {
      Date removalTime = historicRootProcessInstance.getRemovalTime();
      comment.setRemovalTime(removalTime);
    }
  }
}
 
Example 2
Source File: CreateAttachmentCmd.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
protected void provideRemovalTime(AttachmentEntity attachment) {
  String rootProcessInstanceId = attachment.getRootProcessInstanceId();
  if (rootProcessInstanceId != null) {
    HistoricProcessInstanceEventEntity historicRootProcessInstance =
      getHistoricRootProcessInstance(rootProcessInstanceId);

    if (historicRootProcessInstance != null) {
      Date removalTime = historicRootProcessInstance.getRemovalTime();
      attachment.setRemovalTime(removalTime);
    }
  }
}
 
Example 3
Source File: DefaultDmnHistoryEventProducer.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
protected void provideRemovalTime(HistoryEvent historyEvent) {
  String rootProcessInstanceId = historyEvent.getRootProcessInstanceId();
  if (rootProcessInstanceId != null) {
    HistoricProcessInstanceEventEntity historicRootProcessInstance =
      getHistoricRootProcessInstance(rootProcessInstanceId);

    if (historicRootProcessInstance != null) {
      Date removalTime = historicRootProcessInstance.getRemovalTime();
      historyEvent.setRemovalTime(removalTime);
    }
  }
}
 
Example 4
Source File: DefaultHistoryEventProducer.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
protected void provideRemovalTime(HistoryEvent historyEvent) {
  String rootProcessInstanceId = historyEvent.getRootProcessInstanceId();
  if (rootProcessInstanceId != null) {
    HistoricProcessInstanceEventEntity historicRootProcessInstance =
      getHistoricRootProcessInstance(rootProcessInstanceId);

    if (historicRootProcessInstance != null) {
      Date removalTime = historicRootProcessInstance.getRemovalTime();
      historyEvent.setRemovalTime(removalTime);
    }
  }
}