com.liferay.portal.kernel.workflow
Class WorkflowInstanceManagerUtil
java.lang.Object
com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil
public class WorkflowInstanceManagerUtil
- extends Object
Method Summary |
static void |
deleteWorkflowInstance(long companyId,
long workflowInstanceId)
|
static List<String> |
getNextTransitionNames(long companyId,
long userId,
long workflowInstanceId)
|
static WorkflowInstance |
getWorkflowInstance(long companyId,
long workflowInstanceId)
|
static int |
getWorkflowInstanceCount(long companyId,
Long userId,
String[] assetClassNames,
Boolean completed)
|
static int |
getWorkflowInstanceCount(long companyId,
Long userId,
String assetClassName,
Long assetClassPK,
Boolean completed)
|
static int |
getWorkflowInstanceCount(long companyId,
String workflowDefinitionName,
Integer workflowDefinitionVersion,
Boolean completed)
|
static WorkflowInstanceManager |
getWorkflowInstanceManager()
|
static List<WorkflowInstance> |
getWorkflowInstances(long companyId,
Long userId,
String[] assetClassNames,
Boolean completed,
int start,
int end,
OrderByComparator orderByComparator)
|
static List<WorkflowInstance> |
getWorkflowInstances(long companyId,
Long userId,
String assetClassName,
Long assetClassPK,
Boolean completed,
int start,
int end,
OrderByComparator orderByComparator)
|
static List<WorkflowInstance> |
getWorkflowInstances(long companyId,
String workflowDefinitionName,
Integer workflowDefinitionVersion,
Boolean completed,
int start,
int end,
OrderByComparator orderByComparator)
|
void |
setWorkflowInstanceManager(WorkflowInstanceManager workflowInstanceManager)
|
static WorkflowInstance |
signalWorkflowInstance(long companyId,
long userId,
long workflowInstanceId,
String transitionName,
Map<String,Serializable> workflowContext)
|
static WorkflowInstance |
startWorkflowInstance(long companyId,
long groupId,
long userId,
String workflowDefinitionName,
Integer workflowDefinitionVersion,
String transitionName,
Map<String,Serializable> workflowContext)
|
static WorkflowInstance |
updateWorkflowContext(long companyId,
long workflowInstanceId,
Map<String,Serializable> workflowContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkflowInstanceManagerUtil
public WorkflowInstanceManagerUtil()
deleteWorkflowInstance
public static void deleteWorkflowInstance(long companyId,
long workflowInstanceId)
throws WorkflowException
- Throws:
WorkflowException
getNextTransitionNames
public static List<String> getNextTransitionNames(long companyId,
long userId,
long workflowInstanceId)
throws WorkflowException
- Throws:
WorkflowException
getWorkflowInstance
public static WorkflowInstance getWorkflowInstance(long companyId,
long workflowInstanceId)
throws WorkflowException
- Throws:
WorkflowException
getWorkflowInstanceCount
public static int getWorkflowInstanceCount(long companyId,
Long userId,
String assetClassName,
Long assetClassPK,
Boolean completed)
throws WorkflowException
- Throws:
WorkflowException
getWorkflowInstanceCount
public static int getWorkflowInstanceCount(long companyId,
Long userId,
String[] assetClassNames,
Boolean completed)
throws WorkflowException
- Throws:
WorkflowException
getWorkflowInstanceCount
public static int getWorkflowInstanceCount(long companyId,
String workflowDefinitionName,
Integer workflowDefinitionVersion,
Boolean completed)
throws WorkflowException
- Throws:
WorkflowException
getWorkflowInstanceManager
public static WorkflowInstanceManager getWorkflowInstanceManager()
getWorkflowInstances
public static List<WorkflowInstance> getWorkflowInstances(long companyId,
Long userId,
String assetClassName,
Long assetClassPK,
Boolean completed,
int start,
int end,
OrderByComparator orderByComparator)
throws WorkflowException
- Throws:
WorkflowException
getWorkflowInstances
public static List<WorkflowInstance> getWorkflowInstances(long companyId,
Long userId,
String[] assetClassNames,
Boolean completed,
int start,
int end,
OrderByComparator orderByComparator)
throws WorkflowException
- Throws:
WorkflowException
getWorkflowInstances
public static List<WorkflowInstance> getWorkflowInstances(long companyId,
String workflowDefinitionName,
Integer workflowDefinitionVersion,
Boolean completed,
int start,
int end,
OrderByComparator orderByComparator)
throws WorkflowException
- Throws:
WorkflowException
signalWorkflowInstance
public static WorkflowInstance signalWorkflowInstance(long companyId,
long userId,
long workflowInstanceId,
String transitionName,
Map<String,Serializable> workflowContext)
throws WorkflowException
- Throws:
WorkflowException
startWorkflowInstance
public static WorkflowInstance startWorkflowInstance(long companyId,
long groupId,
long userId,
String workflowDefinitionName,
Integer workflowDefinitionVersion,
String transitionName,
Map<String,Serializable> workflowContext)
throws WorkflowException
- Throws:
WorkflowException
updateWorkflowContext
public static WorkflowInstance updateWorkflowContext(long companyId,
long workflowInstanceId,
Map<String,Serializable> workflowContext)
throws WorkflowException
- Throws:
WorkflowException
setWorkflowInstanceManager
public void setWorkflowInstanceManager(WorkflowInstanceManager workflowInstanceManager)