public class BaseAdvancedPullSample
extends com.labvantage.opal.actions.tasks.AdvancedPullSample
createMonitorGroup, eventDateList, instanceCount, monitorGroupId, newKeyidsMap, scheduleEvents, schedulePlanidList, schedulePlanitemidList, scheduleProperties, sourceKeyid1List, sourceKeyid2List, sourceKeyid3List, sourceSdcidListconnectionInfo, database, DEFAULT_SEPARATOR, ESC_SEMICOLON, NO, NULL, POLL, RETURN, RETURN_FAILURE, RETURN_SUCCESS, TYPE_CONFIRM, TYPE_FAILURE, TYPE_INFORMATION, TYPE_VALIDATION, VERSION, YESACTIVITYCONTEXTSDCID_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, workorderCompletedaddNewKeyid, count, getDatabase, processAction, replaceSourceParentToken, setAdhocFlag, setCreateMonitorGroup, setDatabase, setInstanceCount, setMonitorGroupId, setNewKeyidsMap, setScheduleEvents, setSchedulePropertiescreateDatabaseTransactionLogId, createDatabaseTransactionLogId, endAction, getErrorHandler, isDatabaseRequired, logError, logTrace, processAction, setError, setError, setError, setError, setError, setError, setErrors, setInfoError, setInfoError, startActiongetAccessorErrorIds, getAccessorErrorMsgs, getActionProcessor, getConfigurationProcessor, getConnectionid, getConnectionId, getConnectionProcessor, getDAMProcessor, getDepartmentList, getHttpProcessor, getQueryProcessor, getRakFile, getSDCProcessor, getSDIProcessor, getSequenceProcessor, getTranslationProcessor, setConnectionId, setLanguage, setRakFileprotected DataSet loadTestProperties(java.lang.String scheduleplanid, java.lang.String scheduleplanitemid, boolean isTimeZeroTask) throws SapphireException
loadTestProperties in class com.labvantage.opal.actions.tasks.AdvancedPullSamplescheduleplanid - : SchedulePlan Idscheduleplanitemid - : Schedule planItem IdisTimeZeroTask - : return value of isTimeZeroTask method callSapphireExceptionprotected DataSet loadStudy(java.lang.String schedulePlanId, java.lang.String schedulePlanItemId) throws SapphireException
com.labvantage.opal.actions.tasks.AdvancedPullSampleloadStudy in class com.labvantage.opal.actions.tasks.AdvancedPullSampleschedulePlanId - : PlanId of the task being executedschedulePlanItemId - : PlanItemId of the task being exceutedSapphireExceptionprotected 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.AdvancedPullSamplekeyIdList - : Sample Ids created by the task separated by semicolonspecs - : PropertyList Collection SpecsschedulePlanId - : SchedulePlan IdschedulePlanItemId: - SchedulePlan Item Idsdcid - : SampleSapphireExceptionprotected boolean isTimeZeroTask(java.lang.String scheduleplanid,
java.lang.String scheduleplanitemid)
throws SapphireException
isTimeZeroTask in class com.labvantage.opal.actions.tasks.AdvancedPullSampleSapphireExceptionprotected 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.AdvancedPullSampleschedulePlanId - : 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.SapphireExceptionprotected DataSet getFirstPlanItemSample(java.lang.String schedulePlanId, java.lang.String firstPlanItemId, java.lang.String workItemId) throws SapphireException
getFirstPlanItemSample in class com.labvantage.opal.actions.tasks.AdvancedPullSampleschedulePlanId - : SchedulePlan IdfirstPlanItemId - : First planItem IdworkItemId - : Reuse Test Method IdSapphireExceptionprotected 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.AdvancedPullSampleschedulePlanId - : SchedulePlan IdschedulePlanItemId - : current planItem IdworkItemId - : Reuse Test Method IdSapphireExceptionprotected void postAddStabilitySample(java.lang.String sampleIds,
java.lang.String schedulePlanId,
java.lang.String schedulePlanItemId)
throws SapphireException
postAddStabilitySample in class com.labvantage.opal.actions.tasks.AdvancedPullSamplesampleIds - : SampleIds created by the taskschedulePlanId - : schedule Plan Id of the task being executedschedulePlanItemId - : schedule PlanItem Id of the task being executedSapphireExceptionprotected void preAddStabilitySample(java.lang.String schedulePlanId,
java.lang.String schedulePlanItemId)
throws SapphireException
preAddStabilitySample in class com.labvantage.opal.actions.tasks.AdvancedPullSampleschedulePlanId - : schedule Plan Id of the task being executedschedulePlanItemId - : schedule PlanItem Id of the task being executedSapphireExceptionprotected 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.AdvancedPullSamplesampleId - 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 onlySapphireExceptionpublic java.lang.String getSummaryText(PropertyList propertyList, java.lang.String detailLevel)
getSummaryText in interface com.labvantage.sapphire.stability.task.GridTaskgetSummaryText in class com.labvantage.opal.actions.tasks.AdvancedPullSamplepropertyList - : 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.HasDetailsgetDetails in class com.labvantage.opal.actions.tasks.AdvancedPullSampleproperties: - task property listprotected java.lang.StringBuffer getSummary(PropertyList propertyList)
getSummary in class com.labvantage.opal.actions.tasks.AdvancedPullSamplepropertyList - : PropertyList of the plan itemprotected java.lang.StringBuffer getPullAmounts(PropertyList propertyList)
getPullAmounts in class com.labvantage.opal.actions.tasks.AdvancedPullSamplepropertyList - : PropertyList of the plan itemprotected java.lang.StringBuffer getWorkorder(PropertyList propertyList)
getWorkorder in class com.labvantage.opal.actions.tasks.AdvancedPullSamplepropertyList - : PropertyList of the plan itempublic boolean isComplete(java.lang.String planid,
java.lang.String planitemid,
DBAccess database)
throws SapphireException
com.labvantage.sapphire.scheduler.BaseScheduleTaskisComplete in class com.labvantage.opal.actions.tasks.AdvancedPullSampleplanid - - Schedule Plan IDplanitemid - - Schedule Plan Item IDdatabase - - DBAccessSapphireExceptionprotected boolean isSampleLogged(java.lang.String scheduleplanid,
java.lang.String scheduleplanitemid)
throws SapphireException
isSampleLogged in class com.labvantage.opal.actions.tasks.AdvancedPullSampleSapphireExceptionprotected boolean isTestLogged(java.lang.String scheduleplanid,
java.lang.String scheduleplanitemid,
java.lang.String workitemid)
throws SapphireException
isTestLogged in class com.labvantage.opal.actions.tasks.AdvancedPullSampleSapphireExceptionprotected java.lang.String getLogName()
getLogName in class com.labvantage.opal.actions.tasks.AdvancedPullSamplepublic java.lang.String getColor()
getColor in interface com.labvantage.sapphire.stability.task.GridTaskgetColor in class com.labvantage.opal.actions.tasks.AdvancedPullSamplepublic java.lang.String getTitle()
getTitle in interface com.labvantage.sapphire.stability.task.GridTaskgetTitle in class com.labvantage.opal.actions.tasks.AdvancedPullSamplepublic java.lang.String[] getDetailLevels()
getDetailLevels in interface com.labvantage.sapphire.stability.task.GridTaskgetDetailLevels in class com.labvantage.opal.actions.tasks.AdvancedPullSamplepublic java.lang.String getSummaryHTML(PropertyList propertyList, java.lang.String detailLevel)
getSummaryHTML in interface com.labvantage.sapphire.stability.task.GridTaskgetSummaryHTML in class com.labvantage.opal.actions.tasks.AdvancedPullSamplepropertyList - : Task PropertyListdetailLevel - : Detail Level of the task as defined in 'Display Options', on the toolbar of ScheduleGrid page.