public class BaseAdvancedPullSample
extends com.labvantage.opal.actions.tasks.AdvancedPullSample
createMonitorGroup, eventDateList, instanceCount, monitorGroupId, newKeyidsMap, scheduleEvents, schedulePlanidList, schedulePlanitemidList, scheduleProperties, sourceKeyid1List, sourceKeyid2List, sourceKeyid3List, sourceSdcidList
connectionInfo, database, DEFAULT_SEPARATOR, ESC_SEMICOLON, NO, NULL, POLL, RETURN, RETURN_FAILURE, RETURN_SUCCESS, TYPE_CONFIRM, TYPE_FAILURE, TYPE_INFORMATION, TYPE_VALIDATION, VERSION, YES
ACTIVITYCONTEXTSDCID_REQUEST, ANALYSTTYPE_ANALYST, DEFAULT_MAXACTIVITYSIZE, RESERVATIONCONTEXT_PARAMLIST, RESERVATIONCONTEXT_PARAMLISTVERSION, RESERVATIONCONTEXT_REQUESTITEM, RESERVATIONCONTEXT_VARIANT, RESERVATIONCONTEXT_WORKITEM, RESERVATIONCONTEXT_WORKITEMITEM, RESERVATIONCONTEXT_WORKITEMVERSION, RESERVATIONTYPE_REQUESTITEMSAMPLE, RESERVATIONTYPE_REQUESTITEMWORKITEM, RESERVATIONTYPE_REQUESTITEMWORKITEMITEM, RESOURCESDCID_DEPARTMENT, RESOURCESDCID_INSTRUMENT, RESOURCESDCID_USER, RESOURCETYPE_ANALYST, RESOURCETYPE_INSTRUMENT, STATUS_ACTIVATED, STATUS_CANCELLED, STATUS_COMPLETED, STATUS_DRAFT, STATUS_INPROGRESS, TIMEMODE_FIXED, TIMEMODE_FLOATING, TIMEMODE_NONE, WAPSTATUS_ASSIGNED, WAPSTATUS_CANCELLED, WAPSTATUS_PENDING, WORKCONTEXT_MASTERDATASDI, WORKCONTEXT_WORKAREA, WORKCONTEXT_WORKSDCID, WORKSDCID_ACTIVITY, WORKSDCID_DATASET, WORKSDCID_SAMPLE, WORKSDCID_SDIWORKITEM, WORKSDCID_WORKORDER
Constructor and Description |
---|
BaseAdvancedPullSample() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCustomSampleColumns(java.lang.String schedulePlanId,
java.lang.String schedulePlanItemId,
java.lang.String conditionid,
DataSet studyDS,
PropertyList sampleProps) |
protected void |
applySpec(java.lang.String keyIdList,
PropertyListCollection specs,
java.lang.String schedulePlanId,
java.lang.String schedulePlanItemId,
java.lang.String sdcid) |
java.lang.String |
getColor() |
java.lang.String[] |
getDetailLevels() |
java.util.HashMap |
getDetails(PropertyList properties) |
protected java.lang.String |
getFirstPlanItemId(java.lang.String schedulePlanId,
java.lang.String schedulePlanItemId,
java.lang.String workItemId) |
protected DataSet |
getFirstPlanItemSample(java.lang.String schedulePlanId,
java.lang.String firstPlanItemId,
java.lang.String workItemId) |
protected java.lang.String |
getLogName() |
protected java.lang.StringBuffer |
getPullAmounts(PropertyList propertyList) |
protected java.lang.StringBuffer |
getSummary(PropertyList propertyList) |
java.lang.String |
getSummaryHTML(PropertyList propertyList,
java.lang.String detailLevel) |
java.lang.String |
getSummaryText(PropertyList propertyList,
java.lang.String detailLevel) |
java.lang.String |
getTitle() |
protected java.lang.StringBuffer |
getWorkorder(PropertyList propertyList) |
boolean |
isComplete(java.lang.String planid,
java.lang.String planitemid,
DBAccess database)
Default behaviour of task
|
protected boolean |
isSampleLogged(java.lang.String scheduleplanid,
java.lang.String scheduleplanitemid) |
protected boolean |
isTestLogged(java.lang.String scheduleplanid,
java.lang.String scheduleplanitemid,
java.lang.String workitemid) |
protected boolean |
isTimeZeroTask(java.lang.String scheduleplanid,
java.lang.String scheduleplanitemid) |
protected DataSet |
loadStudy(java.lang.String schedulePlanId,
java.lang.String schedulePlanItemId)
This method returns dataset with the Study SDC columns and controlsubstanceflag, cocrequiredflag of the
Product joined with the Study and may return extra columns of other SDCs joined with Study SDI
|
protected DataSet |
loadTestProperties(java.lang.String scheduleplanid,
java.lang.String scheduleplanitemid,
boolean isTimeZeroTask) |
protected void |
postAddStabilitySample(java.lang.String sampleIds,
java.lang.String schedulePlanId,
java.lang.String schedulePlanItemId) |
protected void |
preAddStabilitySample(java.lang.String schedulePlanId,
java.lang.String schedulePlanItemId) |
protected void |
processReuseSample(java.lang.String sampleId,
java.lang.String workItemId,
java.lang.String schedulePlanId,
java.lang.String schedulePlanItemId,
boolean firstTimePoint) |
execute, getQuantity, getStatusHTML, getUnits, preWOComplete, statusInit, workorderCompleted
addNewKeyid, count, getDatabase, processAction, replaceSourceParentToken, setAdhocFlag, setCreateMonitorGroup, setDatabase, setInstanceCount, setMonitorGroupId, setNewKeyidsMap, setScheduleEvents, setScheduleProperties
createDatabaseTransactionLogId, createDatabaseTransactionLogId, endAction, getErrorHandler, isDatabaseRequired, logError, logTrace, processAction, setError, setError, setError, setError, setError, setError, setErrors, setInfoError, setInfoError, startAction
getAccessorErrorIds, getAccessorErrorMsgs, getActionProcessor, getConfigurationProcessor, getConnectionid, getConnectionId, getConnectionProcessor, getDAMProcessor, getDepartmentList, getHttpProcessor, getQueryProcessor, getRakFile, getSDCProcessor, getSDIProcessor, getSequenceProcessor, getTranslationProcessor, setConnectionId, setLanguage, setRakFile
protected DataSet loadTestProperties(java.lang.String scheduleplanid, java.lang.String scheduleplanitemid, boolean isTimeZeroTask) throws SapphireException
loadTestProperties
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
scheduleplanid
- : SchedulePlan Idscheduleplanitemid
- : Schedule planItem IdisTimeZeroTask
- : return value of isTimeZeroTask method callSapphireException
protected DataSet loadStudy(java.lang.String schedulePlanId, java.lang.String schedulePlanItemId) throws SapphireException
com.labvantage.opal.actions.tasks.AdvancedPullSample
loadStudy
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
schedulePlanId
- : PlanId of the task being executedschedulePlanItemId
- : PlanItemId of the task being exceutedSapphireException
protected void applySpec(java.lang.String keyIdList, PropertyListCollection specs, java.lang.String schedulePlanId, java.lang.String schedulePlanItemId, java.lang.String sdcid) throws SapphireException
applySpec
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
keyIdList
- : Sample Ids created by the task separated by semicolonspecs
- : PropertyList Collection SpecsschedulePlanId
- : SchedulePlan IdschedulePlanItemId:
- SchedulePlan Item Idsdcid
- : SampleSapphireException
protected boolean isTimeZeroTask(java.lang.String scheduleplanid, java.lang.String scheduleplanitemid) throws SapphireException
isTimeZeroTask
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
SapphireException
protected void addCustomSampleColumns(java.lang.String schedulePlanId, java.lang.String schedulePlanItemId, java.lang.String conditionid, DataSet studyDS, PropertyList sampleProps) throws SapphireException
addCustomSampleColumns
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
schedulePlanId
- : PlanId of the task being executedschedulePlanItemId
- : PlanItemId of the task being executedconditionid
- : ConditionId of the task being executedstudyDS:
- DataSet returned by the loadStudy method, which contains the Study columns and the columns from other SDCs,
which are joined with the Study SDI in the sql executed by the loadStudy methodsampleProps
- : The PropertyList, to be used in calling the AddSDI action, to create the task samples.
Populating the custom columnid with value, in this PropertyList will end up in populating the corresponding columns of the the Samples, created by the task.SapphireException
protected DataSet getFirstPlanItemSample(java.lang.String schedulePlanId, java.lang.String firstPlanItemId, java.lang.String workItemId) throws SapphireException
getFirstPlanItemSample
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
schedulePlanId
- : SchedulePlan IdfirstPlanItemId
- : First planItem IdworkItemId
- : Reuse Test Method IdSapphireException
protected java.lang.String getFirstPlanItemId(java.lang.String schedulePlanId, java.lang.String schedulePlanItemId, java.lang.String workItemId) throws SapphireException
getFirstPlanItemId
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
schedulePlanId
- : SchedulePlan IdschedulePlanItemId
- : current planItem IdworkItemId
- : Reuse Test Method IdSapphireException
protected void postAddStabilitySample(java.lang.String sampleIds, java.lang.String schedulePlanId, java.lang.String schedulePlanItemId) throws SapphireException
postAddStabilitySample
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
sampleIds
- : SampleIds created by the taskschedulePlanId
- : schedule Plan Id of the task being executedschedulePlanItemId
- : schedule PlanItem Id of the task being executedSapphireException
protected void preAddStabilitySample(java.lang.String schedulePlanId, java.lang.String schedulePlanItemId) throws SapphireException
preAddStabilitySample
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
schedulePlanId
- : schedule Plan Id of the task being executedschedulePlanItemId
- : schedule PlanItem Id of the task being executedSapphireException
protected void processReuseSample(java.lang.String sampleId, java.lang.String workItemId, java.lang.String schedulePlanId, java.lang.String schedulePlanItemId, boolean firstTimePoint) throws SapphireException
processReuseSample
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
sampleId
- sampleId to be reused in the current time point, on which test method is addedworkItemId
- Current Test Method with reuse flag set yesschedulePlanId
- SchedulePlanId of the time point of the task being executedschedulePlanItemId
- SchedulePlanItemId of the time point of the task being executedfirstTimePoint
- true for first time point onlySapphireException
public java.lang.String getSummaryText(PropertyList propertyList, java.lang.String detailLevel)
getSummaryText
in interface com.labvantage.sapphire.stability.task.GridTask
getSummaryText
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
propertyList
- : PropertyList of the plan itemdetailLevel
- : Detail Level of the task as defined in 'Display Options', on the toolbar of ScheduleGrid page.public java.util.HashMap getDetails(PropertyList properties)
getDetails
in interface com.labvantage.sapphire.stability.task.HasDetails
getDetails
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
properties:
- task property listprotected java.lang.StringBuffer getSummary(PropertyList propertyList)
getSummary
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
propertyList
- : PropertyList of the plan itemprotected java.lang.StringBuffer getPullAmounts(PropertyList propertyList)
getPullAmounts
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
propertyList
- : PropertyList of the plan itemprotected java.lang.StringBuffer getWorkorder(PropertyList propertyList)
getWorkorder
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
propertyList
- : PropertyList of the plan itempublic boolean isComplete(java.lang.String planid, java.lang.String planitemid, DBAccess database) throws SapphireException
com.labvantage.sapphire.scheduler.BaseScheduleTask
isComplete
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
planid
- - Schedule Plan IDplanitemid
- - Schedule Plan Item IDdatabase
- - DBAccessSapphireException
protected boolean isSampleLogged(java.lang.String scheduleplanid, java.lang.String scheduleplanitemid) throws SapphireException
isSampleLogged
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
SapphireException
protected boolean isTestLogged(java.lang.String scheduleplanid, java.lang.String scheduleplanitemid, java.lang.String workitemid) throws SapphireException
isTestLogged
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
SapphireException
protected java.lang.String getLogName()
getLogName
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
public java.lang.String getColor()
getColor
in interface com.labvantage.sapphire.stability.task.GridTask
getColor
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
public java.lang.String getTitle()
getTitle
in interface com.labvantage.sapphire.stability.task.GridTask
getTitle
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
public java.lang.String[] getDetailLevels()
getDetailLevels
in interface com.labvantage.sapphire.stability.task.GridTask
getDetailLevels
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
public java.lang.String getSummaryHTML(PropertyList propertyList, java.lang.String detailLevel)
getSummaryHTML
in interface com.labvantage.sapphire.stability.task.GridTask
getSummaryHTML
in class com.labvantage.opal.actions.tasks.AdvancedPullSample
propertyList
- : Task PropertyListdetailLevel
- : Detail Level of the task as defined in 'Display Options', on the toolbar of ScheduleGrid page.