Codota Logo
HistoricActivityInstanceEventEntity.setDurationInMillis
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
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.eventHistoricActivityInstanceEventEntitysetDurationInMillis

Popular methods of HistoricActivityInstanceEventEntity

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

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • getSystemService (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now