/** @return */ public long getWaitingAcitivityInstanceCount() { QueryService service = serviceFactoryUtils.getQueryService(); ActivityInstanceQuery query = ActivityInstanceQuery.findInState( new ActivityInstanceState[] { ActivityInstanceState.Interrupted, ActivityInstanceState.Suspended, ActivityInstanceState.Hibernated }); return new Long(service.getActivityInstancesCount(query)); }
/** @return */ public long getCompletedActivityInstanceCount() { QueryService service = serviceFactoryUtils.getQueryService(); return new Long(service.getActivityInstancesCount(ActivityInstanceQuery.findCompleted())); }
/** @return */ public long getTotalActivityInstanceCount() { QueryService service = serviceFactoryUtils.getQueryService(); return new Long(service.getActivityInstancesCount(ActivityInstanceQuery.findAll())); }
/** @return */ public long getAbortedActivityInstanceCount() { QueryService service = serviceFactoryUtils.getQueryService(); return new Long( service.getActivityInstancesCount( ActivityInstanceQuery.findInState(ActivityInstanceState.Aborted))); }