org.alfresco.bm.data
Class WorkflowData

java.lang.Object
  extended by 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

Field Summary
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 Summary
WorkflowData()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

WorkflowData

public WorkflowData()
Method Detail

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.