org.eclipse.stardust.engine.api.query
Class ProcessDefinitionQuery

java.lang.Object
  extended by org.eclipse.stardust.engine.api.query.Query
      extended by org.eclipse.stardust.engine.api.query.ProcessDefinitionQuery
All Implemented Interfaces:
Serializable

public class ProcessDefinitionQuery
extends Query

See Also:
Serialized Form

Field Summary
static String BOTH_INVOCATION
          Predefined filter matching process definition interfaces defining the invocation type BOTH (REST and SOAP)
static FilterableAttribute INVOCATION_TYPE
           
static String REST_INVOCATION
          Predefined filter matching process definition interfaces defining the invocation type REST
static String SOAP_INVOCATION
          Predefined filter matching process definition interfaces defining the invocation type SOAP
static FilterableAttribute TRIGGER_TYPE
           
 
Method Summary
static ProcessDefinitionQuery findAll()
          Creates a query for finding all process definitions from the active model.
static ProcessDefinitionQuery findProcessInterface(String invocationType)
          Create a query for finding a process definition that providing a process interface with the given invocation type.
static ProcessDefinitionQuery findStartable()
          Creates a query for finding manually startable processes.
static ProcessDefinitionQuery findStartable(long modelOID)
          Creates a query for finding manually startable processes contained in a specific model.
static ProcessDefinitionQuery findStartable(String triggerType)
          Creates a query for finding the active deployed model having the specific id.
 
Methods inherited from class org.eclipse.stardust.engine.api.query.Query
getFilter, getOrderCriteria, getPolicy, orderBy, orderBy, orderBy, removePolicy, setPolicy, toString, where
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REST_INVOCATION

public static final String REST_INVOCATION
Predefined filter matching process definition interfaces defining the invocation type REST

See Also:
Constant Field Values

SOAP_INVOCATION

public static final String SOAP_INVOCATION
Predefined filter matching process definition interfaces defining the invocation type SOAP

See Also:
Constant Field Values

BOTH_INVOCATION

public static final String BOTH_INVOCATION
Predefined filter matching process definition interfaces defining the invocation type BOTH (REST and SOAP)

See Also:
Constant Field Values

TRIGGER_TYPE

public static final FilterableAttribute TRIGGER_TYPE

INVOCATION_TYPE

public static final FilterableAttribute INVOCATION_TYPE
Method Detail

findAll

public static ProcessDefinitionQuery findAll()
Creates a query for finding all process definitions from the active model.

Returns:
The configured query.

findStartable

public static ProcessDefinitionQuery findStartable()
Creates a query for finding manually startable processes.

Returns:
The configured query.
See Also:
findStartable(String triggerType)

findStartable

public static ProcessDefinitionQuery findStartable(long modelOID)
Creates a query for finding manually startable processes contained in a specific model.

Parameters:
modelOID - specifies the model to retrieve manually startable processes from.
Returns:
The configured query.
See Also:
findStartable(String triggerType)

findStartable

public static ProcessDefinitionQuery findStartable(String triggerType)
Creates a query for finding the active deployed model having the specific id.

Parameters:
triggerType - a string identifying the type of the triggers used to start processes, i.e. "manual" or "scan".
Returns:
The configured query.

findProcessInterface

public static ProcessDefinitionQuery findProcessInterface(String invocationType)
Create a query for finding a process definition that providing a process interface with the given invocation type.

Parameters:
invocationType - a string identifying the type of invocation for the process interface. Can be
REST_INVOCATION
SOAP_INVOCATION
BOTH_INVOCATION
Returns:
The configured query.


Copyright © 2017 Eclipse Stardust. All Rights Reserved.