ApplySamplingPlan
Description:
Applies a Sampling Plan to SDIs.
Input Properties
sdcid
Description:
Identifier of the SDC, the SDI of which is applied with Sampling Plan.
Required:
Yes
keyid1
Description:
Identifiers of the SDIs.
Required:
Yes
keyid2
Description:
Identifiers of the SDIs.
Required:
Only for multi-key SDCs.
keyid3
Description:
Identifiers of the SDIs.
Required:
Only for multi-key SDCs.
prodvarianttype
Description:
Product Variant Type (single value) of the Sampling Plan Policy defined for the SDC.
Required:
Yes, if sampling plan level not specified.
prodvariantid
Description:
Identifier of the Product Variant (single value) that is associated with the Sampling Plan to be applied on the SDI.
Required:
No
samplingplanid
Description:
Identifier of the sampling plan id
Required:
Yes, with samplingpalnlevel
samplingplanversionid
Description:
Identifier of the sampling plan version id
Required:
Yes, with samplingpalnlevel
samplingplanlevel
Description:
Identifier of the sampling plan level
Required:
Yes, if prodvarianttype not specified
processstageid
Description:
Identifier of the processstageid, used when called from RedoStageAction to redo a batch stage and apply the sampling plan to create the samples and tests for the new stage
Required:
No
processstagedesc
Description:
Used when called from RedoStageAction to redo a batchstage, identifier of batch stage desc
Required:
No
processstagelabel
Description:
Used when called from RedoStageAction to redo a batchstage , identifier of batch stage label
Required:
No
processstageinstancecount
Description:
no. of instances of the processstage to be created, used when called from RedoStageAction to redo a batchstage and determine no. of stage instances to be created
Required:
No, default 1
Output Properties
newsampleid
Description:
Identifiers of the added Samples.
Additional Information
Additional information concerning this Action:
Applies a Sampling Plan to SDIs. It can be called with different input combinations, which are :-

Action Input may be:
sdcid = Batch
keyid1 = B001;B001;B003
prodvarianttype = Raw Material prodvariantid = 'PV001' (optional, if available in action input, it will apply the sampling plan of the specific prodvariant
else it will search for the appropriate prodvariant based on the matching column values between the SDI(Batch SDI) and the ProdVariant(LV_ProdVariant)
specified in SamplingPlan policy based on the prodvarianttype.

Action Input may be:
samplingplanid = ExReducedTestingPlan;ExReducedTestingPlan
samplingplanlevel = Full;Full
samplingplanversionid = 1;1
sdcid = Batch
keyid1 = B-09032011-00120;B-09032011-00121

A specific samplingplan level is to be applied to the batche(s). If samplingplanlevel is sent in action input, samplingplanid, versionid are mandatory.

Action Input may be:
sdcid = Batch
keyid1 = B-09032011-00120
samplingplanid = ExReducedTestingPlan
samplingplanlevel = Full
samplingplanversionid = 1
processstageid = 00001;00002
processstagelabel= stage label1;stage label2
instancecount = 3
processstageid is sent in action input when called from RedoStageAction to redo a batchstage. This will create 3 instances of the process stage in the batch and create the samples applicable to the stage according to the definition of the Sampling Plan. *

Invoking ApplySamplingPlan outside Batch mode to create Samples with Test Methods and Specs as defined in a SamplingPlan level:- Need to pass samplingplanid, samplingplanversionid and samplingplanlevel. Action also populate any sample columns, if passed as action input. Action returns the semicolon delimeted list of Sample Ids created by the action. Action Input may be:
samplingplanid = ExReducedTestingPlan;ExSkipLotPlan
samplingplanversionid = 1;1
samplingplanlevel = Full;Skip
samplecolumnid = desc1;desc2
In the following case samples will be created for the 3 levels. The versionid will be considered 1 for all of the levels. Both the levels Skip and Full will be applied for the last samplingplan ExSkipLotPlan Samples of ExReducedTestingPlan with level Full will have description 'desc1', Samples of ExSkipLotPlan with level Skip will have description 'desc2', Samples of ExSkipLotPlan with level Full will have no description. Action Input may be:
samplingplanid = ExReducedTestingPlan;ExSkipLotPlan
samplingplanversionid = 1
samplingplanlevel = Full;Skip;Full
sampledesc = desc1;desc2
In the following case samples will be created for Full level of the 2 SamplingPlans ExReducedTestingPlan and ExSkipLotPlan. Samples of ExReducedTestingPlan will have description 'desc1', samples of ExSkipLotPlan will have no description. Action Input may be:
samplingplanid = ExReducedTestingPlan;ExSkipLotPlan
samplingplanversionid = 1
samplingplanlevel = Full
sampledesc = desc1

Copyright © 1999-2016 LABVANTAGE Solutions, Inc.