001
014
015 package com.liferay.portal.kernel.workflow;
016
017 import com.liferay.portal.kernel.messaging.proxy.MessagingProxy;
018 import com.liferay.portal.kernel.messaging.proxy.ProxyMode;
019 import com.liferay.portal.kernel.util.OrderByComparator;
020
021 import java.io.Serializable;
022
023 import java.util.List;
024 import java.util.Map;
025
026
032 @MessagingProxy(mode = ProxyMode.SYNC)
033 public interface WorkflowInstanceManager {
034
035 public void deleteWorkflowInstance(long companyId, long workflowInstanceId)
036 throws WorkflowException;
037
038 public List<String> getNextTransitionNames(
039 long companyId, long userId, long workflowInstanceId)
040 throws WorkflowException;
041
042 public WorkflowInstance getWorkflowInstance(
043 long companyId, long workflowInstanceId)
044 throws WorkflowException;
045
046 public int getWorkflowInstanceCount(
047 long companyId, Long userId, String assetClassName,
048 Long assetClassPK, Boolean completed)
049 throws WorkflowException;
050
051 public int getWorkflowInstanceCount(
052 long companyId, Long userId, String[] assetClassNames,
053 Boolean completed)
054 throws WorkflowException;
055
056 public int getWorkflowInstanceCount(
057 long companyId, String workflowDefinitionName,
058 Integer workflowDefinitionVersion, Boolean completed)
059 throws WorkflowException;
060
061 public List<WorkflowInstance> getWorkflowInstances(
062 long companyId, Long userId, String assetClassName,
063 Long assetClassPK, Boolean completed, int start, int end,
064 OrderByComparator<WorkflowInstance> orderByComparator)
065 throws WorkflowException;
066
067 public List<WorkflowInstance> getWorkflowInstances(
068 long companyId, Long userId, String[] assetClassNames,
069 Boolean completed, int start, int end,
070 OrderByComparator<WorkflowInstance> orderByComparator)
071 throws WorkflowException;
072
073 public List<WorkflowInstance> getWorkflowInstances(
074 long companyId, String workflowDefinitionName,
075 Integer workflowDefinitionVersion, Boolean completed, int start,
076 int end, OrderByComparator<WorkflowInstance> orderByComparator)
077 throws WorkflowException;
078
079 public List<WorkflowInstance> search(
080 long companyId, Long userId, String assetType, String nodeName,
081 String kaleoDefinitionName, Boolean completed, int start, int end,
082 OrderByComparator<WorkflowInstance> orderByComparator)
083 throws WorkflowException;
084
085 public int searchCount(
086 long companyId, Long userId, String assetType, String nodeName,
087 String kaleoDefinitionName, Boolean completed)
088 throws WorkflowException;
089
090 public WorkflowInstance signalWorkflowInstance(
091 long companyId, long userId, long workflowInstanceId,
092 String transitionName, Map<String, Serializable> workflowContext)
093 throws WorkflowException;
094
095 public WorkflowInstance startWorkflowInstance(
096 long companyId, long groupId, long userId,
097 String workflowDefinitionName, Integer workflowDefinitionVersion,
098 String transitionName, Map<String, Serializable> workflowContext)
099 throws WorkflowException;
100
101 public WorkflowInstance updateWorkflowContext(
102 long companyId, long workflowInstanceId,
103 Map<String, Serializable> workflowContext)
104 throws WorkflowException;
105
106 }