1
14
15 package com.liferay.portal.kernel.workflow;
16
17 import com.liferay.portal.kernel.exception.PortalException;
18 import com.liferay.portal.kernel.exception.SystemException;
19 import com.liferay.portal.kernel.portlet.LiferayPortletRequest;
20 import com.liferay.portal.kernel.portlet.LiferayPortletResponse;
21
22 import java.io.Serializable;
23
24 import java.util.Map;
25
26 import javax.portlet.PortletURL;
27
28
35 public interface WorkflowHandler {
36
37 public static final String TYPE_CONTENT = "content";
38
39 public static final String TYPE_DOCUMENT = "document";
40
41 public static final String TYPE_UNKNOWN = "unknown";
42
43 public String getClassName();
44
45 public String getIconPath(LiferayPortletRequest liferayPortletRequest);
46
47 public String getTitle(long classPK);
48
49 public String getType();
50
51 public PortletURL getURLEdit(
52 long classPK, LiferayPortletRequest liferayPortletRequest,
53 LiferayPortletResponse liferayPortletResponse);
54
55 public void startWorkflowInstance(
56 long companyId, long groupId, long userId, long classPK,
57 Object model, Map<String, Serializable> workflowContext)
58 throws PortalException, SystemException;
59
60 public Object updateStatus(
61 int status, Map<String, Serializable> workflowContext)
62 throws PortalException, SystemException;
63
64 }