CreateActivity
Description:
Used to create a new WAP activity
Input Properties
label
Description:
The label for the new activity
Required:
No. If not supplied, a label will be auto-generated based on rules defined in the activity class
worksdcid
Description:
The SDC for the workitems.
Required:
No. If the worksdc is not supplied, it will be populated when the first worksdi is added
worksdcid_sdiworkitem
worksdcid_sample
worksdcid_dataset
workkeyid1
Description:
Semi-colon list of work sdis
Required:
No
workkeyid2
Description:
Semi-colon list of work sdis
Required:
No
workkeyid3
Description:
Semi-colon list of work sdis
Required:
No
timemode
Description:
Whether the activity date is fixed or floating (or neither)
Required:
No - though activites will typically have either a fixed or floating date
timemode_fixed
timemode_floating
timemode_none
startdt
Description:
The fixed startdt of the activity.
Required:
Yes if the mode is fixed.
enddt
Description:
The fixed end date of the activity. Will be ignored unless a fixed-end-date is requested (enddtfixed=Y)
Required:
No. Typcially this value would be calculated based on the duration of the work.
enddtfixed
Description:
Set to Y if supplying a fixed enddt to stop it getting calculated relative startdt
Required:
NO
startrangedt
Description:
The start of the date range when the work is expected to occur
Required:
Yes if the timemode is floating
endrangedt
Description:
The end of the date range when the work is expected to occur
Required:
Yes if the timemode is floating
activityclass
Description:
The activityclass of the activity as defined in the WAP Policy
Required:
Yes - Though if not supplied a default will be derived instead based on the worksdc if needed
analystid
Description:
the analyst to assigned the work to. Can be a list of analysts if supplied with a list of analysttypes
Required:
No
analysttype
Description:
The analyst type to assigned the work to (e.g. Analyst)
Required:
No
analystworkareaid
Description:
The workarea the analyst work will be assigned to (can be a list)
Required:
No
instrumentid
Description:
The instrument the work will be assigned to (can be a list if there are multiple instruments)
Required:
No
instrumentmodelid
Description:
Used to differentiate one instrument from another
Required:
No - will be derived from the database if not supplied
instrumenttypeid
Description:
Used to differentiate one instrument from another
Required:
No - will be derived from the database if not supplied
instrumentworkareaid
Description:
The workarea the instrument work will be assigned to (can be a list)
Required:
No
resourcenum
Description:
The list of explicit resourcenums in the activityresource table the supplied resourcesdckeyid1/2/3 will be linked to
Required:
No
resourcesdcid
Description:
The reousrce SDC (matching the resourcenum)
Required:
No
resourcekeyid1
Description:
The resource keyid1 (matching the resourcenum)
Required:
No
resourcesdcid_user
resourcesdcid_instrument
resourcesdcid_department
autoactivate
Description:
Whether to automatically activate (sync to lims) the new activity
Required:
No
multi_bysize
Description:
Wheter to create mulitple activities if the number of worksdis exceeds the masactivitysize
Required:
No
Output Properties
activityiid
Description:
The id of the newly created activity
Additional Information
Additional information concerning this Action:
Can also accept a list of worksdis and resources at the same time. For details on how resources are assgigned, see documentation for SetActivityResource
Copyright © 1999-2016 LABVANTAGE Solutions, Inc.