Tabnine Logo
HistoricActivityInstanceEventEntity.getEndTime
Code IndexAdd Tabnine to your IDE (free)

How to use
getEndTime
method
in
org.camunda.bpm.engine.impl.history.event.HistoricActivityInstanceEventEntity

Best Java code snippets using org.camunda.bpm.engine.impl.history.event.HistoricActivityInstanceEventEntity.getEndTime (Showing top 3 results out of 315)

origin: camunda/camunda-bpm-platform

public HistoryEvent createActivityInstanceEndEvt(DelegateExecution execution) {
 final ExecutionEntity executionEntity = (ExecutionEntity) execution;
 // create event instance
 HistoricActivityInstanceEventEntity evt = loadActivityInstanceEventEntity(executionEntity);
 evt.setActivityInstanceState(executionEntity.getActivityInstanceState());
 // initialize event
 initActivityInstanceEvent(evt, (ExecutionEntity) execution, HistoryEventTypes.ACTIVITY_INSTANCE_END);
 evt.setEndTime(ClockUtil.getCurrentTime());
 if(evt.getStartTime() != null) {
  evt.setDurationInMillis(evt.getEndTime().getTime()-evt.getStartTime().getTime());
 }
 return evt;
}
origin: camunda/camunda-bpm-platform

public HistoryEvent createActivityInstanceEndEvt(DelegateExecution execution) {
 final ExecutionEntity executionEntity = (ExecutionEntity) execution;
 // create event instance
 HistoricActivityInstanceEventEntity evt = loadActivityInstanceEventEntity(executionEntity);
 evt.setActivityInstanceState(executionEntity.getActivityInstanceState());
 // initialize event
 initActivityInstanceEvent(evt, (ExecutionEntity) execution, HistoryEventTypes.ACTIVITY_INSTANCE_END);
 evt.setEndTime(ClockUtil.getCurrentTime());
 if(evt.getStartTime() != null) {
  evt.setDurationInMillis(evt.getEndTime().getTime()-evt.getStartTime().getTime());
 }
 return evt;
}
origin: org.camunda.bpm/camunda-engine

public HistoryEvent createActivityInstanceEndEvt(DelegateExecution execution) {
 final ExecutionEntity executionEntity = (ExecutionEntity) execution;
 // create event instance
 HistoricActivityInstanceEventEntity evt = loadActivityInstanceEventEntity(executionEntity);
 evt.setActivityInstanceState(executionEntity.getActivityInstanceState());
 // initialize event
 initActivityInstanceEvent(evt, (ExecutionEntity) execution, HistoryEventTypes.ACTIVITY_INSTANCE_END);
 evt.setEndTime(ClockUtil.getCurrentTime());
 if(evt.getStartTime() != null) {
  evt.setDurationInMillis(evt.getEndTime().getTime()-evt.getStartTime().getTime());
 }
 return evt;
}
org.camunda.bpm.engine.impl.history.eventHistoricActivityInstanceEventEntitygetEndTime

Popular methods of HistoricActivityInstanceEventEntity

  • <init>
  • getStartTime
  • setActivityId
  • setActivityInstanceId
  • setActivityInstanceState
  • setActivityName
  • setActivityType
  • setCalledCaseInstanceId
  • setCalledProcessInstanceId
  • setDurationInMillis
  • setEndTime
  • setEventType
  • setEndTime,
  • setEventType,
  • setExecutionId,
  • setId,
  • setParentActivityInstanceId,
  • setProcessDefinitionId,
  • setProcessDefinitionKey,
  • setProcessInstanceId,
  • setRootProcessInstanceId

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JLabel (javax.swing)
  • JOptionPane (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now