Partilhar via


ObjectiveRelation.ObjectiveExpression Property

Definition

Gets or sets the search strategy to use in the appointment request for the SearchRequest message.

public:
 property System::String ^ ObjectiveExpression { System::String ^ get(); void set(System::String ^ value); };
[System.Runtime.Serialization.DataMember]
public string ObjectiveExpression { get; set; }
[<System.Runtime.Serialization.DataMember>]
member this.ObjectiveExpression : string with get, set
Public Property ObjectiveExpression As String

Property Value

The search strategy to use in the appointment request.

Attributes

Examples

The following sample shows 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>

The following sample shows 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>

The following sample shows 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>

Remarks

Used in the Objectives property.

The scheduling engine supports three search strategies that are specified in the ObjectiveExpression property. A string that contains the search strategy is a parameter to the search methods. The examples show the valid values.

Least Busy - From the list of resources that can perform that specific service, choose the resource that is the least busy and is 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 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.

The following table shows the supported values for an evaluation interval.

ValueDescription

P0D

Refresh states per proposal.

PInfinity

Constantly refresh states.

P1D

Refresh states one time per day.

Applies to

See also