Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: for the plan.

Jump to: navigation, search

Stardust/Knowledge Base/Java API/Process Definition Queries

Querying all Process Definitions from all active Models

(Versions: 1.0.1 / 7.2.0)

package test;
import org.eclipse.stardust.engine.api.ejb2.ServiceFactoryLocator;
import org.eclipse.stardust.engine.api.model.ProcessDefinition;
import org.eclipse.stardust.engine.api.query.ProcessDefinitionQuery;
import org.eclipse.stardust.engine.api.runtime.ProcessDefinitions;
import org.eclipse.stardust.engine.api.runtime.QueryService;
import org.eclipse.stardust.engine.api.runtime.ServiceFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class PDList {
	public static void main(String[] args) {
		 final Logger log = LoggerFactory.getLogger(PDList.class);
		ServiceFactory sf = ServiceFactoryLocator.get("motu","motu");
		QueryService qs = sf.getQueryService();
		ProcessDefinitions pds = qs.getProcessDefinitions(ProcessDefinitionQuery.findAll());
		for (ProcessDefinition pd : pds) {;

Back to the top