org.mule.module.jbpm.EndedProcess Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mule-module-jbpm Show documentation
Show all versions of mule-module-jbpm Show documentation
Classes which allow Mule to integrate with JBoss jBPM via the BPM Module.
/*
* 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 extends Execution> 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