1 5 package com.opensymphony.workflow.spi; 6 7 import com.opensymphony.module.propertyset.PropertySet; 8 9 import com.opensymphony.workflow.StoreException; 10 import com.opensymphony.workflow.query.WorkflowExpressionQuery; 11 import com.opensymphony.workflow.query.WorkflowQuery; 12 13 import java.util.*; 14 15 16 24 public interface WorkflowStore { 25 27 32 public void setEntryState(long entryId, int state) throws StoreException; 33 34 39 public PropertySet getPropertySet(long entryId) throws StoreException; 40 41 53 public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException; 54 55 61 public WorkflowEntry createEntry(String workflowName) throws StoreException; 62 63 70 public List findCurrentSteps(long entryId) throws StoreException; 71 72 78 public WorkflowEntry findEntry(long entryId) throws StoreException; 79 80 87 public List findHistorySteps(long entryId) throws StoreException; 88 89 94 public void init(Map props) throws StoreException; 95 96 public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) throws StoreException; 97 98 103 public void moveToHistory(Step step) throws StoreException; 104 105 110 public List query(WorkflowQuery query) throws StoreException; 111 112 116 public List query(WorkflowExpressionQuery query) throws StoreException; 117 } 118 | Popular Tags |