resourcespec.objectiveexpression Field

banner art

Specifies the search strategy to use for the resource specification.

Syntax

[Visual Basic .NET]
Public Field objectiveexpression As String
[C#]
public string objectiveexpression;
[JScript]
public var objectiveexpression : String;

Remarks

Represents a field of type String.

The following table contains additional information about this attribute:

Platform required No
Application requirement level System Required
Valid for create Yes
Valid for retrieve Yes
Valid for update Yes
Max length 100

Least Busy. From the list of resources that can perform that specific service, choose the resource that is the least busy and is also available at the requested time.

Most Busy. From the list of resources that can perform that specific service, choose the resource that is the busiest and is also available at the requested time.

Random. From the list of resources that can perform that specific service, choose any resource that is available at the requested time.

A string containing the search strategy is a parameter to the search methods. The following examples show the valid values:

Most Busy

<Expression>
  <Body>udf \"MostBusy\"(factory,resource,appointment,request,leftoffset,rightoffset)</Body>
  <Parameters>
    <Parameter name=\"factory\"/>
    <Parameter name=\"resource\">
    </Parameter><Parameter name=\"appointment\">
    </Parameter><Parameter name=\"request\">
    </Parameter><Parameter name=\"leftoffset\">
    </Parameter><Parameter name=\"rightoffset\"></Parameter>
  </Parameters>
  <Properties EvaluationInterval=\"P0D\" evaluationcost=\"1\"/>
</Expression>

Least Busy

<Expression>
  <Body>udf \"LeastBusy\"(factory,resource,appointment,request,leftoffset,rightoffset)</Body>
  <Parameters>
    <Parameter name=\"factory\"/>
    <Parameter name=\"resource\">
    </Parameter><Parameter name=\"appointment\">
    </Parameter><Parameter name=\"request\">
    </Parameter><Parameter name=\"leftoffset\">
    </Parameter><Parameter name=\"rightoffset\"></Parameter>
  </Parameters>
  <Properties EvaluationInterval=\"P0D\" evaluationcost=\"1\"/>
</Expression>

Random

<Expression>
  <Body>udf \"Random\"(factory,resource,appointment,request,leftoffset,rightoffset)</Body>
  <Parameters>
    <Parameter name=\"factory\"/>
    <Parameter name=\"resource\">
    </Parameter><Parameter name=\"appointment\">
    </Parameter><Parameter name=\"request\">
    </Parameter><Parameter name=\"leftoffset\">
    </Parameter><Parameter name=\"rightoffset\"></Parameter>
  </Parameters>
  <Properties EvaluationInterval=\"P0D\" evaluationcost=\"0\"/>
</Expression>

The following values for evaluation interval are supported.

Value Description
P0D Refresh states per proposal
PInfinity Constantly refresh states
P1D Refresh states once per day

See Also

© 2007 Microsoft Corporation. All rights reserved.