All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mule.module.jbpm.EndedProcess Maven / Gradle / Ivy

There is a newer version: 3.9.0
Show newest version
/*
 * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */
package org.mule.module.jbpm;

import java.util.Collection;
import java.util.Map;
import java.util.Set;

import org.jbpm.api.Execution;
import org.jbpm.api.ProcessInstance;

/**
 * Placeholder used to get status for a process in a uniform way, even if it has ended.
 */
public class EndedProcess implements ProcessInstance
{
    private String id;

    public EndedProcess(String id)
    {
        this.id = id;
    }
    
    public String getId()
    {
        return id;
    }

    public boolean isEnded()
    {
        return true;
    }

    public Set findActiveActivityNames()
    {
        return null;
    }

    public Execution findActiveExecutionIn(String activityName)
    {
        return null;
    }

    public Execution getExecution(String name)
    {
        return null;
    }

    public Collection getExecutions()
    {
        return null;
    }

    public Map getExecutionsMap()
    {
        return null;
    }

    public boolean getIsProcessInstance()
    {
        return true;
    }

    public String getKey()
    {
        return null;
    }

    public String getName()
    {
        return null;
    }

    public Execution getParent()
    {
        return null;
    }

    public int getPriority()
    {
        return 0;
    }

    public String getProcessDefinitionId()
    {
        return null;
    }

    public Execution getProcessInstance()
    {
        return null;
    }

    public Execution getSubProcessInstance()
    {
        return null;
    }
    
    public String getState()
    {
        return ProcessInstance.STATE_ENDED;
    }

    public boolean hasExecution(String executionName)
    {
        return false;
    }

    public boolean isActive(String activityName)
    {
        return false;
    }

    public boolean isSuspended()
    {
        return false;
    }
}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy