org.alfresco.bm.data
Class WorkflowData
java.lang.Object
org.alfresco.bm.data.WorkflowData
- All Implemented Interfaces:
- Serializable
public class WorkflowData
- extends Object
- implements Serializable
Data representing a single workflow process.
- Since:
- 1.0
- Author:
- Frederik Heremans
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FIELD_ID
public static final String FIELD_ID
- See Also:
- Constant Field Values
FIELD_WORKFLOW_ID
public static final String FIELD_WORKFLOW_ID
- See Also:
- Constant Field Values
FIELD_WORKFLOW_DEFINITION_ID
public static final String FIELD_WORKFLOW_DEFINITION_ID
- See Also:
- Constant Field Values
FIELD_USERNAME
public static final String FIELD_USERNAME
- See Also:
- Constant Field Values
FIELD_START_DATE
public static final String FIELD_START_DATE
- See Also:
- Constant Field Values
FIELD_END_DATE
public static final String FIELD_END_DATE
- See Also:
- Constant Field Values
FIELD_SCHEDULED_TO_START
public static final String FIELD_SCHEDULED_TO_START
- See Also:
- Constant Field Values
FIELD_TEST_RUN
public static final String FIELD_TEST_RUN
- See Also:
- Constant Field Values
WorkflowData
public WorkflowData()
findWorkflowProcessDataByWorkflowId
public static WorkflowData findWorkflowProcessDataByWorkflowId(org.springframework.data.mongodb.core.MongoTemplate mongo,
String collectionName,
String workflowId)
- Find a single process based on the workflow id.
- Parameters:
mongo - collectionName - workflowId -
- Returns:
- the resulting
WorkflowData, or null if no data is present for the given id.
findUnstartedWorkflows
public static List<WorkflowData> findUnstartedWorkflows(org.springframework.data.mongodb.core.MongoTemplate mongo,
String collectionName,
int maxCount)
- Find a number of unstarted and unscheduled processes (startdate is null).
- Parameters:
mongo - collectionName - maxCount - maximum number of results that should be returned
- Returns:
- list of unstarted
WorkflowData
getId
public String getId()
setId
public void setId(String id)
isDone
public boolean isDone()
getWorkflowDefinitionId
public String getWorkflowDefinitionId()
setWorkflowDefinitionId
public void setWorkflowDefinitionId(String workflowDefinitionId)
getWorkflowId
public String getWorkflowId()
setWorkflowId
public void setWorkflowId(String workflowId)
setScheduledToStart
public void setScheduledToStart(boolean scheduledToStart)
isScheduledToStart
public boolean isScheduledToStart()
getStartDate
public Long getStartDate()
setStartDate
public void setStartDate(Long startDate)
getEndDate
public Long getEndDate()
setEndDate
public void setEndDate(Long endDate)
getUserName
public String getUserName()
setUserName
public void setUserName(String userName)
getTestRun
public String getTestRun()
setTestRun
public void setTestRun(String testRun)
Copyright © 2012. All Rights Reserved.