Package org.jboss.bpm.monitor.model.metric

Examples of org.jboss.bpm.monitor.model.metric.Timespan


  public List<HistoryProcessInstanceRef> getHistoryProcessInstances(
      String definitionkey, String status, long starttime, long endtime,
      String correlationkey) {
   
    String dkey =  ModelAdaptor.decodeId(definitionkey);
    List<Event> events = ds.getInstanceEvents(dkey, new Timespan(starttime, endtime, "Custom"), getStatus(status));
    List<String> instanceIds = null;
    if (correlationkey != null && !("".equals(correlationkey.trim()))) {
      String ckey = null;
      try {
        ckey = URLDecoder.decode(correlationkey.replace("~", "="), "UTF-8");
View Full Code Here


    public Set<String> getTerminatedInstances(String definitionKey, long timestamp, String timespan) {
        return getInstances(definitionKey, timestamp, timespan, State.Closed_Cancelled_Terminated);
    }

    public String getCompletedInstances4Chart(String processDefinition, String timespanValue) {
        final Timespan timespan = TimespanFactory.fromValue(timespanValue);

        String decodedId = ModelAdaptor.decodeId(processDefinition);

        List<Event> events = ds.getInstanceEvents(decodedId, timespan, State.Closed_Completed);
View Full Code Here

        return createDatasetJSO(
                new String[]{"Completed"}, timespan, true, events);
    }

    public String getFailedInstances4Chart(String processDefinition, String timespanValue) {
        final Timespan timespan = TimespanFactory.fromValue(timespanValue);
        String decodedId = ModelAdaptor.decodeId(processDefinition);

        List<Event> completed = ds.getInstanceEvents(decodedId, timespan, State.Closed_Completed);
        List<Event> failed  = ds.getInstanceEvents(decodedId, timespan, State.Closed_Completed_Failed);
        List<Event> terminated = ds.getInstanceEvents(decodedId, timespan, State.Closed_Cancelled_Terminated);
View Full Code Here

        String decodedId = ModelAdaptor.decodeId(definitionKey);

        Set<String> instanceIds = new HashSet<String>();

        Timespan chartTimespan = TimespanFactory.fromValue(timespan);
        long[] bounds = TimespanFactory.getLeftBounds(chartTimespan, new Date(timestamp));

        List<Event> events = ds.getInstanceEvents(
                decodedId,
                new Timespan(bounds[0], bounds[1], chartTimespan.getUnit(), "custom"),
                completionState
        );

        // parity matched, only consider actual 'Closed_...' events
        for(Event e : events)
View Full Code Here

    private Set<String> getInstances(String definitionKey, long timestamp, String timespan, State completionState) {

        Set<String> instanceIds = new HashSet<String>();

        Timespan chartTimespan = TimespanFactory.fromValue(timespan);
        long[] bounds = TimespanFactory.getLeftBounds(chartTimespan, new Date(timestamp));
       
        List<Event> events = dataSource.getInstanceEvents(
                definitionKey,
                new Timespan(bounds[0], bounds[1], chartTimespan.getUnit(), "custom"),
                completionState
        );

        // parity matched, only consider actual 'Closed_...' events
        for(Event e : events)
View Full Code Here

     */
    public String getCompletedInstances(String processDefiniton, String timespanValue)
    {
        assertDataSource();

        final Timespan timespan = TimespanFactory.fromValue(timespanValue);

        List<Event> events = dataSource.getInstanceEvents(processDefiniton, timespan, State.Closed_Completed);

        return createDatasetJSO(
                new String[]{"Completed"}, timespan, true, events);
View Full Code Here

     */
    public String getFailedInstances(String processDefiniton, String timespanValue)
    {
        assertDataSource();

        final Timespan timespan = TimespanFactory.fromValue(timespanValue);

        List<Event> completed = dataSource.getInstanceEvents(processDefiniton, timespan, State.Closed_Completed);
        List<Event> failed  = dataSource.getInstanceEvents(processDefiniton, timespan, State.Closed_Completed_Failed);
        List<Event> terminated = dataSource.getInstanceEvents(processDefiniton, timespan, State.Closed_Cancelled_Terminated);

View Full Code Here

    private Set<String> getInstances(String definitionKey, long timestamp, String timespan, State completionState) {

        Set<String> result = new HashSet<String>();

        Timespan chartTimespan = TimespanFactory.fromValue(timespan);
        long[] bounds = TimespanFactory.getLeftBounds(chartTimespan, new Date(timestamp));
       
        List<Event> events = dataSource.getInstanceEvents(
                definitionKey,
                new Timespan(bounds[0], bounds[1], chartTimespan.getUnit(), "custom"),
                completionState
        );

        // parity matched, only consider actual 'Closed_...' events
        for(Event e : events)
View Full Code Here

TOP

Related Classes of org.jboss.bpm.monitor.model.metric.Timespan

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.