public class WorkflowData extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
FIELD_END_DATE |
static String |
FIELD_ID |
static String |
FIELD_SCHEDULED_TO_START |
static String |
FIELD_START_DATE |
static String |
FIELD_TEST_RUN |
static String |
FIELD_USERNAME |
static String |
FIELD_WORKFLOW_DEFINITION_ID |
static String |
FIELD_WORKFLOW_ID |
Constructor and Description |
---|
WorkflowData() |
Modifier and Type | Method and Description |
---|---|
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).
|
static WorkflowData |
findWorkflowProcessDataByWorkflowId(org.springframework.data.mongodb.core.MongoTemplate mongo,
String collectionName,
String workflowId)
Find a single process based on the workflow id.
|
Long |
getEndDate() |
String |
getId() |
Long |
getStartDate() |
String |
getTestRun() |
String |
getUsername() |
String |
getWorkflowDefinitionId() |
String |
getWorkflowId() |
boolean |
isDone() |
boolean |
isScheduledToStart() |
void |
setEndDate(Long endDate) |
void |
setId(String id) |
void |
setScheduledToStart(boolean scheduledToStart) |
void |
setStartDate(Long startDate) |
void |
setTestRun(String testRun) |
void |
setUsername(String username) |
void |
setWorkflowDefinitionId(String workflowDefinitionId) |
void |
setWorkflowId(String workflowId) |
public static final String FIELD_ID
public static final String FIELD_WORKFLOW_ID
public static final String FIELD_WORKFLOW_DEFINITION_ID
public static final String FIELD_USERNAME
public static final String FIELD_START_DATE
public static final String FIELD_END_DATE
public static final String FIELD_SCHEDULED_TO_START
public static final String FIELD_TEST_RUN
public static WorkflowData findWorkflowProcessDataByWorkflowId(org.springframework.data.mongodb.core.MongoTemplate mongo, String collectionName, String workflowId)
WorkflowData
, or null if no data is present for the given id.public static List<WorkflowData> findUnstartedWorkflows(org.springframework.data.mongodb.core.MongoTemplate mongo, String collectionName, int maxCount)
maxCount
- maximum number of results that should be returnedWorkflowData
public String getId()
public void setId(String id)
public boolean isDone()
public String getWorkflowDefinitionId()
public void setWorkflowDefinitionId(String workflowDefinitionId)
public String getWorkflowId()
public void setWorkflowId(String workflowId)
public void setScheduledToStart(boolean scheduledToStart)
public boolean isScheduledToStart()
public Long getStartDate()
public void setStartDate(Long startDate)
public Long getEndDate()
public void setEndDate(Long endDate)
public String getUsername()
public void setUsername(String username)
public String getTestRun()
public void setTestRun(String testRun)
Copyright © 2012. All Rights Reserved.