1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.kernel.workflow;
16  
17  import java.io.Serializable;
18  
19  import java.util.Date;
20  import java.util.List;
21  import java.util.Map;
22  
23  /**
24   * <a href="WorkflowInstance.java.html"><b><i>View Source</i></b></a>
25   *
26   * @author Micha Kiener
27   * @author Shuyang Zhou
28   * @author Brian Wing Shun Chan
29   */
30  public interface WorkflowInstance {
31  
32      public void addChildWorkflowInstance(
33          WorkflowInstance childWorkflowInstance);
34  
35      public int getChildrenWorkflowInstanceCount();
36  
37      public List<WorkflowInstance> getChildrenWorkflowInstances();
38  
39      public Map<String, Serializable> getContext();
40  
41      public Date getEndDate();
42  
43      public WorkflowInstance getParentWorkflowInstance();
44  
45      public long getParentWorkflowInstanceId();
46  
47      public Date getStartDate();
48  
49      public String getState();
50  
51      public String getWorkflowDefinitionName();
52  
53      public int getWorkflowDefinitionVersion();
54  
55      public long getWorkflowInstanceId();
56  
57      public void setParentWorkflowInstance(
58          WorkflowInstance parentWorkflowInstance);
59  
60  }